TheLord45 / amxpanel

Emulator for AMX panels
GNU General Public License v3.0
13 stars 1 forks source link

Command: ^BSO #30

Closed TheLord45 closed 5 years ago

TheLord45 commented 5 years ago

Set the sound played when a button is pressed.

If the sound name is blank the sound is then cleared. If the sound name is not matched, the button sound is not changed.

Syntax: "'^BSO-<vt addr range>,<button states range>,<sound name>'"

Variable: variable text address range = 1 - 4000. button states range = 1 - 256 for multi-state buttons (0 = All states, for General buttons 1 = Off state and 2 = On state). sound name = (blank - sound cleared, not matched - button sound not changed).

Example: SEND_COMMAND Panel,"'^BSO-500,1&2,music.wav'" Assigns the sound 'music.wav' to the button Off/On states.