Hello again. I'm probably getting quite annoying, but I really want some support on this "issue". And since I've always been met with friendly answers by the people here on Ulysses Forums, I will continue to ask for support here.
I have this function to print a so-called "damagelog" on the gamemode Trouble in Terrorist Town, this function prints it to a client's console if their requirements are met. As of right now, I've managed to make it work for people that have IsAdmin or IsSuperAdmin true (I might not have needed that "IsSuperAdmin" part, but I wasn't sure). Although, I also want to make other users able to get the damagelog printed to their console, even though they're not admins. Preferably by their Steam ID. I have attempted with this:
local Users = {
["STEAM_0:1:12345678"], --Test Steam ID
}
function StaffDamagelog (ply)
local user = Users[ply:SteamID()]
for k, v in ipairs (player.GetAll()) do
if v:IsAdmin() then
v:ConCommand ("ttt_print_damagelog")
elseif v:IsSuperAdmin() then
v:ConCommand ("ttt_print_damagelog")
elseif user then
v:ConCommand ("ttt_print_damagelog")
end
end
end
It just kept printing out the error, expecting '=' near the ','. I understood what this meant, although, what would I add after the '='.
My current function that works totally fine for admins and superadmins is just this:
function StaffDamagelog (ply)
for k, v in ipairs (player.GetAll()) do
if v:IsAdmin() then
v:ConCommand ("ttt_print_damagelog")
elseif v:IsSuperAdmin() then
v:ConCommand ("ttt_print_damagelog")
end
end
end
Any help with this is appreciated. I don't mind getting told that checking for IsSuperAdmin is stupid when I already have it for IsAdmin.

Thanks in advance!