Help pls
#1

How to set cmd be able to use it after you die ?
Reply
#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
#3

thank you very much
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)