Hey guys, so as you can see on the title i'm trying to detect when a player puts a console command, I can detect when the player puts a say command like this:
[CODE]
hook.Add( "PlayerSay", "PlayerSayExample", function( ply, text, team )
if ( string.sub( text, 1, 4 ) == "/all" ) then
-- do something here
end
end )[/CODE]
But, what's the way to detect a console command?
Concommand.Add
Sorry, you need to Log In to post a reply to this thread.