I know here are is a tag mismatch but it would work.
Code:
public cmdSpawn(id)
{
new Float:curOrigin[3]
entity_get_vector(id, EV_VEC_origin, curOrigin)
client_print(id, print_chat, "[AMXX] You got 5 seconds to move")
set_task(5.0, "createEnt", 0, curOrigin, 3)
return PLUGIN_HANDLED
}
public createEnt(Float:origin[3])
{
//some entity creation code, doesnt matter right now
//Just declare the origin to make a good example ^^
entity_set_origin(ent, origin)
//Done :)
return PLUGIN_HANDLED
}