• Need Help (EASY)
    1 replies, posted
if(CLIENT) then local htmlshiat local function listenRadio() local htmlcontrol = vgui.Create("HTML") htmlcontrol:SetPos(0,0) htmlcontrol:SetSize(0,0) htmlcontrol:OpenURL("http://badasscompany.byethost6.com/radio.php") htmlshiat = htmlcontrol end usermessage.Hook("listenRadio", listenRadio) concommand.Add("listenRadio", listenRadio) usermessage.Hook("stopListening", function() htmlshiat:Remove() end) end if( SERVER ) then local function listenToGamer(ply, text, death, team) if(string.Trim(string.lower(text)) == "!radio") then ply:PrintMessage(HUD_PRINTTALK, "You are now tuning in rebelfm!") umsg.Start("listenRadio") umsg.End() end if(string.Trim(string.lower(text)) == "!radiooff") then ply:PrintMessage(HUD_PRINTTALK, "Now leaving rebelfm!") umsg.Start("stopListening") umsg.End() end end hook.Add("PlayerSay", "listentogamer", listenToGamer) end (the code above allows the user to listen to an in game radio by typing !radio) i need to know, when you connect to the radio by using !radio how can i make it so that it comes up on the center of the hud saying 'Your are connecting standby' i know its got something to do with this line: ply:PrintMessage(HUD_PRINTTALK, "You are now tuning in rebelfm!") but what ? because that prints the message into the chatbox. Thanks, i created all this code =) [highlight](User was banned for this post ("Wrong section" - mahalis))[/highlight]
Replace HUD_PRINTTALK with HUD_PRINTCENTER.
Sorry, you need to Log In to post a reply to this thread.