How can I teleport a player to a random position in the map?
Dosnt matter if its on a wall or something because I can teleport him until this stock turns false
PHP Code:
stock is_player_stuck(id)
{
static Float:originF[3];
pev(id, pev_origin, originF);
engfunc(EngFunc_TraceHull, originF, originF, 0, (pev(id, pev_flags) & FL_DUCKING) ? HULL_HEAD : HULL_HUMAN, id, 0);
if (get_tr2(0, TR_StartSolid) || get_tr2(0, TR_AllSolid) || !get_tr2(0, TR_InOpen))
return true;
return false;
}