11.01.2012, 12:03
Set a variable on OnPlayerDisconnect and then check if the player has the variable and spawn him at the hospital:
pawn Код:
new died[MAX_PLAYERS];
public OnPlayerDeath(playerid, killerid, reason)
{
died[playerid] = 1;
return 1;
}
public OnPlayerSpawn(playerid)
{
if(died[playerid] == 1)
{
//Spawn at hospital
died[playerid] = 0;
}
return 1;
}