Pivity

Admin Popup custom

Last read Never
#1

Hello, I'm trying to change my Admin Popup by "inspiring me" the idea of ​​TrustRP that really simplifies the lives of its moderators. So I would like to make the administrator click on the button (example: test) this one teleports the Admin and the players in a certain zone. predefined in the code.

After I want to make sure that by clicking on a button "Refund a player", it opens a menu with all the names of players and the amount to be refunded.

Thank you very much: p

(Code : ``` local cbu = vgui.Create("DButton",frm) cbu:SetPos(215,20 * 2) cbu:SetSize(83,18) cbu:SetText(" Test") cbu:SetColor(Color(248, 142, 85)) cbu:SetContentAlignment(4) cbu.should_unjail = false cbu.DoClick = function() local toexec = [["ulx return ^"]] LocalPlayer():ConCommand(toexec) if cfg.debug then print(toexec) end end


#2

you already posted this in jobs, wait for someone to apply (unlikely due to your rep)

Agree x 1
Users viewing this thread
Nobody