• Help with Derma Combo boxes?
    0 replies, posted
I have three combo boxes which selects a weapon, when the player hits done I need the weapons to spawn in for the player. The weapon1/2/3 are the combo boxes with which the player selects the weapons from. I'm not sure if I'm doing this correctly though. [CODE] button.DoClick = function() base:Close() if weapon1:GetSelectedItems() == 1 then ply:Give( "weapon_stunstick" ) elseif weapon1:GetSelectedItems() == 2 then ply:Give( "weapon_pistol" ) elseif weapon1:GetSelectedItems() == 3 then ply:Give( "weapon_357" ) end if weapon2:GetSelectedItems() == 1 then ply:Give( "weapon_smg1" ) elseif weapon2:GetSelectedItems() == 2 then ply:Give( "weapon_ar2" ) elseif weapon2:GetSelectedItems() == 3 then ply:Give( "weapon_shotgun" ) end if weapon3:GetSelectedItems() == 1 then ply:Give( "weapon_crossbow" ) elseif weapon3:GetSelectedItems() == 2 then ply:Give( "weapon_rpg" ) end end [/CODE]
Sorry, you need to Log In to post a reply to this thread.