Hey guyz, can some1 help with plugin?
Well how 2 tell this plugin, 2 take the sounds from the misc misc folder.
This plugin is loading sounds, when some1 comes in server, it plays a sound from valve/valve/media folder but how 2 tell him 2 play a sound from valve/cstrike/sound/misc folder???
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][] = {"Half-Life03","Half-Life14","Half-Life08","Half-Life11","Half-Life14","Half-Life15"}
public client_connect(id) {
new i
i = random_num(0,Maxsounds-1)
client_cmd(id,"mp3 play media/%s",soundlist[i])
return PLUGIN_CONTINUE
}
public plugin_init() {
register_plugin("Amx Dev Team","1.6","st")
return PLUGIN_CONTINUE
}
Code:
client_cmd(id,"wav play valve/cstrike/sound/misc/%s",soundlist[i])
NOT WORKING and other else ways 2 :(
If some1 can, then PLZZZZ tell me