Resolved In Game Music

Report bugs to be fixed
Post Reply
User avatar
Mark
Senior Member
Senior Member
United States of America
Posts: 283
Joined: 1 Year Ago
Location: Des Moines/USA
Donation: 1x donated in total €10.00
Has thanked: 6 times
Been thanked: 21 times
Age: 34
Contact:

In Game Music

#1

Post by Mark » 1 Year 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
Egypt
Posts: 1972
Joined: 2 Years Ago
Location: Egypt
Has thanked: 32 times
Been thanked: 108 times
Age: 22
Contact:

#2

Post by Raheem » 1 Year 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. }
You don't know? Learn and you will know.

User avatar
Mark
Senior Member
Senior Member
United States of America
Posts: 283
Joined: 1 Year Ago
Location: Des Moines/USA
Donation: 1x donated in total €10.00
Has thanked: 6 times
Been thanked: 21 times
Age: 34
Contact:

#3

Post by Mark » 1 Year Ago

Raheem wrote:
1 Year 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 made via iPhone ]

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests