Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- To install on a Garry's Mod Dedicated Server navigate to garrysmod\lua\autorun\ and make a new file, it can be called anything you
- -- want, but must have the extension ".Lua", once you have created this file paste this script into the file and save it.
- -- To edit this file for different command prefixes change the ! on line 13 to whichever prefix your commands use, for multiple
- -- prefixes you can delete "--" on line 15 and 16 and change "Yourprefixhere" (on line 15)to whatever prefix your command system uses.
- hook.Add( "PlayerSay", "HIDECOM", function( ply, text, public )
- function string.starts(String,Start)
- return string.sub(String,1,string.len(Start))==Start
- end
- text = string.lower( text )
- if string.starts(text, "!") then
- return ""
- -- elseif string.starts(text, "Yourprefixhere") then
- -- return ""
- end
- end )
Advertisement
Add Comment
Please, Sign In to add comment