Raised This Month: $51 Target: $400
 12% 

Solved detecting strip or drop


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 05-13-2021 , 06:29   detecting strip or drop
Reply With Quote #1

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
__________________
My plugin:

Last edited by Celena Luna; 05-17-2021 at 02:56.
Celena Luna is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 05-13-2021 , 09:52   Re: detecting strip or drop
Reply With Quote #2

What do you mean by stripped? Do you mean literally stripped by a plugin?
__________________
Bugsy is online now
Natsheh
Veteran Member
Join Date: Sep 2012
Old 05-13-2021 , 10:59   Re: detecting strip or drop
Reply With Quote #3

Try hooking ham_use on player_stripweapon entity and hook drop client cmd for dropping the weapon.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 05-13-2021 , 12:28   Re: detecting strip or drop
Reply With Quote #4

Quote:
Originally Posted by Bugsy View Post
What do you mean by stripped? Do you mean literally stripped by a plugin?
yeah, using user_strip_weapon

Quote:
Originally Posted by Natsheh View Post
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~
__________________
My plugin:
Celena Luna is offline
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 05-17-2021 , 02:56   Re: detecting strip or drop
Reply With Quote #5

It works
Thank you
__________________
My plugin:
Celena Luna is offline
Reply



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 08:33.


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