AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Solved detecting strip or drop (https://forums.alliedmods.net/showthread.php?t=332440)

Celena Luna 05-13-2021 06:29

detecting strip or drop
 
Is there anyway to detect if player's weapons got strip or dropped?
I was thinking about hooking drop or set_model but I am not really sure

Bugsy 05-13-2021 09:52

Re: detecting strip or drop
 
What do you mean by stripped? Do you mean literally stripped by a plugin?

Natsheh 05-13-2021 10:59

Re: detecting strip or drop
 
Try hooking ham_use on player_stripweapon entity and hook drop client cmd for dropping the weapon.

Celena Luna 05-13-2021 12:28

Re: detecting strip or drop
 
Quote:

Originally Posted by Bugsy (Post 2746710)
What do you mean by stripped? Do you mean literally stripped by a plugin?

yeah, using user_strip_weapon

Quote:

Originally Posted by Natsheh (Post 2746716)
Try hooking ham_use on player_stripweapon entity and hook drop client cmd for dropping the weapon.

I will give it a try. Thank you~

Celena Luna 05-17-2021 02:56

Re: detecting strip or drop
 
It works
Thank you


All times are GMT -4. The time now is 02:35.

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