19.09.2010, 13:51
pawn Код:
new JustDied[MAX_PLAYERS];
public OnPlayerSpawn(playerid)
{
if(JustDied[playerid] == 1) { SetPlayerPos(playerid, X,Y,Z);/*hospital pos*/ JustDied[playerid] = 0; }
return 1;
}
public OnPlayerDeath(playerid,killerid,reason)
{
JustDied[playerid] = 1;
return 1;
}