Help with Teleport Messages and performing commands whilst dead
#3

I'm unsure what you meant by your first wish but I can help with second one.

First, you have to create a variable and change it when the player is dead. For example;

pawn Код:
new playerStatus[MAX_PLAYERS];

public OnPlayerDeath(playerid, killerid, reason)
{
         playerStatus[playerid] = 1;
}
And check if that variable equals 1 when the command is performed. If it is, simply deny the player by sending a client message that says "You are dead" or something like that.
Reply


Messages In This Thread
Help with Teleport Messages and performing commands whilst dead - by Mobeen - 16.03.2014, 16:47
Re: Help with Teleport Messages and performing commands whilst dead - by LocMax - 16.03.2014, 16:54
Re: Help with Teleport Messages and performing commands whilst dead - by Calabresi - 16.03.2014, 16:56
Re: Help with Teleport Messages and performing commands whilst dead - by Parallex - 16.03.2014, 17:26

Forum Jump:


Users browsing this thread: 1 Guest(s)