Thread: Serverwarp
View Single Post
  #3  
Old 02-04-2006, 09:55 PM
Moondeath_2 Moondeath_2 is offline
"..."
Moondeath_2's Avatar
Join Date: Jan 2006
Location: Far Far Away.
Posts: 238
Moondeath_2 is an unknown quantity at this point
Send a message via AIM to Moondeath_2 Send a message via MSN to Moondeath_2 Send a message via Yahoo to Moondeath_2
Quote:
Originally Posted by Skyld
There's no point, just set a string or flag on the serverside, and then have the clientside check for that string or flag to be set and serverwarp from there.
Couldn't you juse use this I may be a little off but I'm sure it should work.

PHP Code:
function onActionServerside() 
 {
   
with (findplayer("AccountName")) {
    
player.triggerclient("NPCName","reconnect");
  }
}

  
The NPC Below is the npc you are triggering

// #CLIENTSIDE

function onActionClientside() {
 if (
params[0] == "reconnect") {
  
serverwarp("servername");
  }

Edit: I'd suggest NOT using flags in a way it's useless.
__________________
Aim: DarkFireXZ3
Email: [email protected] or [email protected]
Common Location: Unholy Nation
Gscript, Playerworld Rules, Support Center
Reply With Quote