3 time one cmd
#2

Top
Код:
new BlockCmd[MAX_PLAYERS];
connect/disconnect
Код:
BlockCmd[playerid] = 0;
Код:
if(strcmp("/mycommand", cmdtext, true) == 0)
{
	if(BlockCmd[playerid] < 3)
	{
		BlockCmd[playerid]++;
		// Do something here
	}else SendClientMessage(playerid, COLOR, "SERVER: Command blocked :D");
	return 1;
}
Reply


Messages In This Thread
3 time one cmd - by user226 - 28.07.2009, 20:00
Re: 3 time one cmd - by Jefff - 28.07.2009, 20:15
Re: 3 time one cmd - by user226 - 28.07.2009, 20:35
Re: 3 time one cmd - by arnutisz - 28.07.2009, 20:50

Forum Jump:


Users browsing this thread: 1 Guest(s)