Spawn in hospital problem
#1

I want help for spawning player in hospital after death, but it seems that i have a problem with that.
Here are my codes:
pawn Код:
new Dead[MAX_PLAYERS];


public OnPlayerDeath(playerid, killerid, reason)
{
    Dead[playerid] = 1;
    return 1;
}


public OnPlayerSpawn(playerid)
{
    if(Dead[playerid] == 1)
    {
        Dead[playerid] = 0;
        SetPlayerPos(playerid, 1230.9292,293.1611,-67.4531);
    }
    return 1;
}
If i die, then the skin changes and it freezes the player, showing those "spawn buttons"
and as you can see, the player isn't in hospital, he's at spawn what's after registering:

Reply
#2

Really need help, i'm stuck with my work for this
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)