I was looking into the coding of how if your an admin on a server, you can choose if you want to vote to be that job, or not. I was wondering if that menu could possibly be added to the shipment or gun menu, to spawn single guns, or shipments.
This is the line of coding that I am referring to, I don't know if it's possible to add that, or not.
[QUOTE] icon.DoClick = function()
local function DoChatCommand(frame)
if special then
local menu = DermaMenu()
menu:AddOption("Vote", function() LocalPlayer():ConCommand("say "..command) frame:Close() end)
menu:AddOption("Do not vote", function() LocalPlayer():ConCommand("say " .. specialcommand) frame:Close() end)
menu:Open()
else
LocalPlayer():ConCommand("say " .. command)
frame:Close()
end
end
[/QUOTE]
I was looking to change it to something like this, but without the requirement of admin.
[QUOTE] icon.DoClick = function()
local function DoChatCommand(frame)
if special then
local menu = DermaMenu()
menu:AddOption("Shipment", function() LocalPlayer():ConCommand("say "..command) frame:Close() end)
menu:AddOption("Single Gun", function() LocalPlayer():ConCommand("say " .. specialcommand) frame:Close() end)
menu:Open()
else
LocalPlayer():ConCommand("say " .. command)
frame:Close()
end
end
[/QUOTE]
*REMOVED* I fail'd reading...
Sorry, you need to Log In to post a reply to this thread.