17.12.2016, 22:48
(
Последний раз редактировалось andyandyy8; 18.12.2016 в 00:33.
)
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
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