• Problom with my command
    3 replies, posted
hook.Add ( "PlayerSay", "openscreengrab", function ( ply, text, public ) if ( string.lower( text ) == "!screengrab") then ply:ConCommand ( "screengrab" ) end end ) So its suppose to do this !screengrab then runs a console mannd in there console to open the screen grab menu and to open hat u type in console screengrab but for some reason my hook.add code doesnt work and i dont get a lue error
Question: Why? Why should a player do !screengrab in the chat instead of just in the console? if you do it in the chat every player can see it (or in darkrp everyone around you) so everyone knows youre now gonna run screengrab and take a look at someones screen....
its becuse i created a hook for my logs so when they run that it logs i dont want them to know there is a console
almost every gmod player knows there is a console..? And who should use the command besides admins? No user can use it (shouldnt be able to use it) and even if they do, you cant really punish them for trying out.
Sorry, you need to Log In to post a reply to this thread.