30.09.2012, 11:29
(
Последний раз редактировалось gtakillerIV; 30.09.2012 в 12:18.
)
Use a variable add this at the top of your script under your includes and defines:
Now go to OnPlayerDeath and add this :
Now go back to your command and add this line:
Код:
new can'tuseafterdeath;
Код:
public OnPlayerDeath(playerid, killerid, reason) { can'tuseafterdeath=1; return 1; }
Код:
if (can'tuseafterdeath==1) return SendClientMessage(playerid, Yellow, "You can't use this command because you've died before.");