14.06.2012, 14:24
Rcon only. Needs editing to be user friendly.
EDIT: Some good advice: learn to use a better command processor. Look for y_commands or zcmd. With the OnPlayerCommandText/strcmp method the more commands you add the slower they will be. Each command you add will be slightly slower than the last one. (or take longer to get to might be more accurate)
pawn Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp("/cdw", cmdtext))
{
if( IsPlayerAdmin( playerid ) )//swap this for your admin variable if you have one
{
for(new i; i < 10; ++i)
{
SendDeathMessage( INVALID_PLAYER_ID, INVALID_PLAYER_ID, 200 );//connection icon
}
return 1;
}
}
return 0;
}