He mean to call when the weapons from the ground ( example fy_snow weapons ) are being created.
Example, when a new WEAPONBOX entity are maded.
This will be scanned ONLY when you pickup an m4a1, that's when you first create a m4a1 weaponbox:
PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>
public plugin_init( )
{
RegisterHam( Ham_Spawn , "weapon_m4a1", "Test" );
}
public Test( Ent )
{
if( !pev_valid( Ent ) )
return PLUGIN_HANDLED;
new szClass[ 15 ];
pev( Ent , pev_classname, szClass, charsmax( szClass ) );
server_print( "%s ", szClass );
return PLUGIN_CONTINUE;
}
__________________