OnPlayerSpawn is not called - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Server (
https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (
https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: OnPlayerSpawn is not called (
/showthread.php?tid=624506)
OnPlayerSpawn is not called -
andyandyy8 - 17.12.2016
Hey, guys!
I got a problem with OnPlayerSpawn. Obviously, every time a player dies he doesn't respawn. I tried everything: SetSpawnInfo, AddPlayerClass, SetPlayerPos but nothing seems to work... Also, I added the crashdetect plugin and I don't receive any kind of error. Do you have any idea what is wrong with the script?
Sometimes, after 4/5 minutes, the player is respawned. If I set the player\s health smaller than 0 and after that bigger than 0 the OnPlayerSpawn is called. It is just like this:
https://www.youtube.com/watch?v=rh73VMIBqkA
Re: OnPlayerSpawn is not called -
andyandyy8 - 17.12.2016
I have tested some things, OnPlayerUpdate isn't called anymore when the player dies. The player got desync.
Edit:
I have tested a gamemode with AddPlayerClass and SetSpawnInfo in it. Nor there I get spawned. It is a problem with my VPS?
Re: OnPlayerSpawn is not called -
Disaster97 - 18.12.2016
You fress F4 before?
If not, show your public OnPlayerSpawn