Hello guys,
I have a question about
enum. At the moment I am using
<cstrike> library and I am trying to use
CS_OnCSWeaponDrop function.
As you can see from the API, I am able to get
weaponIndex.
PHP Code:
forward Action CS_OnCSWeaponDrop(int client, int weaponIndex);
I would like to compare
weaponIndex. For example, check if it is "awp". Of course I can use
GetEntityClassname, but I see that there is
enum CSWeaponID.
Is it possible somehow to compare weaponIndex in a clean way?
Something like:
PHP Code:
if (weaponIndex == CSWeapon_AWP)
...
As you can see "CSWeapon_AWP" is inside enum, is it possible somehow to use it?
Thank you.