Raised This Month: $ Target: $400
 0% 

get_user_weapons


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 04-15-2012 , 18:11   Re: get_user_weapons
Reply With Quote #2

PHP Code:
const SOME_WEAPONS_I_WANT = ( << CSW_USP ) | ( << CSW_M4A1 );

static 
iWeapons32 ], iNumi;
iNum 0;
get_user_weaponsiPlayeriWeaponsiNum );

// iNum -> Weapons count
// iWeapons[ 0 ] -> First weapon
// iWeapons[ 1 ] -> Second weapon

for( 0iNumi++ )
  if( ( 
<< iWeapons] ) & SOME_WEAPONS_I_WANT // If this weapon we are currently parsing is contained in SOME_WEAPONS_I_WANT bitsum then:
    
/* Your code */ 
Of course, CSW_*, DODW_*, TFW_*.

Last edited by claudiuhks; 04-15-2012 at 18:16.
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
 



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:46.


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