Ok as some of you might know I’m having alot of trouble with my damage logs! I have no clue whats wrong with this one.
local ply = LocalPlayer() function damage(ply, inflictor, attacker) if ( ply:SteamID() == attacker:SteamID() ) then suicide = ply:Name() .. " Killed His self! " else killed = ply:Name(), " Was killed by " .. attacker:Name() .. "." end function damagelog(ply) if ply:GetNWString("usergroup") == "superadmin" then RunConsoleCommand( "say", killed ) end end end concommand.Add("print_dlog", damagelog) hook.Add( "PlayerDeath", "DamageLog", damage )
Ingame Error I get:
Please say whats wrong, Also if you know how to make damage logs please add me on skype: PabloSky11400
I will be willing to pay for help but you please deliver the help first.
Again. Post all what is wrong please