Ulysses
General => Developers Corner => Topic started by: Cyrk on August 28, 2008, 03:53:05 PM
-
Hey there... I'm a new scripter so you have to remember that lol ;p, But on your admin mod.. I need to know how you looped through every player and put a button for each player in the derma panel. I also would like to know how you make HUD health bar and Ammo and shield bar, not text. Thanks! =D
-
for k, v in pairs(player.GetAll()) do
combobox:AddItem(v:Nick())
end
Where combobox is the vgui element that you created with:
combobox = vgui.Create( "DComboBox" )
That's for listing all players on a vgui.
For more info go HERE (http://wiki.garrysmod.com/wiki/?title=Guide_to_Derma)