I have 2 lua files, group.lua and donate.lua, both in my autorun server. Lets say I lua_openscript group.lua and lua_openscript donate.lua right after, only !donate works because it was the last one I ran, is there a way to make it so both of them work at the same time?
Donate.lua
function donateCommand( pl, text, teamonly )
if (text == "!donate") then
pl:SendLua([[gui.OpenURL("http://sites.google.com/site/bigmacssw/donate")]]) -- Change ADDRESS to your chosen page.
end
end
hook.Add( "PlayerSay", "Chat", donateCommand )
Group.lua
function groupCommand( pl, text, teamonly )
if (text == "!group") then
pl:SendLua([[gui.OpenURL("http://steamcommunity.com/groups/sandboxwars")]]) -- Change ADDRESS to your chosen page.
end
end
hook.Add( "PlayerSay", "Chat", groupCommand )