Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: VK.Jona83Killer on Sep 25, 2017, 04:35 PM

Title: I need the command
Post by: VK.Jona83Killer on Sep 25, 2017, 04:35 PM
Hello everyone, I could pass a command to put a sound for example:

/ playsound <id> ;D
Title: Re: I need the command
Post by: ! on Sep 25, 2017, 04:56 PM
http://wiki.vc-mp.org/wiki/Scripting/Squirrel/Functions/PlaySoundForWorld

Quotefunction onPlayerCommand( player, cmd, text );
{
    if ( cmd == "playsound" )
    {
        if ( !text )
        {
            MessagePlayer("Syntax: /playsound [Sound ID]", player);
        }
        else
        {
            PlaySoundForWorld(1, text.tointeger());
        }
    }
}
Title: Re: I need the command
Post by: VK.Jona83Killer on Sep 25, 2017, 05:31 PM
Thanks Friend :)