shel писал(а): Yopta, za bazar otvechau, skazal v sosedneu teme tupo vukladuvayte odobru a teper zadnuu podrybul? Tak delo ne poydet, bablo na stol yoba
Модератор: Leonidddd
[ 1] SafeNameAndChat RUN - SafeNameAndChat. v1.0 ini ANY ANY
[ 2] AMX Mod X RUN - amxmodx_mm_i386. v1.8.2 ini Start ANY
[ 3] Reunion RUN - reunion_mm_i386. v0.1.67 ini Start Never
[ 4] Rechecker RUN - rechecker_mm_i38 v2.1 ini Chlvl ANY
[ 5] ReSemiclip RUN - resemiclip_mm_i3 v2.3.7 ini Chlvl ANY
[ 6] VoiceTranscoder RUN - VoiceTranscoder. v2.0RC1 ini ANY ANY
[ 7] ReAuthCheck RUN - reauthcheck_mm_i v0.1.4 ini Start Never
[ 8] WHBlocker RUN - whblocker_mm_i38 v1.5.620 ini Chlvl ANY
[ 9] FakeMeta RUN - fakemeta_amxx_i3 v1.8.2 pl2 ANY ANY
[10] hackdetector fail load hackdetector_amx v0.15.22 pl2 ANY ANY
[11] ReFreeLook RUN - refreelook_amxx_ v1.8 pl2 ANY Never
[12] ReAPI RUN - reapi_amxx_i386. v0.1.80 pl2 ANY Never
[13] MySQL RUN - mysql_amxx_i386. v1.8.2 pl2 ANY ANY
[14] Fun RUN - fun_amxx_i386.so v1.8.2 pl2 ANY ANY
[15] Ham Sandwich RUN - hamsandwich_amxx v1.8.2 pl2 ANY ANY
[16] CStrike RUN - cstrike_amxx_i38 v1.8.2-d pl2 ANY ANY
[17] Engine RUN - engine_amxx_i386 v1.8.2 pl2 ANY ANY
[18] CSX RUN - csx_amxx_i386.so v1.8.2 pl2 ANY ANY
linux addons/snac/SafeNameAndChat.so
linux addons/vtc/VoiceTranscoder.so
linux addons/amxmodx/dlls/amxmodx_mm_i386.so
linux addons/reunion/reunion_mm_i386.so
linux addons/rechecker/rechecker_mm_i386.so
linux addons/resemiclip/resemiclip_mm_i386.so
linux addons/reauthcheck/reauthcheck_mm_i386.so
linux addons/whblocker/whblocker_mm_i386.so
linux addons/reunion/reunion_mm_i386.so
linux addons/reauthcheck/reauthcheck_mm_i386.so
linux addons/vtc/VoiceTranscoder.so
linux addons/snac/SafeNameAndChat.so
linux addons/amxmodx/dlls/amxmodx_mm_i386.so
linux addons/rechecker/rechecker_mm_i386.so
linux addons/resemiclip/resemiclip_mm_i386.so
linux addons/whblocker/whblocker_mm_i386.so
#include <amxmodx>
#include <csstats>
#include <reapi>
#pragma semicolon 1
#define USE_IMMUNITY ADMIN_BAN // comment out this line if you don't want use immunity
#define USE_CHAT_PROTECTION // comment out this line if you don't want use chat protection
#define USE_NOTIFICATIONS // comment out this line if you don't want use notifications
#define USE_CSSTATSX_SQL // comment out this line if you don't want use CSstatsX SQL
#if defined USE_CSSTATSX_SQL
native get_user_stats_sql(index, stats[8], bodyhits[8]);
#endif
const MIN_FRAGS = 10; // minimum number of frags for unlock client (default: 10)
const Float:GET_STATS_DELAY = 1.0;
#if defined USE_NOTIFICATIONS
new g_HudSyncObj;
#endif
new g_Frags[MAX_CLIENTS + 1];
public plugin_init() {
register_plugin("Voice protection", "0.4", "AMXX.Shop");
register_dictionary("voice_protection.txt");
if(!has_vtc()) {
set_fail_state("VTC is required for plugin work!");
}
RegisterHookChain(RG_CBasePlayer_Killed, "RGCBasePlayerKilledPost", true);
#if defined USE_CHAT_PROTECTION
register_clcmd("say", "CmdSay");
register_clcmd("say_team", "CmdSay");
#endif
#if defined USE_NOTIFICATIONS
g_HudSyncObj = CreateHudSyncObj();
#endif
}
public client_putinserver(id) {
if(is_user_bot(id) || is_user_hltv(id)) {
return;
}
#if defined USE_IMMUNITY
if(get_user_flags(id) & USE_IMMUNITY) {
g_Frags[id] = MIN_FRAGS;
} else {
set_task(GET_STATS_DELAY, "GetStats", id);
}
#else
set_task(GET_STATS_DELAY, "GetStats", id);
#endif
}
public client_disconnect(id) {
remove_task(id);
}
public GetStats(const id) {
new Stats[8], BodyHits[8];
#if defined USE_CSSTATSX_SQL
get_user_stats_sql(id, Stats, BodyHits);
#else
get_user_stats(id, Stats, BodyHits);
#endif
if((g_Frags[id] = Stats[0]) < MIN_FRAGS) {
VTC_MuteClient(id);
}
}
public RGCBasePlayerKilledPost(const Victim, const Attacker) {
if(!is_user_connected(Attacker) || g_Frags[Attacker] >= MIN_FRAGS || Victim == Attacker) {
return;
}
if(++g_Frags[Attacker] == MIN_FRAGS) {
VTC_UnmuteClient(Attacker);
}
#if defined USE_NOTIFICATIONS
else {
set_hudmessage(128, 128, 128, _, 0.25, _, _, 10.0, _, _, -1);
ShowSyncHudMsg(Attacker, g_HudSyncObj, "%L^n%L", Attacker, "VP_TO_BEGIN", Attacker, "VP_NEED_YET", MIN_FRAGS - g_Frags[Attacker]);
}
#endif
}
#if defined USE_CHAT_PROTECTION
public CmdSay(const id) {
if(!is_user_connected(id)) {
return PLUGIN_HANDLED;
}
new Args[10];
read_args(Args, charsmax(Args));
remove_quotes(Args);
if(Args[0] == '/') {
return PLUGIN_HANDLED_MAIN;
}
if(g_Frags[id] < MIN_FRAGS) {
client_print(id, print_chat, "%L %L", id, "VP_TO_BEGIN", id, "VP_NEED_YET", MIN_FRAGS - g_Frags[id]);
return PLUGIN_HANDLED;
}
return PLUGIN_CONTINUE;
}
#endif
Вернуться в Утвержденные плагины
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 6