play sound on player death
i want to play a sound when players dies how do i check this?
public song(id) { new CsTeams:team team = cs_get_user_team(id) if ((team==CS_TEAM_SPECTATOR)||(team==CS_TEAM_UN ASSIGNED)||(team==CS_TEAM_T)||(team==CS_TEAM_ CT)) { if (playing[id]==false) { new params[1] params[0]=id set_task(0.5,"play_song_task",0,params,1,"a", 1) playing[id]=true } } else { client_cmd(id,"mp3 stop") playing[id]=false |
Re: play sound on player death
Should work.
Code:
If the sound is a .wav change "mp3 play" by "play" or "spk", and remove "sound/" in 'gs_Sound'. |
Re: play sound on player death
thx i will try
|
| All times are GMT -4. The time now is 03:07. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.