Raised This Month: $ Target: $400
 0% 

Help with d plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
12345
Senior Member
Join Date: Dec 2004
Old 03-10-2006 , 23:05   Help with d plugin
Reply With Quote #1

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
12345 is offline
 



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 20:27.


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