Post: [SCRIPTS] Few Little Disable/Enable Functions
11-29-2011, 10:56 PM #1
IVI40A3Fusionz
Former Gaming Squad Member
(adsbygoogle = window.adsbygoogle || []).push({}); Firstly i would like to say that alot of people will know these but these are specifically for the newer coders.
Other than that i would also like to say that here you have a few Disable and Enable functions that i think would work well if you were making a game mode.

Disable/Enable Jumping.
**Disable Jumping:**
    allowJump(false);



**Enable Jumping:**
    allowJump(true);


Disable/Enable Sprinting.
**Disable Sprinting:**
    allowSprint(false);



**Enable Sprinting:**
    allowSprint(true);


Disable/Enable Controls.
**Disable Controls:**
    freezecontrols(true);



**Enable Controls:**
    freezecontrols(false);


Disable/Enable Weapons.
**Disable Weapons:**
    DisableWeapons();



**Enable Weapons:**
    self EnableWeapons();


Disable/Enable Aiming.
**Disable Aiming:**
    allowADS(false);



**Enable Aiming:**
    allowADS(true);


Disable/Enable Crouching.
**Disable Crouching:**
    allowCrouch(false);



**Enable Crouching:**
    allowCrouch(true);


Disable/Enable Standing
**Disable Standing:**
    allowStand(false);



**Enable Standing:**
    allowStand(true);


Flame if you like it won't bother me one bit. Thank the thread and it will encourage me to keep producing things Smile.
(adsbygoogle = window.adsbygoogle || []).push({});

The following user thanked IVI40A3Fusionz for this useful post:

247Yamato
01-13-2012, 05:42 PM #20
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by kane212v2isgay View Post
These are the same as the mw2 ones.


Not my fault IW put them in both COD4 and MW2 .gsc files.
01-13-2012, 07:27 PM #21
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by reScript
Well they do just upgrade the engine, most things are the same. :p


Why hello Mr. Captain Obvious Happy.

May i ask hows your day been :p.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo