Problem with anti-command.
#4

Код:
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;
}
Reply


Messages In This Thread
Problem with anti-command. - by budelis - 30.07.2011, 20:58
Re: Problem with anti-command. - by CmZxC - 30.07.2011, 21:00
Re: Problem with anti-command. - by PowerPC603 - 30.07.2011, 21:09
Re: Problem with anti-command. - by budelis - 31.07.2011, 04:37
Re: Problem with anti-command. - by =WoR=Varth - 01.08.2011, 02:05
Re: Problem with anti-command. - by budelis - 02.08.2011, 06:26

Forum Jump:


Users browsing this thread: 1 Guest(s)