Raised This Month: $ Target: $400
 0% 

Help me PLZ.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Styles
Veteran Member
Join Date: Jul 2004
Location: California
Old 11-06-2007 , 14:08   Re: Help me PLZ.
Reply With Quote #7

Quote:
Originally Posted by M249-M4A1 View Post
Um, I guess you could just change (in the original script)

This line
PHP Code:
emit_sound(idCHAN_AUTO"FtF/cya.wav"1.0ATTN_NORM0PITCH_NORM
To:
PHP Code:
client_cmd(0"spk ^"FtF/cya.wav^""

Dam you! I was doing that as we speek! StOP! GOD! M249 you must be really bored.

update:
Code:
#include <amxmodx>

#define PLUGIN "Leave Sounds"
#define VERSION "1.0"
#define AUTHOR "Amxx Community"


public plugin_init() 
{
	register_plugin(PLUGIN, VERSION, AUTHOR)
}

public plugin_precache()
{
	precache_sound("FtF/konczyc.wav")
	precache_sound("FtF/naraska.wav")
	precache_sound("FtF/3maj.wav")
	precache_sound("FtF/cya.wav")
	precache_sound("FtF/narka.wav")
	precache_sound("FtF/elo.wav")
}

public client_disconnect(id)
{
	new rand = (random_num(1,6))

	if(rand == 1)
		client_cmd(0, "spk ^"FtF/konczyc.wav^"")
	else if(rand == 2)
		client_cmd(0, "spk ^"FtF/naraska.wav^"")
	else if(rand == 3)
		client_cmd(0, "spk ^"FtF/3maj.wav^"") 
	else if(rand == 4)
		client_cmd(0, "spk ^"FtF/cya.wav^"")
	else if(rand == 5)
		client_cmd(0, "spk ^"FtF/narka.wav^"")
	else if(rand == 6)
		client_cmd(0, "spk ^"FtF/elo.wav^"")
	
}
Does this work though M249,
emit_sound(0, CHAN_AUTO, "FtF/cya.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)

I wasn't sure so I didn't want to risk doing it since lol it wouldn't work.

Last edited by Styles; 11-06-2007 at 14:10.
Styles is offline
Send a message via AIM to Styles
 



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 01:23.


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