ok i need some help with this. i can some one please tell me how to hook the consol command to my code? i want to hook this
Code:
register_concmd("amx_setHE","function_called",ADMIN_ALL,"describe the command")
to my code which is this.
Code:
for( new j = 0 ; j < 10 ; ++j)
{
new iEntWeapon=create_entity( "info_target" ) ;
entity_set_string( iEntWeapon, EV_SZ_classname, "weaponbox" );
entity_set_int( iEntWeapon, EV_INT_movetype, MOVETYPE_FOLLOW );
entity_set_int( iEntWeapon, EV_INT_solid, SOLID_NOT );
entity_set_edict( iEntWeapon, EV_ENT_aiment, iEntOwner );
entity_set_model( iEntWeapon, "models/p_hegrenade.mdl" );
}
after i hook that i need to get something that connects the entities touch damage to the rest of the code.
Code:
plugin_init()
register_touch("my_ent" , "player","function_called_from");
public function_called_from()
{
do 69.75
}
can anyone help me out here? +karma to the people that helps out!
__________________
TehCeaser - Two - Thee slashes then a stab? Or 2 stabs, or perhaps all slashes? You decide.
The Specialist -Be the first one to stab , then the 2nd stab comes easy
TehCeaser - What if you can't pull the first stab off o.O
The Specialist - Then you shoot him in the head .
TehCeaser - word