Not that great at this either, but try this:
Code:
#include <amxmodx>
#include <engine>
public plugin_init()
{
register_plugin("w/e","w/e","w/e");
set_task(5.0,"do_stuff");
}
public do_stuff()
{
for(new i = 0;i <= 24;i++)
{
new Float:origin[3];
origin[0] = random_float(0.0,1000.0);
origin[1] = random_float(0.0,1000.0);
origin[2] = random_float(0.0,1000.0);
new ent = create_entity("info_target");
entity_set_origin(ent,origin);
entity_set_string(ent,EV_SZ_model,"whatever_model");
}
}
Of course, change some stuff. It'll crash if you load it as-is.
__________________