What do you mean by "it goes bad" ? what happens ?
PHP Code:
stock create_entity_at_origin(szClass[], Float:fOrigin[3])
{
new ent = create_entity(szClass)
entity_set_origin(ent, fOrigin)
return ent
}
not tested but should work, returns the entity's index
__________________