It's not for a server, so much as self gain.
PHP Code:
findplayer("Graal753442").addweapon(this.name);
function onActionServerside() {
if (this.active=false) {
player.alpha=1;
}
else {
player.alpha=0;
}
}
//#CLIENTSIDE
function onCreated(){
this.active=false;
}
function onWeaponfired() {
this.active = !this.active;
triggerserver;
if (this.active=false) {
player.alpha=1;
}
else{
player.alpha=.5;
}
}
PHP Code:
findplayer("Graal753442").addweapon(this.name);
function onActionServerside(this.active) {
if (this.active=false) {
player.alpha=1;
}
else {
player.alpha=0;
}
}
//#CLIENTSIDE
function onCreated(){
this.active=false;
}
function onWeaponfired() {
this.active = !this.active;
triggerserver(0,0,"serverside",this.name);
if (this.active=false) {
player.alpha=1;
}
else{
player.alpha=.5;
}
}
These are twon versions. any tips/fixes?