[CODE]
local link = "217.196.35.12/asx/radioveronica.asx"
local bool = true
local function Radio(ply, msg)
local emsg = string.lower(msg)
local tmsg = string.Explode(" ", msg)
if (emsg == "!radio") or (tmsg[1] == "!volume") then
LocalPlayer().OldPanel = LocalPlayer().OldPanel or NULL
local PANEL = LocalPlayer().OldPanel
if (emsg == "!radio") then
if PANEL:IsValid() && !bool then
PANEL:Remove()
bool = true
else
new_panel = vgui.Create("HTML")
new_panel:SetPos(120,120)
new_panel:SetSize(420,85)
new_panel:SetHTML([[<object id="RAOCXPlayer" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" height="27" width="223">
<param name="controls" value="StatusBar">
<param name="nolabels" value="true">
<param name="autostart" value="true">
<param name="SRC" value="]]..link..[[">
<param name="console" value="player1">
<embed type="audio/x-pn-realaudio-plugin" src="]]..link..[[" controls="StatusBar" height=27 width=223 nolabels=TRUE autostart=TRUE console="player1"></embed>
</object>]])
LocalPlayer().OldPanel = new_panel
bool = false
end
end
end
end
hook.Add("OnPlayerChat","Radio",Radio)
[/CODE]
This is my code right now and the problem is that it creates the panel when i say !radio, but within it it says "Missing plugin". I think this used to work? Or where do i get this "missing plugin" from
Figured out my problem, had to restart for the plugin to take effect and embedded code was wrong. Thanks for rating me dumb rather then taking 5 seconds to point me in the right direction.
Sorry, you need to Log In to post a reply to this thread.