• Popup Error "Not ADMIN"
    3 replies, posted
Ok so i want to make it so if u press an admin command that i have already coded and your NOT admin i need a popup derma thing saying "your not admin" <<< all i need is that popup thing thanks.
[url]http://wiki.garrysmod.com/?title=Guide_to_Derma[/url]
[QUOTE=Cubar;23388310][url]http://wiki.garrysmod.com/?title=Guide_to_Derma[/url][/QUOTE] iv looked at that but.. its all buttons and drop down menus no just text ...
[CODE] if !ply:IsAdmin() then local NotAdminPanel = vgui.Create("DFrame") NotAdminPanel:SetPos( 50, 50) NotAdminPanel:SetSize(150, 50) NotAdminPanel:ShowCloseButton( true ) NotAdminPanel:SetVisible( true ) NotAdminPanel:MakePopup() local ErrorMessage = vgui.Create( "Label", NotAdminPanel ) ErrorMessage:SetText( "Your not admin" ) ErrorMessage:SizeToContents() ErrorMessage:SetPos( 50 , 50 ) end [/CODE] I hope this helps, if not feel free to post.
Sorry, you need to Log In to post a reply to this thread.