HyperGaming Network

Other Forums => Scrapyard => Topic started by: Riffy on 04-04-2009

Title: VGUI screens
Post by: Riffy on 04-04-2009
Could there be anyway to make a VGUI screen, that will (When the user posts his or her ideas) submit to the admin?

like a /request type thing, for addons and stuff like that
Title: Re: VGUI screens
Post by: Silver Knight on 04-04-2009
Quote from: Riffy Could there be anyway to make a VGUI screen, that will (When the user posts his or her ideas) submit to the admin?

like a /request type thing, for addons and stuff like that

Not quite sure what you mean there Riffy, you mean like, a admin request command? or what?
Title: Re: VGUI screens
Post by: Riffy on 04-04-2009
Well no,I want a derma panel that pops up, when /request is typed in chat. and you type the request and hit OK or something like it; then somehow, by the magical ways of Lua. the server owner gets it in a .txt



Ehe
Title: Re: VGUI screens
Post by: Riffy on 06-04-2009
Okay no, Now it just needs to be a screen, when !request is typed; it comes up, the button on it Request when that is pressed, another screen comes up, that you can type on.  Doesnt need to be functional, here is my failscript

function Requestpanal()

end

function playerRequest( ply, saywhat )
     
if string.find(saywhat, "!request") == 1 then // check if the player says /request in chat
RunConsoleCommand("requestmenu")
 
 
hook.Add ( "PlayerSay", "playerRequest", playerRequest )

end

local DermaPanel = vgui.Create( "DFrame" )
DermaPanel:SetPos( 50,50 )
DermaPanel:SetSize( 200, 250 )
DermaPanel:SetTitle( "Request" )
DermaPanel:SetVisible( true )
DermaPanel:SetDraggable( true )
DermaPanel:ShowCloseButton( true )
DermaPanel:MakePopup()

end

local DermaButton = vgui.Create( "DButton" )
DermaButton:SetParent(DermaPanel) // Set parent to our "DermaPanel"
DermaButton:SetText( "Request" )
DermaButton:SetPos( 25, 50 )
DermaButton:SetSize( 150, 50 )
DermaButton.DoClick = function ()
 

concommand.Add("Request", requestmenu)

end

end
Title: Re: VGUI screens
Post by: mrd on 04-06-2009
What the fuck?...Just use a VGUI animation