#9

Quote:
Originally Posted by ۞●•λвнiиаv•●۞
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

ok i will check it later
Reply


Messages In This Thread
menu - by nuriel8833 - 25.07.2009, 14:53
Re: menu - by abhinavdabral - 25.07.2009, 15:13
Re: menu - by SpiderPork - 25.07.2009, 15:33
Re: menu - by abhinavdabral - 25.07.2009, 15:43
Re: menu - by nuriel8833 - 25.07.2009, 16:16
Re: menu - by abhinavdabral - 25.07.2009, 16:24
Re: menu - by nuriel8833 - 25.07.2009, 18:23
Re: menu - by abhinavdabral - 26.07.2009, 02:34
Re: menu - by nuriel8833 - 26.07.2009, 06:01
Re: menu - by nuriel8833 - 26.07.2009, 11:48

Forum Jump:


Users browsing this thread: 1 Guest(s)