A question, Whats the command for....
#1

How do I do a command that can be used only once untill ur dead and then u can use it again after you spawn?
Thanks
Reply
#2

make a variable at the TOP of your script (after includes)

Ex:

Код:
new WaitDeath[MAX_PLAYERS];
Then put this under the command:

Код:
if(WaitDeath[playerid] == 1)
{
SendClientMessage(playerid,COLOR,"You need to wait until you die to use this command again");
return 1;
}
Then at the end of the functions in the command put

Код:
WaitDeath[playerid] = 1;
Then at OnPlayerSpawn put

Код:
WaitDeath[playerid] = 0;
Reply
#3

Thanks man, I got it!
Reply
#4

no problem glad to help
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)