View Single Post
  #6  
Old 07-31-2009, 01:48 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by [email protected] View Post
Then put this at the bottom where you currently have the actionprojectile:
PHP Code:
if (actionprojectile
{
  if(
strequals(#p(index),PARAMEQUALS)) 

triggerserver("weapon"this.name"hp");   //TRIGGERS SCRIPT AT TOP
 
}

You shouldn't be mixing GS1 and GS2 like that.

PHP Code:
function onActionProjectile(param) {
  if (
param == "gun") { // or "PARAMEQUALS", lol...
    
triggerserver("gui"name"hp");
  }

Quote:
Originally Posted by [email protected] View Post
Also heres a little tip for you. after you script a script, go to rc and type :
[...]
You really should get into the habit of just pressing tab as you script. RC keeps your indentation for a reason. You'll find it's well worth it once you're used to scripting properly.
__________________
Reply With Quote