Raised This Month: $ Target: $400
 0% 

Loading Sound


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
NOA
Member
Join Date: Mar 2007
Location: Sweden
Old 08-03-2009 , 04:23   Loading Sound
Reply With Quote #1

Hello!

Im trying to change this script so i can play wav sound and not mp3!

The sounds are located in half-life.gcf valve/sound/tride not valve/media as it says from begining in the script.

This is the code

Code:
/*
* Play a sound during the connection.
*
* Random code part taken from plugin
* connectsound by White Panther
*
* v1.0
*
*/

#include <amxmodx>
#define Maxsounds 6

// sounds localized in gcf cache (valve/media)
// you can add more song if you want.
new soundlist[Maxsounds][] = {"c0a0_tr_emerg","c0a0_tr_dest","c0a0_tr_haz","c0a0_tr_jobs","c0a0_tr_tourn","c0a0_tr_time"}

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

public plugin_init() {
    register_plugin("Loading Sound","1.0","Amxx User")
    return PLUGIN_CONTINUE
}
There it says

Code:
client_cmd(id,"mp3 play tride/%s",soundlist[i])
I figure that mp3 must remove and replace something with play wav to do, becuase the sounds in valve/tride ("c0a0_tr_haz") is not Mp3 its wav.

How do i change it so it works?
__________________

Last edited by NOA; 08-03-2009 at 04:26.
NOA is offline
Send a message via MSN to NOA
 



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 18:17.


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