Scoreboard fix for console check and typo
This commit is contained in:
@@ -34,7 +34,8 @@ addEventHandler("OnDrawnHUD", function (event) {
|
||||
|
||||
let clients = getClients();
|
||||
for(let i in clients) {
|
||||
let name = element.name;
|
||||
if(!clients[i].console) {
|
||||
let name = clients[i].name;
|
||||
let colour = COLOUR_WHITE;
|
||||
let paused = false;
|
||||
let ping = "-1";
|
||||
@@ -51,8 +52,8 @@ addEventHandler("OnDrawnHUD", function (event) {
|
||||
colour = playerColours[clients[i].name];
|
||||
}
|
||||
|
||||
if(typeof playerPing[element.name] != "undefined") {
|
||||
ping = toString(playerPing[element.name]);
|
||||
if(typeof playerPing[clients[i].name] != "undefined") {
|
||||
ping = toString(playerPing[clients[i].name]);
|
||||
}
|
||||
|
||||
// Player ID
|
||||
@@ -78,4 +79,5 @@ addEventHandler("OnDrawnHUD", function (event) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user