Play a sound when player dies
Hi there. As you can see, I'm new around here. Just started to learn a little about AMXX and I want to make a plugin for a friend of mine. Here we go.
What I want is this: play a sound when player with the name "x" dies...it sounds fairly easy, but I can't get it working :( Any help would be appreciated. Here's what I've done so far: Code:
#include <amxmodx> |
Replace
Code:
Code:
|
Thanks alot man, that did the thing. But, what should I use to replace client_cmd for sending that command (spk misc/kenny1) to ALL the players connected to the server?
I've tried to add this line to the public_init function, but didn't work :( Code:
register_event("SendAudio", "k_die", "a") |
You already have that: client_cmd(0, ... mean that it's sent to all players. To execute command on the certain client you have to pass an player's index, in your case it's: client_cmd(victim, ...
|
Yep, it works just fine. Thanks alot, VEN. Cheers.
|
| All times are GMT -4. The time now is 08:04. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.