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(code, key) {
if (key == "v") {
("-Movement").disableMovement();
setani("sword", "");
sleep(1);
("-Movement").enableMovement();
}
}