#include <amxmodx>
#include <cstrike>
#include <engine>
#include <colorchat>
#define PLUGIN "edycja_czarnej_listy"
#define VERSION "1.1"
#define AUTHOR "SeeK"
#define SPEAK_MUTED 1
#define SPEAK_NORMAL 0
new wartosc = 0
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /mikro", "uciszenie")
}
public uciszenie(id)
{
if(cs_get_user_team(id) == CS_TEAM_CT && wartosc == 0)
{
wartosc = 1
for(new id = 1; id < 33; ++id)
{
if(is_user_connected(id) && cs_get_user_team(id) == CS_TEAM_T)
{
set_speak(id, SPEAK_MUTED)
}
}
ColorChat(0, RED,"^x01Mikro dla TT ^x03wylaczone")
return PLUGIN_CONTINUE
}
if(cs_get_user_team(id) == CS_TEAM_CT && wartosc == 1)
{
wartosc = 0
for(new id = 1; id < 33; ++id)
{
if(is_user_connected(id) && cs_get_user_team(id) == CS_TEAM_T)
{
set_speak(id, SPEAK_NORMAL)
}
}
ColorChat(0, RED,"^x01Mikro dla TT ^x03wlaczone")
return PLUGIN_CONTINUE
}
return PLUGIN_CONTINUE
}
Użytkownik LCA edytował ten post 16.08.2011 21:31