marty000123 Posted October 14, 2014 Share Posted October 14, 2014 Hai I'm looking for a script which makes players able to request a song with ''/song '' If a player only does /song, without the name after it, the words ''Enter a song!'' must appear in their screen. (Red letters) The players in the ACL group called ''Staff'' will get the song request. Output (for people in ACL group ''Staff''): '' A Song has been requested by . Requested Song: . '' (Blue letters) Thanks in advance! Marty Link to comment
ReSe Posted October 14, 2014 Share Posted October 14, 2014 It's pretty simple but I don't think anyone will do it for free. It needs good way to display requests for staff and a way to remove then from list. Best way is separate dxDraw window. Since im low on cash I would make it for few $$ Text me on skype if you're interested. skype: patryk_gs Link to comment
Moderators Citizen Posted October 15, 2014 Moderators Share Posted October 15, 2014 It's pretty simple but I don't think anyone will do it for free. It needs good way to display requests for staff and a way to remove then from list. Best way is separate dxDraw window. Since im low on cash I would make it for few $$ Text me on skype if you're interested. skype: patryk_gs Lol what a ______ ! You wanna be paid for doing such simple command ?! Shame on you ! function songRequest(thePlayer, cmd, ...) local songName = table.concat( {...}, " " ) -- This will handle song names which contains spaces if not songName or songName == "" then outputChatBox("USAGE: /song ", thePlayer, 200, 0, 0) return end -- here we have have song name local requester = getPlayerName( thePlayer ) for k, player in ipairs( getElementsByType( "player" ) ) do local accName = getAccountName( getPlayerAccount( thePlayer ) ) if isObjectInACLGroup( "user."..accName, aclGetGroup( "Staff" ) ) then outputChatBox("A song has been requested by "..requester..". Requested Song: "..songName..".", player, 0, 200, 0) end end end addCommandHandler("song", songRequest, false, false) I didn't test it but I'm pretty sure it should work as requested. (It also handle song names with spaces in them) Regards, Citizen Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now