Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 11:14 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.