29.03.2012, 19:41
I don't know then it.
I use this method, in 0.3d this was not work when the player in vehicle. (After spawn, i got beer)
In 0.3e works without any problem, so there are some minor changes.
I use this method, in 0.3d this was not work when the player in vehicle. (After spawn, i got beer)
In 0.3e works without any problem, so there are some minor changes.
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
return SetTimerEx("RespawnPlayerAfterDeath", 0, false, "d", playerid);
}
forward RespawnPlayerAfterDeath(playerid);
public RespawnPlayerAfterDeath(playerid)
{
SetCameraBehindPlayer(playerid);
SetPlayerHealth(playerid, 100.0);
return SpawnPlayer(playerid);
}