Quote:
Originally Posted by Arkshine
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.
__________________