06.10.2013, 13:58
with this player will directly spawn in hospital without dying.
Well, i think there should be some variables and timer to do that.
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; }