Die ganzen Zahlen (auch Ganzzahlen, lat. numeri integri) sind eine Erweiterung der natürlichen Zahlen.

This commit is contained in:
Luke
2021-04-20 18:12:04 +00:00
parent 9d567cca26
commit 516868308f

View File

@@ -13,30 +13,17 @@ setPlayerCount = (factionId, value) => {
} }
function getFactionNameByFactionId(factionId) { function getFactionNameByFactionId(factionId) {
var factionName = ""; switch (parseInt(factionId)) {
case 1: return "LSPD";
switch (factionId) { case 2: return "LSED";
case 1: case 3: return "FIB";
factionName = "LSPD"; break; case 4: return "Trucker";
case 2: case 5: return "Vagos";
factionName = "LSED"; break; case 7: return "Grove Street";
case 3: case 8: return "Ballas";
factionName = "FIB"; break; case 9: return "Weazle News";
case 4: default: return "Zivilisten";
factionName = "Trucker"; break;
case 5:
factionName = "Vagos"; break;
case 7:
factionName = "Grove Street"; break;
case 8:
factionName = "Ballas"; break;
case 9:
factionName = "Weazle News"; break;
default:
factionName = "Zivilisten"; break;
} }
return factionName;
} }
function addPlayerEntry(userId, userName, factionId, userPing) { function addPlayerEntry(userId, userName, factionId, userPing) {