Thread: Boomerang
View Single Post
  #1  
Old 09-15-2011, 05:30 PM
iBeatz iBeatz is offline
Kavan
iBeatz's Avatar
Join Date: Dec 2010
Location: Northern Ireland, UK
Posts: 154
iBeatz will become famous soon enough
Send a message via Yahoo to iBeatz
Quote:
Originally Posted by irock1 View Post
Setlevel2 dosent work on it to warp players
You probably have used setLevel2 clientside. setLevel2 only works serverside. To use setLevel2 in a weapon such as this, I'd recommend using the triggerServer function to send the player object to the server, and then setting that player's level there.

Ie.
Clientside:
PHP Code:
triggerServer("gui"name"SetLevel"player object here); 
Serverside:
PHP Code:
function onActionServerSide() {
  if(
params[0] == "SetLevel"){
    
// your setlevel stuff here
  
}

__________________

Intelligence without ambition is like a bird without wings.

Reply With Quote