View Single Post
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