Solved In Game Music

Report bugs to be fixed
Post Reply
User avatar
Mark
VIP
VIP
United States of America
Posts: 283
Joined: 6 years ago
Location: Des Moines/USA
Contact:

In Game Music

#1

Post by Mark » 6 years ago

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

User avatar
Raheem
Mod Developer
Mod Developer
Posts: 2213
Joined: 7 years ago
Contact:

#2

Post by Raheem » 6 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. }
He who fails to plan is planning to fail

User avatar
Mark
VIP
VIP
United States of America
Posts: 283
Joined: 6 years ago
Location: Des Moines/USA
Contact:

#3

Post by Mark » 6 years ago

Raheem wrote: 6 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

Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Who is online

Users browsing this forum: No registered users and 0 guests