CrowLey Posted October 9, 2020 Posted October 9, 2020 Can you tell me if there is a way to make a script that when I log into my server I write a command that it plays music for everyone?
Scripting Moderators xLive Posted October 9, 2020 Scripting Moderators Posted October 9, 2020 (edited) Yes it's pretty easy, Add a command using addCommandHandler function then you need to add an if condition to check if it's you who used the command i suggest to use the account name you can get it using getAccountName then trigger a client-side event to everyone using triggerClientEvent (because you can't play sounds from the server-side) and use playSound function Edited October 9, 2020 by xLive
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