Ahh, ok. So then, with my current code being this.
function donateCommand( pl, text, teamonly )
if (text == "!donate") then
pl:SendLua([[gui.OpenURL(http://cur.lv/mifq)]]) -- Change ADDRESS to your chosen page.
for k, v in pairs(player.GetAll()) do v:ChatPrint( "Player " .. pl:Nick() .. " has considered donating $1.00 to the cause!" )
end
end
end
hook.Add( "PlayerSay", "Chat", donateCommand )
I would instead want this.
function donateCommand( pl, text, teamonly )
if (text == "!donate") then
pl:SendLua([[gui.OpenURL("http://myurl.com/donate")]]) -- Change ADDRESS to your chosen page.
for k, v in pairs(player.GetAll()) do v:ChatPrint( "Player " .. pl:Nick() .. " has donated to the server via !donate" )
end
end
end
hook.Add( "PlayerSay", "Chat", donateCommand
)
I notice the bottom *correct* one has both of these "", which I'm guessing makes the difference?