OnPlayerSpawn
#2

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;
}
Reply


Messages In This Thread
OnPlayerSpawn - by Gooday - 11.01.2012, 11:42
Re : OnPlayerSpawn - by [HiC]TheKiller - 11.01.2012, 12:03
Re: OnPlayerSpawn - by JamesC - 11.01.2012, 12:05
Re: OnPlayerSpawn - by Gooday - 11.01.2012, 13:06

Forum Jump:


Users browsing this thread: 1 Guest(s)