|
01-21-2012
|
8
|
|
Troll
Join Date: Jan 2012
Location: South Bend, Indiana
Posts: 731
|
PHP Code:
//#CLIENTSIDE
function onCreated() {
player.attr[12] = "GaniNameNoAlpha.gani"; //Reset when they log in or whatever
this.usable = true;
}
function onWeaponFired() {
if (this.useable == true) { //if weapon can get used
this.usable = false; //you cant use the weapon
player.attr[12] = "GaniNameAlpha.gani"; //add gani script for alpha
this.scheduleevent(15, "ResetAlpha"); //15 seconds timer
}
}
function onResetAlpha() {
this.useable = true; //can get used again;
player.attr[12] = "GaniNameNoAlpha.gani"; //remove gani script for alpha and fix the alpha
}
Stealth gani:
PHP Code:
SCRIPT
function onPlayerEnters() {
player.alpha = 0.25;
}
SCRIPTEND
No stealth gani:
PHP Code:
SCRIPT
function onPlayerEnters() {
player.alpha = 1;
}
SCRIPTEND
I win! Anyways itīs a script SNK could also easily make. I just made it for you to see how it works.
|
damn showoff
|
|
|
|