Raised This Month: $ Target: $400
 0% 

getting weapons


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Ryu2877
Member
Join Date: Sep 2006
Location: China
Old 04-23-2007 , 01:47   Re: getting weapons
Reply With Quote #7

For this case, My juvenile idea of checking user has especial weapon:
PHP Code:
stock bool:bHasWeapon(iUserIDiWeaponID)
{
    if ( 
is_user_alive(iUserID) && pev(iUserIDpev_weapons) & (1<<iWeaponID) )
        return 
true
    
return false

"iWeaponID" is "CSW_*"
Ryu2877 is offline
 


Thread Tools
Display Modes

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 20:54.


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