for(new i, x = GetMaxPlayers(); i < x; i++) { if(!IsPlayerConnected(i)) continue; SetPlayerPos(i, X , Y ,Z); // solo cambiar X , Y ,Z por la posision }