28.08.2009, 22:15
(
Последний раз редактировалось Correlli; 14.09.2012 в 22:30.
)
What is this?
So this is an RCON based administration filterscript which I've created using the RCMD function.
Console commands:
Pictures:
/imageshack/img819/8057/rconmanager.gif
Credits:
- ****** for sscanf-plugin & foreach function,
- DracoBlue for DCMD command processor.
Download:
http://www.solidfiles.com/d/f69739c8cc
How to create your own commands:
So this is an RCON based administration filterscript which I've created using the RCMD function.
Console commands:
- /cmdlist
- /msg
- /msgall
- /kick
- /kickall
- /ban
- /banall
- /kill
- /killall
- /freeze
- /freezeall
- /unfreeze
- /unfreezeall
- /slap
- /slapall
- /sethealth
- /sethealthall
- /givehealth
- /givehealthall
- /setarmor
- /setarmorall
- /givearmor
- /givearmorall
- /setmoney
- /setmoneyall
- /givemoney
- /givemoneyall
- /setscore
- /setscoreall
- /givescore
- /givescoreall
- /infoplayer
- /setserverpass
- /setservername
- /setservergamemode
- /setservermap
- /setplayerweather
- /setweather
- /setgravity
Pictures:
/imageshack/img819/8057/rconmanager.gif
Credits:
- ****** for sscanf-plugin & foreach function,
- DracoBlue for DCMD command processor.
Download:
http://www.solidfiles.com/d/f69739c8cc
How to create your own commands:
pawn Код:
#if !defined RCMD_PREFIX
#define RCMD_PREFIX "/"
#endif
pawn Код:
#if !defined rcmd
#define rcmd(%1,%2,%3) if((strcmp((%3), RCMD_PREFIX #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (rcmd_%1(""))) || (((%3)[(%2) + 1] == 32) && (rcmd_%1((%3)[(%2) + 2]))))) return true
#endif
pawn Код:
public OnRconCommand(cmd[])
{
rcmd(amsg, 4, cmd);
return false;
}
pawn Код:
rcmd_amsg(command[])
{
new
msg[64];
if(sscanf(command, "s[64]", msg)) return printf("Correct usage: \"%samsg [message]\"", RCMD_PREFIX);
foreach(Player, u) SendClientMessageEx(u, 0xFF0000AA, "* PM from RCON-CONSOLE: %s", msg);
printf("RCON-CONSOLE: Message was sent to everyone: %s", msg);
return true;
}