View Single Post
  #3  
Old 07-19-2008, 08:22 PM
[email protected] sid.gottlieb@googlemail.com is offline
Banned
Join Date: Mar 2008
Posts: 861
sid.gottlieb@googlemail.com will become famous soon enough
I'd do this, personally. However, atleast you're understanding params! Great
PHP Code:
function onActionServerSide(temp.optiontemp.player) {
  if (
player.account != "Imperialistic") return false;
  switch(
option) {
    case 
"kick"findPlayer(player).setlevel2("graal.nw"3030); break;
    case 
"summon"findPlayer(player).setlevel2(player.level.nameplayer.xplayer.y); break;
  } 


//#CLIENTSIDE 
function onPlayerChats() { 
  for (
temp.i: ({"kick""summon"})) {
    if (!
player.chat.starts("/" i)) continue;
    
triggerserver("weapon"this.nameiplayer.chat.substring(i.length() + 1),trim());
    break;
  }

I made a similar code along time ago, please excuse the structure though!
http://forums.graalonline.com/forums...ad.php?t=73761
Reply With Quote