Raised This Month: $ Target: $400
 0% 

How to do with one variable


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Abhinash
Senior Member
Join Date: Jan 2015
Location: India,kolkata
Old 11-13-2020 , 09:32   How to do with one variable
Reply With Quote #1

Hey there.
So in my ZP there are many different classes and I don't like using different variable names like g_nem, g_assa, g_sni, g_surv, etc.
I wonder how can I achieve the same thing by using one varible and bitwise operator like --
g_iPlayerType[ iPlayer ] & P_SNIPER
g_iPlayerType[ iPlayer ] & P_NEMESIS

Like that I have seen one plugin use it but I can't understand. Can anyone tell me how to do as above ?
Abhinash 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 14:08.


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