Raised This Month: $ Target: $400
 0% 

Cvar: Add number together


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
DjOptimuS
Senior Member
Join Date: Jan 2009
Old 04-26-2012 , 07:41   Cvar: Add number together
Reply With Quote #1

How can i make a cvar in the following way.

// 1 - Grenade bonus
// 2 - HP Bonus
// 4 - Money bonus
// 8 - Something else
// 16 - Something else
// 32 - Something else etc.

This should be added together in the same cvar for example if the client selects grenade, hp, and money bonus the cvar should be 7.

How can i read this in a plugin and how do i know what options are selected?

Thank you.

Last edited by DjOptimuS; 04-26-2012 at 07:41.
DjOptimuS is offline
 



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 07:49.


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