Extra commands for admins
I created an other advanced admin commands plugin, but this one is created and optimized only for Counter-Strike: Global Offensive.
Thanks for original command authors: Super Commands (pRED*), Super Admin (TechKnow), Adv Commands (xaider), and for original custom adminmenu list (Dungeon).
Please, if you copy the plugin and it's description to other sites, make those informations and the plugin there up-to date, thanks!
CVars:
Code:
Code: Select all
sm_advadmin_admins <def. 2> - Settings of "!admins" command. | 0 - Disable the command | 1 - Show always "No Admins online." | 2 - Show the online admins
sm_advadmin_announce <def. 2> - Join announce, 0 - Disable | 1 - Simple announce ("PeEzZ connected")| 2 - Announce with country name ("PeEzZ connected (Hungary)")
sm_advadmin_invalid <def. 1> - Show gived/equipped item text if invalid. | 0 - Disable | 1 - Enable
sm_advadmin_log <def. 1> - Enable the logging for plugin. | 0 - Disable | 1 - Enable (The plugin logging into the default sourcemod log file)
Code:
Code: Select all
sm_extend <[+/-] minutes> - Extending the map, ADMFLAG_CHANGEMAP
sm_clearmap - Deleting dropped weapons, items and chickens without owner from the map, ADMFLAG_GENERIC
sm_restartgame or sm_rg <seconds> - Restarting the game after the specified seconds, ADMFLAG_GENERIC
sm_restartround or sm_rr <seconds> - Restarting the round after the specified seconds, ADMFLAG_GENERIC
sm_playsound <target> <sound [directories/filename.extension]> <pitch 100[50 - 250]> <volume 100[1 - 100]> <multiplier 1[1 - 10]> , - Playing a sound for the targets, with custom settings, ADMFLAG_GENERIC
sm_teleport or sm_tp <target 1> <leave blank for savedlocation | @blink to aim position | target 2> - Teleporting the target to somewhere, ADMFLAG_BAN
sm_saveloc - Saving the current position for the teleport, ADMFLAG_BAN
(Hint: If you don't know: @me - always you | @t - terrorists | @ct - counter-terrorists | @spec - spectators | @alive - alive players | @dead - dead players | @all - all player | @aim - player, which you are looking at | @bots all bot.
sm_team <target> <[1-3] | SPEC | SPECTATOR | T | CT> <[0/1] now/next round> - Set the targets team, ADMFLAG_KICK
sm_swap <target> <[0/1] now/next round> - Swap the targets team, ADMFLAG_KICK
sm_spec <target> <[0/1] now/next round> - Set the targets team to spectator, ADMFLAG_KICK
sm_scramble - Scrambling the teams by scores, ADMFLAG_KICK
sm_give <target> <leave blank for knife | weapon name | text> - Give something for the target, ADMFLAG_BAN - (Available weapon names below)
sm_equip <target> <leave blank for knife | weapon name | text> - Equipping something for the targets (deleting all weapons and give the specified), ADMFLAG_BAN - (Available weapon names below)
sm_equipments - Showing the valid equipment names in the console, available weapon names below, ADMFLAG_GENERIC
sm_disarm <target> - Disarming the targets, ADMFLAG_BAN
(Hint: You can give anything, invalid things always will be ignored)
sm_respawn <target> - Respawning the targets, ADMFLAG_KICK
sm_bury <target> <[0/1] bury/unbury> - Burying the targets, ADMFLAG_KICK
sm_speed <target> <multiplier> - Set the speed multipiler of the targets, ADMFLAG_BAN
sm_god <target> <[0/1] off/on> - Set godmode for the targets, ADMFLAG_BAN
sm_helmet <target> <[0/1] off/on> - Set helmet for the targets, ADMFLAG_KICK
sm_health or sm_hp <target> <[+/-] amount> - Set the health for the targets, ADMFLAG_KICK
sm_armour <target> <[+/-] amount> - Set the armour for the targets, ADMFLAG_KICK
sm_cash <target> <[+/-] amount> - Set the cash for the targets, ADMFLAG_BAN
sm_setstats <target> <kills | assists | deaths | mvps | scores | clan> <[+/-] value> - Set the stats for the targets, ADMFLAG_BAN
sm_teamscores <[2/3] | T | CT> <[+/-] amount> - Set the teams scores, ADMFLAG_BAN
sm_spawnchicken or sm_sc <body [0-6]> <explode [-1-9999]> - Spawn one chicken on your aim position, ADMFLAG_GENERIC
Body section: 0 - Normal chicken, 1 - Birthday, 2 - Ghost, 3 - Christmas, 4 - Bunny, 5 - Pumpkin, 6 - Zombie
Explode section: -1 - Chicken with godmode, 0 - Normal chicken, everythning else greater than 0 is the explosion damage
Hint: Remember, do not spam with this, or you have a risk to crash the server by too many entities!
sm_spawnball - Spawn one ball on your aim position, ADMFLAG_GENERIC
Code:
Code: Select all
sm_admins - Showing the online admins
(Example: if the cvar upper is "0" - this will say "Command disabled", if "1" - this will say "No admins online.", if "2" - this will say "Online admins: Bart, [R]PeEzZ")
(Hint: Flags: [R] - have root admin flag ADMFLAG_ROOT.)
For players have generic admin flag (ADMFLAG_GENERIC), this command always show the true, currently online admins.
Code:
Code: Select all
new String: WeaponsList[][] = //VALID WEAPON NAMES HERE
{
"c4", "knife", "knifegg", "taser", "healthshot", //misc
"decoy", "flashbang", "hegrenade", "molotov", "incgrenade", "smokegrenade", "tagrenade", //grenades
"usp_silencer", "glock", "tec9", "p250", "hkp2000", "cz75a", "deagle", "revolver", "fiveseven", "elite", //pistoles
"nova", "xm1014", "sawedoff", "mag7", "m249", "negev", //heavy
"mp9", "mp7", "mp5sd", "ump45", "p90", "bizon", "mac10", //smgs
"ak47", "aug", "famas", "sg556", "galilar", "m4a1", "m4a1_silencer", //rifles
"awp", "ssg08", "scar20", "g3sg1" //snipers
};
new String: ItemsList[][] = //VALID ITEM NAMES HERE, HEAVYASSAULTSUIT ONLY WORKS WHEN ITS ENABLED (mp_max_armor 3 and mp_weapons_allow_heavyassaultsuit 1)
{
"defuser", "cutters", //defuser and rescue kit
"kevlar", "assaultsuit", "heavyassaultsuit", //armors
"nvgs" //nightvision
};
- Latest, Stable SourceMod
- Adminmenu plugin, if you want to use the custom adminmenu: "adminmenu_custom.txt"
- Translation files ("common.phrases.txt", "advadmin.phrases.txt")
Notes:
- If you found some bug or error in the log, please report here!
- The plugin currently not support the command executes from the server's console.
- If you want to add some other commands, suggest and discuss here.
- Custom adminmenu file "adminmenu_custom.txt" is not needed, but optional.
- You can set admin activity chat messages in sourcemod's config file "cfg/sourcemod/sourcemod.cfg" with "sm_show_activity" CVar.
Suggested commands and known following updates:
- Balancing the teams by player amount (this will shuffle the players, and balancing the teams)
- New command "sm_spawnent" will replace the "sm_spawnchicken", and "sm_spawnball" commands. (sm_spawnent <chicken | ball | snow | etc.> <value> <value>)
- Option to respawn dead players at the death position (sm_respawn <target> 1)
- Option to give multiple weapons at once with give and equip
- Server console command executing support
- Support for the new weapons
- Drone, sentry(dronegun) spawn
- ????
- PROFIT!
- I want to update the plugin on SUMMER.
Updates:
(1.7.1, 2018.08.16, 18:16)
- Added support for the new weapon: MP5-SD
Attached Files
File Type: zip advadmin.zip
File Type: sp Get Plugin or Get Sourceadvadmin.sp
Source AlliedModders