View Single Post
  #3  
Old 02-18-2012, 04:18 AM
Emera Emera is offline
Delterian Hybrid
Emera's Avatar
Join Date: Mar 2011
Location: Newcastle Upon-Tyne
Posts: 1,704
Emera is a jewel in the roughEmera is a jewel in the rough
Quote:
Originally Posted by ffcmike View Post
It's because clientside player.level is the singular level, whereas serverside player.level would be the map object, while player.x and player.y is relevant to your map coordinates.
You don't really need to be passing level and coordinates for a basic summon though, you could just do:

PHP Code:
case "summon":
  
temp.pl findplayer(params[1]);
  if(
temp.pl == NULL){
    return;
  }
  
temp.pl.setlevel2(player.level.nameplayer.xplayer.y);
break; 
Thank you so much <3
__________________
Reply With Quote