30.07.2011, 20:58
Hi all.I have problem with my anti-command.I get message "don't spamm" but,and always get message "Server:Unknow Command",and then when i write correct command is too.
public OnPlayerCommandPerformed(playerid, cmdtext[], success) { if( GetPVarInt( playerid,"AntiCommand" )> GetTickCount( ) ) { SendClientMessage( playerid, 0xFF0000FF ,"Please don't spamm" ); return 0; } SetPVarInt( playerid,"AntiCommand",GetTickCount( )+2000 ); if ( !success ) { SendClientMessage(playerid, COLOR_YELLOW,"This command no exist.All command /cmd"); } return 1; }