Code:
public cmdSpawn(id)
{
new Float:curOrigin[3]
entity_get_vector(id, EV_VEC_origin, curOrigin)
new data[3]
FVecIVec(curOrigin, data)
client_print(id, print_chat, "[AMXX] You got 5 seconds to move")
set_task(5.0, "createEnt", 0, data, 3)
return PLUGIN_HANDLED
}
public createEnt(data[])
{
new Float:origin[3]
origin[0] = float(data[0])
origin[1] = float(data[1])
origin[2] = float(data[2])
//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
}
that should work.