Play MP3 to victims teammates only
Right now this play MP3 to the victim only upon death.
I would like this to play to the victim's teammates only. How to do that? EDIT: Would like dead people to not be executed by this command either. PHP Code:
|
Re: Play MP3 to victims teammates only
Loop through all players or using get_players() then check the team.
|
Re: Play MP3 to victims teammates only
I have no clue how that works.
EDIT: Alright, currently got this: PHP Code:
Supposed to be contrary. Right now I have no idea how to fix this. Appreciate help. |
Re: Play MP3 to victims teammates only
The number of players changes throughout the game, and plugin_init() is only called once. Call get_players() wherever you intend to use that information.
|
Re: Play MP3 to victims teammates only
Alright, requesting if this could be done by someone since I can't figure out any working method with this one.
|
Re: Play MP3 to victims teammates only
untested, but this should work like you want it:
Code:
#include <amxmodx>i missed something, hold on edit2: *should* be ok now |
Re: Play MP3 to victims teammates only
Quote:
Code:
This one won't play the sound to the victim. You said you only wanted it to the victim's team. If you'd like it to play to the victim as well, just let me know. |
Re: Play MP3 to victims teammates only
Forgot to ment that dead people should not hear any sound at all.
|
Re: Play MP3 to victims teammates only
Quote:
|
Re: Play MP3 to victims teammates only
Thx guys, wrecked_'s version works :)
EDIT: Could you make a cmd for user(s) to disable which don't want to hear them all the time? |
| All times are GMT -4. The time now is 03:49. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.