#include <amxmodx>
#include <amxmisc>
#include <csx>
#define PLUGIN "Anti TeamPlay"
#define VERSION "1.0"
#define AUTHOR "Sn!ff3r"
#define T 1
#define CT 2
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("SendAudio","end_round","a","2=%!MRAD_terwin","2=%!MRAD_ctwin")
}
public end_round()
{
new audio[32]
read_data(2,audio,31)
if(contain(audio,"terwin") != -1)
slay(CT)
else slay(T)
}
public slay(team)
{
new players[32], inum
get_players(players,inum,"a")
for(new i = 0; i <= inum; ++i)
if(get_user_team(i) == team && is_user_alive(i))
{
user_kill(i)
client_print(i,print_chat,"!!! Wykonuj cele mapy !!!")
set_hudmessage(255, 0, 0, -1.0, 0.3, 0, 6.0, 5.0)
show_hudmessage(i, "!!! Wykonuj cele mapy !!!")
}
}