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