View Single Post
  #13  
Old 06-25-2009, 06:42 AM
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
Quote:
Originally Posted by Ronnie View Post
Is -loltest , the name of the weapon?
In the example above yes it would be, and here's some usage of triggerserver.

PHP Code:
// Weapon Name: -loltest
function onActionServerSide() {
  echo(
"i luld " params[0]);
}
//#CLIENTSIDE
function onCreated() {
  
triggerserver("gui""-loltest""lolparam");
  
// Alternatively you can do..
  
triggerserver("gui"this.name"lolparam");

Edit: Looks like salesman was a few seconds earlier than I was..
__________________
Quote:
Reply With Quote