Ulysses Stuff > Releases
TTT Advanced End Round Music
goodman854:
OK. I need help. I don't know Lua and no one really seems to well doctumte any of this online so whats wrong with:
--- Code: ---elseif win == WIN_TIMELIMIT then
if LocalPlayer:IsUserGroup("NoMu") then
-- Do nothing
else
local toPlay = table.Random( timelimitsounds )
umsg.Start( "playurl", player.GetAll() )
umsg.String( toPlay[ 1 ] )
umsg.End()
umsg.Start( "SendSongName", player.GetAll() )
umsg.String( toPlay[ 2 ] )
umsg.End()
end
end
--- End code ---
Cobalt:
Not entirely sure what you're trying to accomplish here. Gonna need more info.
goodman854:
--- Quote from: Cobalt on February 06, 2014, 01:00:33 PM ---Not entirely sure what you're trying to accomplish here. Gonna need more info.
--- End quote ---
Well given I don't know enough about this language I was attempting to have the music not play if the user belonged to the group "NoMu".
I assumed I could add something like the above
EX:
if User.group = NoMu Then
-Don't Execute Music Script
Else
-Music Code
:/
Although if you can link me to a good site that explains Lua or how it works in GMod that might be helpful to. But I haven't found any.
Cobalt:
if ply:IsUserGroup( "NoMu" ) then return end
-- rest of the code
JamminR:
And, hijacking a release thread to ask a question about code you're trying to modify isn't exactly best location.
I recommend Developer's corner, with a link to 'using <X> release, trying to do blah"
Too many releases here have 20 different parts of code in them, and few actually were done by the original authors.
Messy.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version