Hello, I got a quick question. How would you go about igniting a player from a list. I’m trying to make a simple admin mod with commands like Ignite Slay kick ban.
This is what I have so far.
local list = vgui.Create( “DComboBox” )
list:SetSize( 100, 200)
list:SetPos( 15, 100 )
list:SetMultiple( false )
for k, v in pairs(player.GetAll() ) do
list:AddItem( v:Nick() )
– Ignite Command
local ignite = vgui.Create(“DButton”)
ignite:SetSize( 150, 25 )
ignite:SetPos( 10, 100 )
ignite:SetParent( commandspanel )
ignite:DoClick = function( ) – Line 153
for k, v in pairs(palyer.GetAll() ) do
if v:list:GetSelectedItems():GetValue() then – If the player is selected from the DComboBox then Ignite them
v:Ignite( 1, 50 )
– This is the Error Im getting [RunString:153] function arguments expected near ‘=’
I got GetSelectedItems():GetValue() from the wiki so I think thats how you get the player. Any help would be appreciated.