Thread: Spawn Point
View Single Post
  #2  
Old 09-06-2007, 10:53 PM
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 Knightmare1 View Post
like i said, i did gs1, so i still use if (playerdead).
can someone help? heres script.
PHP Code:
//#CLIENTSIDE
function onCreated() {
  if (
playerdead)
    
setlevel2("hospital.nw");
    
sleep(3);

setlevel2(); is clientside.

You should check for the event of when the player's dying. Like onPlayerDies().

Then you should trigger the server to set the level.

Also, setlevel2's syntax is:

setlevel2(level name as String, x as float, y as float);

:P
Reply With Quote