So currently I have a working script that opens our donation page in the steam overlay by typing !donate
Here is the script:
function donateCommand( pl, text, public )
if (text == "!donate") then
pl:SendLua([[gui.OpenURL("http://www.test.com")]])
end
end
hook.Add( "PlayerSay", "Chat", donateCommand )
If I were to have two seperate scripts with two different commands, it breaks the first one. So for example if I add a seperate script to have !joingroup open our steam community page, it will break the !donate command and the donate command will not function, just the joingroup one. Yes, I am changing the function and hook name. So joingroup is function joingroupCommand and the hook is also joingroupCommand. Is there anything else I'm missing here? I'm not that great with this stuff sometimes