View Single Post
  #16  
Old 01-08-2007, 10:17 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Quote:
Originally Posted by godofwarares View Post
Bah. Just run it serverside.

PHP Code:
function onActionServerSide(cmd)
{

  switch(
cmd)
  {

    case 
"setchat":
    {
      
      
with(getplayer(params[1])) player.chat "Trying to set your chat!";

    break;
    
    }

  }

}

//#CLIENTSIDE
function onPlayerChats()
{

  if (
player.chat.starts("/find"))
  {

    
triggeraction(00"serverside"namesetchatplayer.chat.substring(6,-1));

  }


That should work
bah, 2 things

1) findplayer( params[ 1]).chat = "Trying to set your chat!";
2) triggerserver( "gui", this.name, "setchat", player.chat.substring( 6));

getplayer isn't gs2, its gs1
__________________
Reply With Quote