AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Check if player got a item, for example a flashbang (https://forums.alliedmods.net/showthread.php?t=155030)

mottzi 04-16-2011 15:43

Check if player got a item, for example a flashbang
 
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)

nikhilgupta345 04-16-2011 15:59

Re: Check if player got a item, for example a flashbang
 
user_has_weapon

mottzi 04-17-2011 05:43

Re: Check if player got a item, for example a flashbang
 
ow, a function :)

ty

Bugsy 04-17-2011 10:24

Re: Check if player got a item, for example a flashbang
 
For grenades you can also use cs_get_user_bpammo().


All times are GMT -4. The time now is 19:57.

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