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, 12:25 AM #11
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by reScript
You kidding?
I'm a unemployed programmer, I have no time structure. :p


I still have to go to school for another year after this one Not Happy or Sad.
BTW when i said never i meant only Winky Winky i know there's a big difference but im tired Happy.
01-13-2012, 12:30 AM #12
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by reScript
I don't know what your talking about after the "BTW" part.


I put "i never started coding until about 3 months ago" and that sentence with never in there makes no sense so i was just notifying you and others before all the grammar nazi's come along telling me i've made a mistake.
01-13-2012, 12:33 AM #13
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by reScript
Oh right.

...


Well you still have "Modders" instead of modifiers in your signature. :carling:


I will change that right now just for you, i hope your feel special :carling:.

EDIT: There done :p.
01-13-2012, 12:38 AM #14
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by reScript
Correction:
"I will change that right now, just for you; I hope you feel special."
:carling:


But i don't want a pause between I will change that right now and just for you Winky Winky so theoretically speaking my sentence makes perfect sense the way it is and is just fine, if i was in an exam i wouldn't get deducted marks :p.
01-13-2012, 01:13 AM #15
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by reScript
You didn't capitalize your "I" and you said "your" not "you"...


I did say you :s "I will change that right now and just for you" and when i type i don't have time to capitalize my i's however when i'm writing i do Winky Winky.
01-13-2012, 05:54 AM #16
Originally posted by reScript
You did put "your".
Also what are you talking about not having time to capitalize your I's?


damn grammar nazi...
01-13-2012, 12:13 PM #17
i dnt bother bout cod4. Game to old. LOL

The following user groaned COD5-MAN- for this awful post:

247Yamato
01-13-2012, 04:36 PM #18
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by COD5
i dnt bother bout cod4. Game to old. LOL


CoD4 is only 12 months older than W@W Winky Winky.
01-13-2012, 05:32 PM #19
Kane500
< ^ > < ^ >
Originally posted by IVI40A3Fusionz View Post
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.


These are the same as the mw2 ones.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo