26.07.2009, 02:34
Add this on the top of the script
Now add this inside where you select something for the first time ...after where you have selected then add this line
Add at the same place but before everything to check whether is the player accessing the command again.
and add this at the bottom of the script
Now add this under OnPlayerConnect
I am 70% sure that you are confused seeing this...but in real its damn easy :P
Good Luck with this
Thank You
-Abhinav
pawn Код:
new bool:AllowMenu[MAX_PLAYERS]=true;
forward CheckAllow(playerid);
pawn Код:
new bool:AllowMenu[playerid]=false;
SetTimerEx("CheckAllow",5000,0,"i",playerid);
pawn Код:
if(!AllowMenu[playerid]) return SendClientMessage(playerid,0xFF0000FF,"You are accessing it too fast, slow down !");
pawn Код:
public CheckAllow(playerid){
AllowMenu[playerid]=true;
}
pawn Код:
AllowMenu[playerid]=true;
Good Luck with this
Thank You
-Abhinav