ULX

Author Topic: Custom command to execute damage logs?  (Read 3495 times)

0 Members and 1 Guest are viewing this topic.

Twistedwheelbarrow

  • Guest
Custom command to execute damage logs?
« on: August 16, 2013, 10:32:45 AM »
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

An Error Has Occurred!

array_keys(): Argument #1 ($array) must be of type array, null given