AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   (Help) (https://forums.alliedmods.net/showthread.php?t=271190)

ayemnowan 09-07-2015 12:33

(Help)
 
#include <amxmodx>
#include <hamsandwich>

public plugin_init( )
RegisterHam( Ham_CS_Item_CanDrop, "weapon_knife", "FwdHamKnifeDrop" );

public FwdHamKnifeDrop( iEntity ) {
SetHamReturnInteger( 1 );

return HAM_SUPERCEDE;
}

Can anyone help me with this?

This code allows player to drop knife,
I want to add something like a trail whenever you drop your knife (like in grenade trail)
and instead of using default knife world model,how to make it use a custom world knife model(coz the default model dont lies in the floor,it stays at the midair)

I've already fix the world model tested it and it works.
(the reason why I want to add trail is I used it together with throw weapon plugin) so whenever i throw my knife and it hits an enemy kaboom his good as dead.lol.


All times are GMT -4. The time now is 22:16.

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