AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Event for drop weapons (https://forums.alliedmods.net/showthread.php?t=194818)

hh2 08-31-2012 13:35

Event for drop weapons
 
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.

Torge 08-31-2012 14:07

Re: Event for drop weapons
 
What do you mean with 'correctly' ?

hh2 08-31-2012 14:14

Re: Event for drop weapons
 
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 ?

meTaLiCroSS 08-31-2012 14:15

Re: Event for drop weapons
 
Quote:

Originally Posted by Torge (Post 1787976)
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.


All times are GMT -4. The time now is 08:10.

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