@by4udilo: What exactly are you trying to do? You may not even need to use ItemDeploy.
@Rirre: Is there a reason you are enabling the forwards at plugin_init()? They are enabled upon creation at plugin_precache().
This is pointless and doesn't improve functionality/readability, IMO. Plus, you do not use HOOK_COUNT anywhere else. Why are you multiplying by 1? If you do insist on using a variable to store the number of weapons/hooks, at least use it everywhere that this value is used (in all for loops).
PHP Code:
#define HOOK_COUNT 1 * (sizeof g_szWeaponList)
new HamHook:hamhooks[HOOK_COUNT];
//Just do
new HamHook:hamhooks[ sizeof( g_szWeaponList ) ];
What is the purpose of this count variable, why not use i to index hamhooks?
PHP Code:
public plugin_precache()
{
new count = 0;
for( new i; i < sizeof g_szWeaponList; i++ )
{
hamhooks[count++] = RegisterHam( Ham_Item_Deploy, g_szWeaponList[i], "Ham_Item_Deploy_Post", true );
}
}
__________________