View Single Post
  #5  
Old 09-06-2007, 02:57 AM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Quote:
Originally Posted by PrinceOfKenshin View Post
Well try
PHP Code:
function onActionServerSide() {
  
with(findplayer(params[0])) {
    if (
player.guild != clientr.gang) {
      
player.nick player.nick " *" @clientr.gangrank"* (" @clientr.gang")";
    }
  }
}

//#CLIENTSIDE
function onPlayerChats() {
  if (
player.chat == "/gang tag") {
    if (
strlen(clientr.gang 0)) {
      
triggerserver("gui""weapon"player.account);
    }
  }

God, mixing GS1 and GS2 makes me cringe. That script is wrong btw.
PHP Code:
function onActionServerSide() {
  if (
player.guild != clientr.gang) {
    
player.nick player.nick " *" @clientr.gangrank"* (" @clientr.gang")";
  }
}

//#CLIENTSIDE
function onPlayerChats() {
  if (
player.chat == "/gang tag") {
    if (
clientr.gang.length() > 0) {
      
triggerserver("gui"this.namenull);
    }
  }

I would normally add a parameter for what the serverside part is doing as a security measure, but didn't want to confuse it.

Also, triggers preserve the calling player so you don't need to use the findplayer() on serverside unless you want to access a player that isn't yourself.
__________________
Reply With Quote