Thread: Spawn Point
View Single Post
  #19  
Old 09-09-2007, 12:51 AM
Codein Codein is offline
jwd
Codein's Avatar
Join Date: Oct 2005
Location: Greater Manchester
Posts: 2,423
Codein has a spectacular aura aboutCodein has a spectacular aura about
Send a message via AIM to Codein Send a message via MSN to Codein
Quote:
Originally Posted by Kyranki View Post
The first one won't work because that's serverside, and usually when a serverside script is initialized it is not in the scope of the player.

Isn't onPlayerDies clientside only? If it is that won't work either becauset setlevel2() is serverside only.
onPlayerDies is both, however, they act differently.

On clientside, it triggers when the actual player dies. On serverside, it triggers when anybody dies :P

It'll set the level but I doubt you want to go to the hospital when someone else dies.

As I said, check for when the player dies, trigger to serverside and then set the level.
Reply With Quote