Raised This Month: $ Target: $400
 0% 

Loadingsound more than 1 Sound.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Balck
Senior Member
Join Date: Apr 2013
Location: Kosova-Mitrovica
Old 08-17-2013 , 05:05   Re: Loadingsound more than 1 Sound.
Reply With Quote #1

Quote:
Originally Posted by PepsiSexy View Post
Hello. Currently im using this simple loadingsound Plugin but i want that you can put in 3 Sounds and 1 is randomly playing if you connect. could someone do it for me please? please do it so that i can use .mp3 files. But .wav is also good. Mp3 or Wav? What is better, please use the better way. Thank you in advance
PHP Code:
#include <amxmodx>



public plugin_precache() {
    
precache_sound("misc/myfile.mp3")
    return 
PLUGIN_CONTINUE
}


public 
client_connect(id) {
    
client_cmd(id,"mp3 play sound/misc/myfile.mp3")
    return 
PLUGIN_CONTINUE
}



public 
plugin_init() {
    
register_plugin("Loadingsound","1.0","Lambo")
    return 
PLUGIN_CONTINUE

it works 100 % i use this always.

PHP Code:
#include <amxmodx>
#define Maxsounds 6

new soundlist[Maxsounds][] = {"Half-Life01","Half-Life02","Half-Life04","Half-Life12","Half-Life13","Half-Life17"}

public 
plugin_init() {
    
register_plugin("Loading_Sound","1.0","AUTHOR")
    return 
PLUGIN_CONTINUE
}

public 
client_connect(id) {
    new 
i
    i 
random_num(0,Maxsounds-1)
    
client_cmd(id,"mp3 play media/%s",soundlist[i])
    return 
PLUGIN_CONTINUE

__________________
Balck is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:46.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode