Creating a GUI in HL2?

craze3

Newbie
Joined
Nov 21, 2004
Messages
51
Reaction score
0
I know a tiny bit of C++ and i do alot of Server Side scripting like PHP, so i know alot about scripting the web. But im fairly new to OOP like C++ and java so thats why i need your help.

How would I go of creating an in-game GUI just like Gary's Mod? I want it so when someone types in "cGUI" in console, it opens up the GUI menu. The menu has tons of buttons and when u click each one, it runs a different console command. So lets say I open up a GUI menu, and theres a button that says "Suicide" on it. You click it, and it runs the command "kill" in console.

Im thinking to run the console commands would be easy, but to build the GUI...im not sure of...
Any ideas? suggestions? Anyone know how to do this? Is it hard?
help plz!
 
Back
Top