Page 1 of 1

In Game Music

Posted: 22 Sep 2018, 21:41
by Mark
Its way to loud pls tell me how to adjust and no not on my client as that does not work also tried stopsound blah blah

Re: In Game Music

Posted: 23 Sep 2018, 04:15
by Raheem
Client side. Clients must set .wav sounds by volume "value" and mp3 by MP3Volume "value".

By slow hacking you can set these values for them.

Example:
    1. #include <zombie_escape>
    2.  
    3. public plugin_init()
    4. {
    5.     register_plugin("Control WAV/MP3 Volume", "1.0", "Raheem")
    6. }
    7.  
    8. public client_putinserver(id)
    9. {
    10.     Send_Cmd(id, "volume ^"0.1^"")
    11.     Send_Cmd(id, "MP3Volume ^"0.1^"")
    12. }
    13.  
    14. stock Send_Cmd(id, text[])
    15. {
    16.     message_begin(MSG_ONE, 51, _, id)
    17.     write_byte(strlen(text) + 2)
    18.     write_byte(10)
    19.     write_string(text)
    20.     message_end()
    21. }

Re: In Game Music

Posted: 23 Sep 2018, 04:38
by Mark
Raheem wrote: 5 years ago Client side. Clients must set .wav sounds by volume "value" and mp3 by MP3Volume "value".

By slow hacking you can set these values for them.

Example:
    1. #include <zombie_escape>
    2.  
    3. public plugin_init()
    4. {
    5.     register_plugin("Control WAV/MP3 Volume", "1.0", "Raheem")
    6. }
    7.  
    8. public client_putinserver(id)
    9. {
    10.     Send_Cmd(id, "volume ^"0.1^"")
    11.     Send_Cmd(id, "MP3Volume ^"0.1^"")
    12. }
    13.  
    14. stock Send_Cmd(id, text[])
    15. {
    16.     message_begin(MSG_ONE, 51, _, id)
    17.     write_byte(strlen(text) + 2)
    18.     write_byte(10)
    19.     write_string(text)
    20.     message_end()
    21. }
Perfect thanks