View Single Post
  #4  
Old 09-11-2011, 11:24 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Here's a couple.

Level-NPC Example:

PHP Code:
function onCreated() {
  
this.setshape(13232);
}

function 
onActionWarp() {
  
player.setlevel2("level.nw"3030);
}

//#CLIENTSIDE
function onPlayerChats() {
  if (
player.chat == "/warp") {
    
triggeraction(this.x+1this.y+1"Warp""");
  }

Weapon-NPC Example:

PHP Code:
function onActionServerSide() {
  if (
params[0] == "warp") {
    
player.setlevel2("level.nw"3030);
  }
}

//#CLIENTSIDE
function onPlayerChats() {
  if (
player.chat == "/warp") {
    
triggerserver("gui"this.name"warp");
  }

__________________
Quote:
Reply With Quote