I'm trying to add a command called !dmg that prints the damage logs to the console... It won't work.
function DamageLogs( ply, text, _ )
if ( string.sub( string.lower( text ), 1, 7 ) == "!dmg" ) then
ply:ConCommand( "ttt_print_damagelog" )
return false
end
end
hook.Add( "PlayerSay", "Damagelogs )
Any ideas? :3