09.10.2014, 15:38
On Top
under OnPlayerDeath
Under OnPlayerCommand
Under OnPlayerSpawn
I just gave you an idea, It's not going to work properly as player have to type the command after he's dead and before he spawns else he can't type the command, For that you can create a time of 10 seconds..
pawn Код:
new Death[MAX_PLAYERS];
pawn Код:
Death[playerid] = 1;
pawn Код:
//Under 911 command add this
if(Death[playerid] == 1)
{
//Means player is dead
}
else
{
SendClientMessage(playerid, -1, "You are not dead");
}
return 1;
}
pawn Код:
Death[playerid] = 0;