12.06.2015, 10:37
https://sampwiki.blast.hk/wiki/SetSpawnInfo
Try SetSpawnInfo in OnPlayerDeath with get the position of player:
new Float: x, Float:y, Float:z, Float:a;
GetPlayerPos(playerid, x, y, z);
GetPlayerFacingAngle(playerid, a);
SetSpawnInfo( playerid, 0, 0, x, y, z, a, -1, -1, -1, -1, -1, -1);
Something like that.
If wont work try add SpawnPlayer(playerid) under it in OnPlayerDeath.
Try SetSpawnInfo in OnPlayerDeath with get the position of player:
new Float: x, Float:y, Float:z, Float:a;
GetPlayerPos(playerid, x, y, z);
GetPlayerFacingAngle(playerid, a);
SetSpawnInfo( playerid, 0, 0, x, y, z, a, -1, -1, -1, -1, -1, -1);
Something like that.
If wont work try add SpawnPlayer(playerid) under it in OnPlayerDeath.