Last active
September 20, 2015 08:42
-
-
Save SwadicalRag/109ab07e46e8a1c58c91 to your computer and use it in GitHub Desktop.
Lao "G" in Lua
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hook.Add("Message","Lao G",function(_,__,msg) | |
if(msg:match("(%a*[Gg]%a*)")) then | |
for g in msg:gmatch("(%a*[Gg]%a*)") do | |
local g2,n = g:gsub("([Gg])","'G'") | |
print(g2) | |
end | |
print("There's the 'G'!") | |
end | |
end) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment