25.10.2010, 14:09
Top
OnConnect..
OnDisConnect..
InYourCommand..
InYourCommand..
GameModeInit..
EndOfScript..
pawn Code:
new usedcommand[MAX_PLAYERS];
pawn Code:
usedcommand[playerid] =0;
OnDisConnect..
pawn Code:
usedcommand[playerid] =0;
InYourCommand..
pawn Code:
usedcommand[playerid] =10; // 10 seconds?
InYourCommand..
pawn Code:
if(usedcommand[playerid]) return SendClientMessage(playerid,COLOR,"Plz Wait");
GameModeInit..
pawn Code:
SetTimer("loltimer",1000,1);
EndOfScript..
pawn Code:
public loltimer()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(usedcommand[i] > 0)
{
usedcommand[i] --;
}
}
}