==> OnPlayerDeath Help!<==
#4

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
Set the position in OnPlayerSpawn instead.
with this player will directly spawn in hospital without dying.


Well, i think there should be some variables and timer to do that.
Код:
new InHospital[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
    InHospital[playerid] = 0;
    return 1;
}

public OnPlayerDeath(playerid)
{
    InHospital[playerid] = 1;
    if(InHospital[playerid] == 1)
    {
        SetPlayerPos(playerid , -320.0716 , 1049.2888 , 20.3403);
        SetTimer("spawn",your time interval, 0);
    }
    return 1;
}


forward spawn(playerid);
public spawn(playerid)
{
   InHospital[playerid] = 0;
   SpawnPlayer(playerid);
   return 1;
}
Reply


Messages In This Thread
==> OnPlayerDeath Help!<== - by Heisenbergx2 - 06.10.2013, 13:21
Re: ==> OnPlayerDeath Help!<== - by Konstantinos - 06.10.2013, 13:23
Re: ==> OnPlayerDeath Help!<== - by Matnix - 06.10.2013, 13:37
Re: ==> OnPlayerDeath Help!<== - by Iron3man - 06.10.2013, 13:58
Re: ==> OnPlayerDeath Help!<== - by Heisenbergx2 - 06.10.2013, 14:01
Re: ==> OnPlayerDeath Help!<== - by Iron3man - 06.10.2013, 14:05
Re: ==> OnPlayerDeath Help!<== - by Heisenbergx2 - 06.10.2013, 14:08
Re: ==> OnPlayerDeath Help!<== - by Iron3man - 06.10.2013, 14:12
Re: ==> OnPlayerDeath Help!<== - by QuaTTrO - 06.10.2013, 14:12
Re: ==> OnPlayerDeath Help!<== - by Heisenbergx2 - 06.10.2013, 14:17

Forum Jump:


Users browsing this thread: 1 Guest(s)