View Single Post
  #11  
Old 01-06-2011, 03:55 AM
Twilikari Twilikari is offline
Registered User
Twilikari's Avatar
Join Date: Nov 2010
Location: America
Posts: 86
Twilikari is on a distinguished road
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?
Reply With Quote