Raised This Month: $32 Target: $400
 8% 

Counter-Strike: Global Offensive item_defuser & item_cutters


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 05-04-2020 , 07:37   Counter-Strike: Global Offensive item_defuser & item_cutters
Reply With Quote #1

PHP Code:
    if (g_nMapType == MAP_BOMB && GetClientTeam(nClient) == CS_TEAM_CT && !GetEntProp(nClientProp_Send"m_bHasDefuser"))
        
GivePlayerItem(nClient"item_defuser"); 
Hi, I am able to correctly give defusers to VIP CT players but not cutters. Can you help me checking if a player has cutters? I couldn't find any method. I have searched a lot, though.
I really need to check whether the player has cutters before giving item_cutters to them. Otherwise, the cutters will drop on the ground and other non VIP players can take them.
__________________

Last edited by claudiuhks; 05-04-2020 at 07:37.
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 05-04-2020 , 16:05   Re: Counter-Strike: Global Offensive item_defuser & item_cutters
Reply With Quote #2

item_defuser and item_cutters are same.

item_defuser appear when player die in bomb maps. (defuse kit)
item_cutters appear when player die in hostage map (rescue kit)

And you find these entities on ground only, once player collect them, it disappear.

Just check, m_bHasDefuser and give item_defuser, doesn't matter is it bomb or hostage map.
__________________
Do not Private Message @me

Last edited by Bacardi; 05-04-2020 at 16:06.
Bacardi is offline
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 05-04-2020 , 18:28   Re: Counter-Strike: Global Offensive item_defuser & item_cutters
Reply With Quote #3

Thanks so much @Bacardi I will check soon.
__________________
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
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 16:46.


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