06.08.2016, 22:07
Quote:
You get autospawned after death as it always has been, otherwise you prevent it by script (it seem you have somewhere ForceClassSelection)
Here are way to many open question, why is it delayed, why is it in OnPlayerDeath not in OnPlayerSpawn (is the player able to switch classes while being alive?), do you have in OnPlayerSpawn something that works against it like SetPlayerPos and ResetPlayerWeapons? Doesn't OnPlayerDeath has a reason parameter ? Does the code even get called (maybe the hook isn't working)? Put SetSpawnInfo in OnPlayerDeath in a new pwn file and test it than you know if it works or not |
It is delayed to in order show the death thingy from gta sadefault,
No he's not able to switch, they must use /changeteam
Never used OnPlayerSpawn in my gamemode.
OnPlayerdeath do have a reason parameter, but this works fine.
The hooking is fine.