06.04.2010, 16:14
( Btw use [.pawn] [/pawn] )
I took this from one cops'n'robbers
Top of script where are all the new's at.
OnGameModeInIt.
Now go somewhere in script and do this :
OnPlayerConnect..
OnPlayerSpawn..
now add this to your command
Yes i know its newbish but hope it works.
I took this from one cops'n'robbers
Top of script where are all the new's at.
pawn Код:
new RobbedPlyRecent[MAX_PLAYERS];
pawn Код:
SetTimer("RobbedPlayerRecent",60000,1);
pawn Код:
forward RobbedPlayerRecent();
public RobbedPlayerRecent()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(RobbedPlyRecent[i] == 1)
{
RobbedPlyRecent[i] =0;
}
}
}
pawn Код:
RobbedPlyRecent[playerid] =0;
pawn Код:
RobbedPlyRecent[playerid] =1;
pawn Код:
if(RobbedPlyRecent[playerid] == 1) {
SendClientMessage(playerid,COLOR_ERROR,"Command used recently... Please wait");
return 1;
}