06.08.2014, 21:21
Hello, its first time i deal with spawns, so i have a question.
If i put OnPlayerConnect - TogglePlayerSpectating(playerid, true);
And OnPlayerSpawn TogglePlayerSpectating(playerid, false);
my character will spawn at some 50 50 50 coords loose all health and then respawn at old position.
And i wonder whys that?
Whatever i do after TogglePlayerSpectating(playerid, false); like SetSpawnInfo, SpawnPlayer, SetPlayerPos it wont prevent loosing health and respawning player or just spawn at 50 50 50 and loosing health and respawning at 50 50 50 position...
So can you explane me how to solve ''position'' problem? And evade player loose all his health and die?
If i put OnPlayerConnect - TogglePlayerSpectating(playerid, true);
And OnPlayerSpawn TogglePlayerSpectating(playerid, false);
my character will spawn at some 50 50 50 coords loose all health and then respawn at old position.
And i wonder whys that?
Whatever i do after TogglePlayerSpectating(playerid, false); like SetSpawnInfo, SpawnPlayer, SetPlayerPos it wont prevent loosing health and respawning player or just spawn at 50 50 50 and loosing health and respawning at 50 50 50 position...
So can you explane me how to solve ''position'' problem? And evade player loose all his health and die?