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 , 13:52   Re: Help me PLZ.
Reply With Quote #2

I don't understand what you want exactly. When a player leaves there is a sound played ( To him or everyone? ). Also, whats the thing about players with stats?

try this though. This will play a sound on HIM leaving ot him.
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)
		emit_sound(id, CHAN_AUTO, "FtF/konczyc.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) 
	else if(rand == 2)
		emit_sound(id, CHAN_AUTO, "FtF/naraska.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) 
	else if(rand == 3)
		emit_sound(id, CHAN_AUTO, "FtF/3maj.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) 
	else if(rand == 4)
		emit_sound(id, CHAN_AUTO, "FtF/cya.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) 
	else if(rand == 5)
		emit_sound(id, CHAN_AUTO, "FtF/narka.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) 
	else if(rand == 6)
		emit_sound(id, CHAN_AUTO, "FtF/elo.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) 
	
}
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