I want certain text messages to now show up in chat. For example I have this:
-- Displays donation page --
local function OpenDonationPage( ply, text, team )
if text == "!donate" or text == "!donation" or text == "/donate" or text == "/donation"
ply:SendLua( [[ gui.OpenURL( "donation page" ) ]] )
else
end
end
hook.Add ( "PlayerSay", "OpenDonationPage", OpenDonationPage )
And I want "!donate" to not shot up in chat when you type it.
return ""
[code]local function OpenDonationPage( ply, text, team )
if text == "!donate" or text == "!donation" or text == "/donate" or text == "/donation"
return false
ply:SendLua( [[ gui.OpenURL( "donation page" ) ]] )
else
end
end
hook.Add ( "PlayerSay", "OpenDonationPage", OpenDonationPage )[/code]
[QUOTE=Invule;50276044]return ""[/QUOTE]
thank you that worked
Sorry, you need to Log In to post a reply to this thread.