how do i add lobby sound or a sound when player joins.

Started by ZeX, Oct 05, 2022, 08:10 AM

Previous topic - Next topic

ZeX

Iam working on a vcmp server and want to add a custom lobby sound, or a custom sound when a player joins the server, but i dont know how to. if anyone can help me, i would appreciate that.

Sebastian

I'm a bit in a rush, but here is a list of functions you can use in vcmp:
http://wiki.adtec.ovh/wiki/Scripting/Squirrel/Functions
Search for "sound" and you will see the related ones.

So, you can use such a function in an event like onPlayerJoin, or onPlayerRequestClass (for when switching skins).
http://wiki.adtec.ovh/wiki/Scripting/Squirrel/Events

You can try the Blank Script to start from: https://forum.vc-mp.org/?topic=33.0

Wish you good luck!
If you manage to do it, just let us know.
Otherwise, ask your questions/where you have troubles, and maybe more will join the topic.