Quote:
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:
|
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.