Vice City: Multiplayer

Server Development => Scripting and Server Management => Script and Content Requests => Topic started by: ZeX on Oct 05, 2022, 08:10 AM

Title: how do i add lobby sound or a sound when player joins.
Post by: ZeX on Oct 05, 2022, 08:10 AM
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.
Title: Re: how do i add lobby sound or a sound when player joins.
Post by: Sebastian on Oct 06, 2022, 05:58 PM
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.