- Initiateur de la discussion
WALT3R
Bambi
- Messages
- 50
- Score réaction
- 1
- Points
- 35
Bonjour j'ai reussi a mettre un logo en haut a gauche de l'ecran grace au code ci dessous mais j'aimerai savoir comment je pourrais le changer de place
if SERVER then
util.AddNetworkString("server_logo")
hook.Add("PlayerInitialSpawn", "server_logo", function(ply)
if not ply:IsValid() then return end
net.Start("server_logo")
net.Send(ply)
end)
else
net.Receive("server_logo", function()
local frame = vgui.Create("DFrame")
frame:SetSize(250, 103)
frame:SetPos(ScrW() - frame:GetWide() - 15, 15)
frame:SetTitle("")
frame:ShowCloseButton(false)
frame.Paint = function(self, w, h)
end
local html = vgui.Create("HTML", frame)
html:SetSize(frame:GetWide(), frame:GetTall())
html:SetPos(0, 0)
html:OpenURL(" ")
end)
end
merci de vos reponse
if SERVER then
util.AddNetworkString("server_logo")
hook.Add("PlayerInitialSpawn", "server_logo", function(ply)
if not ply:IsValid() then return end
net.Start("server_logo")
net.Send(ply)
end)
else
net.Receive("server_logo", function()
local frame = vgui.Create("DFrame")
frame:SetSize(250, 103)
frame:SetPos(ScrW() - frame:GetWide() - 15, 15)
frame:SetTitle("")
frame:ShowCloseButton(false)
frame.Paint = function(self, w, h)
end
local html = vgui.Create("HTML", frame)
html:SetSize(frame:GetWide(), frame:GetTall())
html:SetPos(0, 0)
html:OpenURL("
http://imgur.com/VauPeiD
end)
end
merci de vos reponse