SA-MP Forums Archive
Help pls - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help pls (/showthread.php?tid=380692)



Help pls - sl!x - 26.09.2012

How to set cmd be able to use it after you die ?


Re: Help pls - Lordzy - 26.09.2012

Quote:
Originally Posted by sl!x
Посмотреть сообщение
How to set cmd be able to use it after you die ?
pawn Код:
new dead[MAX_PLAYERS];

public OnPlayerDeath(playerid, killerid, reason)
{
   dead[playerid]=1;
   return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
   if(dead[playerid] != 1)
   {
     SendClientMessage(playerid, 0xFF0000, "You must die to use commands.");
   }
   return 0;
}



Re: Help pls - sl!x - 26.09.2012

thank you very much