Raised This Month: $ Target: $400
 0% 

Hooking weapon remove


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ARES[ro]
Senior Member
Join Date: Apr 2010
Old 10-24-2010 , 18:34   Re: Hooking weapon remove
Reply With Quote #9

Quote:
Originally Posted by Arkshine View Post
Well, for sure, it would be more complicated, because "drop" command calls CBasePlayer:: DropPlayerItem() but this function is used in severals others functions, so using orpheu you would need either to filter the functions, either to hook ClientCommand() and filter the arguments. At the end, hooking "drop" is the simplest way and fits perfectly to the need here. ;)
Yes of course, i couldnt agree more (i actly never disagreed) but it would be more safe IMO to hook using either Ham_RemovePlayerItem or Ham_Item_Drop . The reason why i stated that is in case there is an other plugin that uses method to drop players weapons other than client_cmd(id, "drop") maybe calling ham or something.
__________________
okay
ARES[ro] 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:29.


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