Raised This Month: $ Target: $400
 0% 

playing a sound when a player die


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Cheap_Suit
Veteran Member
Join Date: May 2004
Old 03-28-2005 , 21:32   playing a sound when a player die
Reply With Quote #1

how do i play a certain sound when a player die in a certain model?

soo far:

Code:
public fdeath(id) {
	
	new model[33]
	cs_get_user_model(id, model, 32)

	if(equal(model, "model",5)) {

	emit_sound(id, CHAN_VOICE, "misc/die.wav", VOL_NORM, ATTN_NORM, 0, PITCH_NORM)
	
	}else{
	
	}
	return PLUGIN_CONTINUE
}

public plugin_init() {
	register_event( "DeathMsg", "fdeath", "a" )
}
but i get this

L 03/28/2005 - 19:09:48: [AMXX] Native error in "cs_get_user_model" on some line (file "test.sma").
L 03/28/2005 - 19:09:48: [CSTRIKE] Player out of range (0)

any help or example would be greatly appreciated
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.
Cheap_Suit 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 10:01.


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