Quote:
Originally Posted by Kyranki
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.