Help pls
#2

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;
}
Reply


Messages In This Thread
Help pls - by sl!x - 26.09.2012, 16:39
Re: Help pls - by Lordzy - 26.09.2012, 17:56
Re: Help pls - by sl!x - 26.09.2012, 19:43

Forum Jump:


Users browsing this thread: 1 Guest(s)