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
Author Message
Woodi5
Junior Member
Join Date: Nov 2020
Location: Russia
Old 12-07-2020 , 07:40   How to take away a player's shield if they are holding a knife
Reply With Quote #1

How to take away a player's shield if they are holding a knife?
I did the check "ham item deploy weapon_knife"
HTML Code:
#include <AmxModx>
#include <HamSandwich>
 
public plugin_init() 
{
   RegisterHam(Ham_Item_Deploy, "weapon_knife", "Item_Deploy_Post", 1)
}
 
public Item_Deploy_Post(weapon)
{
   new id = get_pdata_cbase(weapon, 41, 4)
   client_print(id, print_chat, "You changed your weapon for a knife") 

   return HAM_IGNORED
}

Last edited by Woodi5; 12-07-2020 at 07:50.
Woodi5 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