View Single Post
  #2  
Old 12-13-2012, 10:09 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Tip: Don't use variables in multiple scripts. Use public functions instead:

Weapon: -Movement

PHP Code:
//#CLIENTSIDE

public function enableMovement() {
  
this.canmove true;
}

public function 
disableMovement() {
  
this.canmove false;
}

// use this.canmove in your system 
then in your weapons:

PHP Code:
//#CLIENTSIDE
function onKeyPressed(codekey) {
  if (
key == "v") {
    (
"-Movement").disableMovement();
    
setani("sword""");
    
sleep(1);
    (
"-Movement").enableMovement();
  }

__________________
Quote:
Reply With Quote