Raised This Month: $ Target: $400
 0% 

How to take away a player's shield if they are holding a knife


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 12-15-2020 , 09:52   Re: How to take away a player's shield if they are holding a knife
Reply With Quote #3

Just check whether the player is holding a shield or not, if true execute the drop command on him
Code:
if (cs_get_user_shield(id)) {     client_cmd(id, "drop") }

https://www.amxmodx.org/api/cstrike/cs_get_user_shield
https://www.amxmodx.org/api/amxmodx/client_cmd
__________________








CrazY. is offline
 



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 10:23.


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