Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: ForOver on Jun 03, 2018, 02:19 PM

Title: VCMP 0.3 selecting skin song
Post by: ForOver on Jun 03, 2018, 02:19 PM
guys anyone can help me?
do u remember guys when vcmp version has 0.3, when u selecting skin, u will hear a sound when u selecting skin
i want this so can u guys help me?
Title: Re: VCMP 0.3 selecting skin song
Post by: kennedyarz on Jun 03, 2018, 04:33 PM
    function onPlayerRequestClass( player, pclass, pteam, pskin )
    {
        PlaySound( player.UniqueWorld , 50002 , player.Pos );
        return 1;
    }
Title: Re: VCMP 0.3 selecting skin song
Post by: ForOver on Jun 03, 2018, 07:17 PM
Quote from: kennedyarz on Jun 03, 2018, 04:33 PM    function onPlayerRequestClass( player, pclass, pteam, pskin )
    {
        PlaySound( player.UniqueWorld , 50002 , player.Pos );
        return 1;
    }
its not works
Title: Re: VCMP 0.3 selecting skin song
Post by: Sebastian on Jun 03, 2018, 07:34 PM
Quote from: ForOver on Jun 03, 2018, 07:17 PMits not works

Because the Sound ID he used is a custome one, added by himself.
You should just change the 50002 with a default one. You can find a list of those sounds >here< (http://wiki.vc-mp.org/wiki/Sounds)
The one used in 0.3 was id 356, if I'm not wrong. You should give it a try.