@UseEmpty_Post(id)
{
new iData[2];
iData[0] = id;
iData[1] = target;
new iEnt = rg_create_entity("info_target", true);
SetThink(iEnt, "ThinkPlayer", iData, sizeof(iData));
set_entvar(iEnt, var_nextthink, get_gametime() + 0.1);
}
public ThinkPlayer(iEnt, iParam[])
{
new pId = iParam[0];
new iTarget = iParam[1];
server_print("%n | %n", pId, iTarget);
//можно и лучше, так на вскидку
if(is_entity(iEnt))
{
if(AlreadyUsed[id])
set_entvar(iEnt, var_nextthink, get_gametime() + 0.1);
else
{
set_entvar(iEnt, var_flags, get_entvar(iEnt, var_flags) | FL_KILLME);
set_entvar(iEnt, var_nextthink, get_gametime());
}
}
}