Jump to content

Music Script - What is wrong?


GerardWay

Recommended Posts

I know for a fact that i've missed something out here, but what is it?

function adminMusic() 
local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) 
if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then  
adminMusic = playSound("joinsound.mp3") 
end 
addCommandHandler ("ps115", adminMusic) 
  
function stopMySound() 
    stopSound( adminMusic ) 
end 
addCommandHandler ( "ss115", stopMySound )  

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...