Raised This Month: $ Target: $400
 0% 

Check if player got a item, for example a flashbang


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mottzi
Veteran Member
Join Date: May 2010
Location: Switzerland
Old 04-16-2011 , 15:43   Check if player got a item, for example a flashbang
Reply With Quote #1

Hey Guys,

Could you tell me how I can check, if the Player got a Item in his Equip?

For Example:

I got a M4, 2Henades and 1 Flashbang

How can i check if i have a flashbang? (not get_user_weapon, the player must not have that item in his hand! he must have the item in his eqiup)
__________________
Quote:
#define true ((rand() % 2)? true: false) //Happy debugging suckers
mottzi is offline
Send a message via MSN to mottzi
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 04-16-2011 , 15:59   Re: Check if player got a item, for example a flashbang
Reply With Quote #2

user_has_weapon
__________________
Quote:
Originally Posted by DarkGod View Post
nikhilgupta generates his plugins using sheer awesome.
If you like my work, please
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
mottzi
Veteran Member
Join Date: May 2010
Location: Switzerland
Old 04-17-2011 , 05:43   Re: Check if player got a item, for example a flashbang
Reply With Quote #3

ow, a function

ty
__________________
Quote:
#define true ((rand() % 2)? true: false) //Happy debugging suckers
mottzi is offline
Send a message via MSN to mottzi
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 04-17-2011 , 10:24   Re: Check if player got a item, for example a flashbang
Reply With Quote #4

For grenades you can also use cs_get_user_bpammo().
__________________
Bugsy is online now
Reply



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 19:57.


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