players can type the command only one time no more
#2

Hello. Create new variable on the mode, like:
pawn Код:
new bool:GotMoney[MAX_PLAYERS];
OnPlayerConnect:
pawn Код:
GotMoney[playerid] = false;
Then do check in the command, if GotMoney return true he will get message.
pawn Код:
if(GotMoney[playerid]) return SendClientMessage(playerid, -1, "You already took the money.");
Reply


Messages In This Thread
players can type the command only one time no more - by ethhackerman - 04.03.2013, 11:29
Re: players can type the command only one time no more - by Doughty - 04.03.2013, 11:40
Re: players can type the command only one time no more - by B-Matt - 04.03.2013, 12:36
Re: players can type the command only one time no more - by Mmartin - 04.03.2013, 12:44
Re: players can type the command only one time no more - by ethhackerman - 04.03.2013, 15:30
Re: players can type the command only one time no more - by ethhackerman - 04.03.2013, 15:40

Forum Jump:


Users browsing this thread: 1 Guest(s)