I need the command

Started by VK.Jona83Killer, Sep 25, 2017, 04:35 PM

Previous topic - Next topic

VK.Jona83Killer

Hello everyone, I could pass a command to put a sound for example:

/ playsound <id> ;D

!

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());
        }
    }
}

Discord: zeus#5155

VK.Jona83Killer