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

Event for drop weapons


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hh2
AlliedModders Donor
Join Date: Sep 2010
Old 08-31-2012 , 13:35   Event for drop weapons
Reply With Quote #1

Hi.
Is there exists a event when player drop weapons ?
I need this for play sound when player drop weapons.
Method "register_clcmd("drop")" not work correctly.

Thanks for any help.

Last edited by hh2; 08-31-2012 at 13:35.
hh2 is offline
Torge
Veteran Member
Join Date: Oct 2011
Old 08-31-2012 , 14:07   Re: Event for drop weapons
Reply With Quote #2

What do you mean with 'correctly' ?
Torge is offline
hh2
AlliedModders Donor
Join Date: Sep 2010
Old 08-31-2012 , 14:14   Re: Event for drop weapons
Reply With Quote #3

When player have knife and use drop, sound play but knife not real dropped.
You know what i mean ?

But if not exists, i try "drop" command and checking if weapons are knife or grenades, if not i play sound.
Just i have only question: this event exists or no ?

Last edited by hh2; 08-31-2012 at 14:16.
hh2 is offline
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 08-31-2012 , 14:15   Re: Event for drop weapons
Reply With Quote #4

Quote:
Originally Posted by Torge View Post
What do you mean with 'correctly' ?
He wants to detect when a player has dropped a weapon succesfully. Hooking "drop" while playing holding a "knife" will not catch if a player dropped it.

Maybe it's not the reliablest, but you can use FM_SetModel forward from Fakemeta. Search here about that.
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS 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:35.


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