I did debug when it creates entity like so , not sure if its correct code
PHP Code:
Create_Items(Origin[3])
{
new Float:flOrigin[3]
IVecFVec(Origin, flOrigin)
new ent = find_ent_by_class(-1,"dm_ammo_grenade");
if(get_brush_entity_origin(ent,flOrigin) == 0) {
client_print(0,3,"entity not found")
}
if(get_brush_entity_origin(ent,flOrigin) == 1) {
client_print(0,3,"entity found")
}
}
So I need to check if any entity exist on these Origin[3] before create it here
this code catch spawn of other entities too.... so I see "entity found" even this one is not spawned yet.
__________________
VDS in Europe 1 gb/s unmetered.Any configurations.
I accept Paypal, Moneybookers,etc