- Initiateur de la discussion
F
Fiasco
Bambi
- Messages
- 46
- Score réaction
- 5
- Points
- 40
A mettre dans /garrysmod/lua/autorun
HTML:
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 imgurLink = "" -- Quand vous publiez l'image sur imgur faites un clic droit sur le logo et copiez l'adresse de l'image puis insérez-la ci-dessus. local htmlContent = [[ <!DOCTYPE html> <html> <head> <style> body { margin: 0; padding: 0; position: absolute; top: 0; right: 0; width: 500px; height: 500px; background-color: transparent; } img { width: 100%; height: 100%; } </style> </head> <body> <img src="]] .. imgurLink .. [[" alt="Image"> </body> </html> ]] local imgPanel = vgui.Create("HTML") imgPanel:SetSize(500, 500) imgPanel:SetPos(ScrW() - 500, 0) imgPanel:SetHTML(htmlContent)
end)
end
Dernière édition: