Code:
public plugin_init()
{
register_concmd("what_they_type","function_it_calls");
register_touch("my_ent" , "player","function_called_from");
}
public function_it_calls()
{
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" );
}
public function_called_from()
{
do 69.75
}
Walla!