Thread: Help Meh
View Single Post
  #5  
Old 07-26-2009, 12:34 AM
Mattehy Mattehy is offline
Developer
Mattehy's Avatar
Join Date: Jul 2009
Posts: 58
Mattehy is on a distinguished road
Question

So it would be :
PHP Code:
function onActionServerSide() { 
  if (
params[0] == "Warp2OSL") { 
    
player.setlevel2("onlinestartlocal.nw"3030); 
  } 

//#CLIENTSIDE 
function onKeyPressed(num1keynum2

  if (
key == "x"
  { 
    
ar = {player.+ (vecx(player.dir) * 2) + 1.1
          
player.+ (vecy(player.dir) * 2) + 1.1}; 
    
triggeraction(ar[0], ar[1], "Warp2OSL"); 
    
setani("haven_staffstick",NULL); 
    
freezeplayer(0.4); 
    
sleep(0.4); 
  } 

And the staffblock would be:
PHP Code:
blah blah blah
function onActionWarp2OSL()
destroy(); 
???
Reply With Quote