Raised This Month: $ Target: $400
 0% 

shortcut to disable c4?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
n0obie4life
Veteran Member
Join Date: Dec 2004
Old 04-24-2005 , 08:02   shortcut to disable c4?
Reply With Quote #1

okay. for those who have seen my vote AIO....i want to make a disable c4 cvar.

i know how to do it, but i'm just wondering if there is a shortcut to do it.

cause all my userweapon are

Code:
        if(usersweapon==CSW_KNIFE || usersweapon == CSW_C4 || usersweapon == CSW_M249) {
(just one part of the script)

i want to do this, if the admin activates the cvar:

vote_allowc4 . then the script will just ignore the
Code:
usersweapon == CSW_C4

is there a shortcut to doing that so that it just ignores ALL the csw_c4 in the script?
__________________
Plugins:
none

n0obie4life is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 04-24-2005 , 13:13  
Reply With Quote #2

You have to change every
Code:
usersweapon == CSW_C4
into a
Code:
(usersweapon == CSW_C4 && !get_cvar_num("vote_allowc4"))
. Note the parentheses.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
n0obie4life
Veteran Member
Join Date: Dec 2004
Old 04-26-2005 , 02:40  
Reply With Quote #3

Quote:
Originally Posted by XxAvalanchexX
You have to change every
Code:
usersweapon == CSW_C4
into a
Code:
(usersweapon == CSW_C4 && !get_cvar_num("vote_allowc4"))
. Note the parentheses.
aye, tanks. that was what i know how to do, but there doesn't seem to be any shortcut, so nvm
__________________
Plugins:
none

n0obie4life is offline
Reply



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 -4. The time now is 16:46.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode