Karma edits (karma.lua)

I added this to Karma.lua to avoid me getting karma banned during server events (And as a kind of “owner gift” to myself. My karma never drops below 1000 anyway.)

It doesnt seem to work, any idea why? It is in its own function…

“1337” is just for testing. It will change from that.

[lua]
function KarmaAdmins(ply)
if ply:SteamID() == “STEAM_0:0:9310913” then – Charrax
ply:SetLiveKarma( 1337 )
end
end
[/lua]

Nothing is calling that function?

What you can do however is prevent yourself from getting karma penalties by changing karma.lua #65-67 to the following:

[lua]function KARMA.GivePenalty(ply, penalty)
if ply:SteamID() == “STEAM_0:0:9310913” then return end
ply:SetLiveKarma(math.max(ply:GetLiveKarma() - penalty, 0))
end[/lua]