View Single Post
  #1  
Old 09-08-2011, 02:41 AM
furry_mougle furry_mougle is offline
big heart
furry_mougle's Avatar
Join Date: Aug 2011
Posts: 42
furry_mougle is an unknown quantity at this point
Serverside substring

how would I pass temp.tag serverside? it only registers clientside

edit: mark got it

PHP Code:
function onActionServerSide(cmd) {
  if (
cmd == "tag") {
    
player.guild temp.tag;
  }
  if (
cmd == "emptytag"){
    
player.guild "";
  }
}

//#CLIENTSIDE

function onPlayerChats(){
temp.tag player.chat.substring("/tag ".length());
  if (
player.chat.starts("/tag ") && player.guild == "" ) {
    
triggerserver("gui",this.name,"tag"); // triggers params tag and sets player guild
    
player.chat "Tag set to: " temp.tag;
  } else if(
player.chat == "/tag" && player.guild != "" ){
    
triggerserver("gui",this.name,"emptytag");
    
player.chat "";
  }

__________________
Quote:
Originally Posted by ffcmike View Post
But make sure to change beer.png to Orange Juice.
pay bills to play graal

Last edited by furry_mougle; 09-08-2011 at 03:13 AM..
Reply With Quote