#2

Use a variable add this at the top of your script under your includes and defines:

Код:
new can'tuseafterdeath;
Now go to OnPlayerDeath and add this :

Код:
public OnPlayerDeath(playerid, killerid, reason)
{
             can'tuseafterdeath=1;
	return 1;
}
Now go back to your command and add this line:

Код:
if (can'tuseafterdeath==1) return SendClientMessage(playerid, Yellow, "You can't use this command because you've died before.");
Reply


Messages In This Thread
Help - by sl!x - 30.09.2012, 11:22
Re: Help - by gtakillerIV - 30.09.2012, 11:29
Re: Help - by gnoomen2 - 30.09.2012, 11:37
Re: Help - by sl!x - 30.09.2012, 11:52
Re: Help - by gtakillerIV - 30.09.2012, 12:15
Re: Help - by sl!x - 30.09.2012, 12:43
Re: Help - by sl!x - 30.09.2012, 13:22

Forum Jump:


Users browsing this thread: 1 Guest(s)