OnPlayerSpawn is not called
#1

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
Reply
#2

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?
Reply
#3

You fress F4 before?
If not, show your public OnPlayerSpawn
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)