Posts: 46
Threads: 12
Joined: Feb 2013
Reputation:
0
Scripthing something which will reduce the player's health by 1 every second, and stop on the players' death, but it seems to be crashing my server...
Anyone who could thow in his code for this real quick? I was using a repeating timer, but that wasn't working out so well.
Posts: 46
Threads: 12
Joined: Feb 2013
Reputation:
0
Still gives me the same problem, when I die, it's all good, hp going down, when I die again, I respawn, also okay, but if I die again, I spawn in the middle of nowhere, and nothing is working anymore, please help me out here!
Posts: 7,801
Threads: 187
Joined: Feb 2010
Reputation:
0
Seems like a different problem in your script then. The code I gave you doesn't set the player's position to a different location and it shouldn't effect that.
Can you show your OnPlayerDeath and OnPlayerSpawn callbacks?
Posts: 46
Threads: 12
Joined: Feb 2013
Reputation:
0
It's a whole gamemode. Anyways, I think the problem is that a timer gets set twice..