for(new i = 0;i < MAX_PLAYERS; i++){ if(IsPlayerConnected(i) && Faction[playerid] == X) { SetPlayerCheckpoint(i, x, y, z, size); return 1; }}