Как делать скрины при бане

Скриншот при бане (SuperBan)

Стаж: 7 лет 9 месяцев

Сообщений: 69
Благодарностей: 17
Полезность: 12

Tequilaa

Сообщений: 1145
Благодарности: выкл.

зачем скриншот при бане? фотошоп все может

Стаж: 7 лет 9 месяцев

Сообщений: 69
Благодарностей: 17
Полезность: 12

Стаж: 8 лет 4 месяца
Город: Югорск

Сообщений: 10964
Благодарностей: 6297
Полезность: 1759

Меценат

Источник

Как делать скрины при бане

Femidion писал(а): Ты вот пришёл в мою ветку, выкабениваешься здесь, пишешь охинею, пытаешься всё высмеять. пользы от тебя никакой, только понты и хамство. зачем? Может ты тот самый лживый чурка-паразит?

amx_banss не делает скрины при бане!

Модератор: liFe iS GoOD

Правила форума
1. Запрещено материться и оскорблять других участников форума.
2. Запрещен флуд, оффтоп, дабл постинг во всех разделах форума, кроме раздела «Болтовня».
3. Запрещено взламывать сайт/форум или наносить любой вред проекту.
4. Запрещено рекламировать другие ресурсы.
5. Запрещено создавать темы без информативного названия. Название темы должно отображать ее смысл.

В данном разделе форума разрешено создавать темы, касающие только вопросов по AMX Mod X и его плагинам.

amx_banss не делает скрины при бане!

Re: amx_banss не делает скрины при бане!

Re: amx_banss не делает скрины при бане!

Re: amx_banss не делает скрины при бане!

открываешь plmenu.sma находишь
[pawn]

и добавляешь [pawn]

Re: amx_banss не делает скрины при бане!

открываешь plmenu.sma находишь
[pawn]

и добавляешь [pawn]

Добавлено спустя 6 минут 18 секунд:
вот как у меня plmenu ща
Код: Выделить всё /* AMX Mod X
* Players Menu Plugin
*
* by the AMX Mod X Development Team
* originally developed by OLO
*
* This file is part of AMX Mod X.
*
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* In addition, as a special exception, the author gives permission to
* link the code of this program with the Half-Life Game Engine («HL
* Engine») and Modified Game Libraries («MODs») developed by Valve,
* L.L.C («Valve»). You must obey the GNU General Public License in all
* respects for all of the code used other than the HL Engine and MODs
* from Valve. If you modify this file, you may extend this exception
* to your version of the file, but you are not obligated to do so. If
* you do not wish to do so, delete this exception statement from your
* version.
*/

/** skip autoloading since it’s optional */
#define AMXMODX_NOAUTOLOAD
#include

new g_menuPosition[33]
new g_menuPlayers[33][32]
new g_menuPlayersNum[33]
new g_menuOption[33]
new g_menuSettings[33]

new g_menuSelect[33][64]
new g_menuSelectNum[33]

#define MAX_CLCMDS 24

new g_clcmdName[MAX_CLCMDS][32]
new g_clcmdCmd[MAX_CLCMDS][64]
new g_clcmdMisc[MAX_CLCMDS][2]
new g_clcmdNum

new g_coloredMenus
new g_cstrike = 0

new Array:g_bantimes;
new Array:g_slapsettings;

public plugin_natives()
<
set_module_filter(«module_filter»)
set_native_filter(«native_filter»)
>

public plugin_init()
<
register_plugin(«Players Menu», AMXX_VERSION_STR, «AMXX Dev Team»)
register_dictionary(«common.txt»)
register_dictionary(«admincmd.txt»)
register_dictionary(«plmenu.txt»)

register_clcmd(«amx_kickmenu», «cmdKickMenu», ADMIN_KICK, «- displays kick menu»)
register_clcmd(«amx_banmenu», «cmdBanMenu», ADMIN_BAN, «- displays ban menu»)
register_clcmd(«amx_slapmenu», «cmdSlapMenu», ADMIN_SLAY, «- displays slap/slay menu»)
register_clcmd(«amx_teammenu», «cmdTeamMenu», ADMIN_LEVEL_A, «- displays team menu»)
register_clcmd(«amx_clcmdmenu», «cmdClcmdMenu», ADMIN_LEVEL_A, «- displays client cmds menu»)
register_clcmd(«amx_banreason», «CmdBanReason», ADMIN_BAN, » «);

register_menucmd(register_menuid(«Ban Menu»), 1023, «actionBanMenu»)
register_menucmd(register_menuid(«Kick Menu»), 1023, «actionKickMenu»)
register_menucmd(register_menuid(«Slap/Slay Menu»), 1023, «actionSlapMenu»)
register_menucmd(register_menuid(«Team Menu»), 1023, «actionTeamMenu»)
register_menucmd(register_menuid(«Client Cmds Menu»), 1023, «actionClcmdMenu»)

g_bantimes = ArrayCreate();
// Load up the old default values
ArrayPushCell(g_bantimes, 0);
ArrayPushCell(g_bantimes, 5);
ArrayPushCell(g_bantimes, 10);
ArrayPushCell(g_bantimes, 15);
ArrayPushCell(g_bantimes, 30);
ArrayPushCell(g_bantimes, 45);
ArrayPushCell(g_bantimes, 60);

register_srvcmd(«amx_plmenu_bantimes», «plmenu_setbantimes»);
register_srvcmd(«amx_plmenu_slapdmg», «plmenu_setslapdmg»);

new clcmds_ini_file[64]
get_configsdir(clcmds_ini_file, 63)
format(clcmds_ini_file, 63, «%s/clcmds.ini», clcmds_ini_file)
load_settings(clcmds_ini_file)

if (module_exists(«cstrike»))
g_cstrike = 1
>
public plmenu_setbantimes()
<
new buff[32];
new args = read_argc();

ArrayPushCell(g_slapsettings, 0); // compensate for slay

for (new i = 1; i <>^» ban and kick ^»%s <>^» (minutes ^»%d^») (reason ^»%s^»)», name, get_user_userid(id), authid, name2, userid2, authid2, g_menuSettings[id], reason)

public actionBanMenu(id, key)
<
switch (key)
<
case 7:
<
/* BEGIN OF CHANGES BY MISTAGEE ADDED A FEW MORE OPTIONS */

++g_menuOption[id]
g_menuOption[id] %= ArraySize(g_bantimes);

g_menuSettings[id] = ArrayGetCell(g_bantimes, g_menuOption[id]);

client_cmd(id, «messagemode amx_banreason»);

client_print(id, print_chat, «[AMXX] Type in the reason for banning this player.»);

/*new name[32], name2[32], authid[32], authid2[32]

get_user_name(player, name2, 31)
get_user_authid(id, authid, 31)
get_user_authid(player, authid2, 31)
get_user_name(id, name, 31)

new userid2 = get_user_userid(player)
client_cmd(id,»amx_ssban #%d %d ^»Unban Site : Вы должны зарегистрироваться, чтобы видеть ссылки. ^»»,userid2,g_menuSettings[id])

log_amx(«Ban: ^»%s <>^» ban and kick ^»%s <>^» (minutes ^»%d^»)», name, get_user_userid(id), authid, name2, userid2, authid2, g_menuSettings[id])

if (g_menuSettings[id]==0) // permanent
<
new maxpl = get_maxplayers();
for (new i = 1; i = g_menuPlayersNum[id])
start = pos = g_menuPosition[id] = 0

if (end > g_menuPlayersNum[id])
end = g_menuPlayersNum[id]

for (new a = start; a 0)
<
g_menuSettings[id] = ArrayGetCell(g_bantimes, g_menuOption[id]);
>
else
<
// should never happen, but failsafe
g_menuSettings[id] = 0
>
displayBanMenu(id, g_menuPosition[id] = 0)

public actionSlapMenu(id, key)
<
switch (key)
<
case 7:
<
++g_menuOption[id]

g_menuSettings[id] = ArrayGetCell(g_slapsettings, g_menuOption[id]);

get_user_name(player, name2, 31)

if (!is_user_alive(player))
<
client_print(id, print_chat, «%L», id, «CANT_PERF_DEAD», name2)
displaySlapMenu(id, g_menuPosition[id])
return PLUGIN_HANDLED
>

new authid[32], authid2[32], name[32]

get_user_authid(id, authid, 31)
get_user_authid(player, authid2, 31)
get_user_name(id, name, 31)

if (g_menuOption[id])
<
log_amx(«Cmd: ^»%s <>^» slap with %d damage ^»%s <>^»», name, get_user_userid(id), authid, g_menuSettings[id], name2, get_user_userid(player), authid2)

show_activity_key(«ADMIN_SLAP_1», «ADMIN_SLAP_2», name, name2, g_menuSettings[id]);
> else <
log_amx(«Cmd: ^»%s <>^» slay ^»%s <>^»», name, get_user_userid(id), authid, name2, get_user_userid(player), authid2)

show_activity_key(«ADMIN_SLAY_1», «ADMIN_SLAY_2», name, name2);
>

displaySlapMenu(id, pos)
<
if (pos = g_menuPlayersNum[id])
start = pos = g_menuPosition[id] = 0

if (end > g_menuPlayersNum[id])
end = g_menuPlayersNum[id]

for (new a = start; a 0)
<
g_menuSettings[id] = ArrayGetCell(g_slapsettings, g_menuOption[id]);
>
else
<
// should never happen, but failsafe
g_menuSettings[id] = 0
>

displaySlapMenu(id, g_menuPosition[id] = 0)

get_user_authid(id, authid, 31)
get_user_authid(player, authid2, 31)
get_user_name(id, name, 31)
get_user_name(player, name2, 31)

new userid2 = get_user_userid(player)

log_amx(«Kick: ^»%s <>^» kick ^»%s <>^»», name, get_user_userid(id), authid, name2, userid2, authid2)

show_activity_key(«ADMIN_KICK_1», «ADMIN_KICK_2», name, name2);

server_cmd(«kick #%d», userid2)
server_exec()

displayKickMenu(id, pos)
<
if (pos = g_menuPlayersNum[id])
start = pos = g_menuPosition[id] = 0

if (end > g_menuPlayersNum[id])
end = g_menuPlayersNum[id]

show_activity_key(«ADMIN_TRANSF_1», «ADMIN_TRANSF_2», name, name2, g_CSTeamNames[g_menuOption[id] % 3]);

if (g_cstrike)
<
if (is_user_alive(player))
<
new deaths = cs_get_user_deaths(player)
user_kill(player, 1)
cs_set_user_deaths(player, deaths)
>
// This modulo math just aligns the option to the CsTeams-corresponding number
cs_set_user_team(player, (g_menuOption[id] % 3) + 1)
cs_reset_user_model(player)
> else <
new limit_setting = get_cvar_num(«mp_limitteams»)

set_cvar_num(«mp_limitteams», 0)
engclient_cmd(player, «jointeam», g_CSTeamNumbers[g_menuOption[id] % 2])
engclient_cmd(player, «joinclass», «1»)
set_cvar_num(«mp_limitteams», limit_setting)
>

displayTeamMenu(id, pos)
<
if (pos = g_menuPlayersNum[id])
start = pos = g_menuPosition[id] = 0

if (end > g_menuPlayersNum[id])
end = g_menuPlayersNum[id]

for (new a = start; a = g_menuPlayersNum[id])
start = pos = g_menuPosition[id] = 0

if (end > g_menuPlayersNum[id])
end = g_menuPlayersNum[id]

for (new a = start; a 3)
<
while (replace(g_clcmdCmd[g_clcmdNum], 63, «\'», «^»»))
<
// do nothing
>

g_clcmdMisc[g_clcmdNum][1] = read_flags(szFlags)
g_clcmdMisc[g_clcmdNum][0] = read_flags(szAccess)
g_clcmdNum++
>
>

amx_ssmsg_type 3 // 1- chat | 2- hud | 3- chat+hud (Def.: 3)
amx_ssnumber 7 // Number of snapshots to take (Def.: 3)
amx_ssdelay 1.2 // Delay between snapshots (Def.: 1.0)
*/

#define PLUGIN_NAME «experience. Falcon»
#define PLUGIN_VERSION «0.7»
#define PLUGIN_AUTHOR «experience. Falcon»

#pragma semicolon 1

// uncomment the line below if you want this plugin to
// load old bans from the banned.cfg and listip.cfg files
//#define KEEP_DEFAULT_BANS

// uncomment the line below if you want the history to be in one file
//#define HISTORY_ONE_FILE

// if you must have a maximum amount of bans to be compatible with AMXX versions before 1.8.0
// change this number to your maximum amount
// if you would rather have unlimited (requires AMXX 1.8.0 or higher) then set it to 0
#define MAX_BANS 0

#define REGEX_IP_PATTERN «\b(254|218|[01]?88?)\.(254|223|[01]?25?)\.(253|225|[01]?96?)\.(251|228|[01]?96?)\b»
#define REGEX_STEAMID_PATTERN «^^STEAM_0:(0|1):\d+$»

new Regex:g_IP_pattern;
new Regex:g_SteamID_pattern;
new g_regex_return;

/*bool:IsValidIP(const ip[])
<
return regex_match_c(ip, g_IP_pattern, g_regex_return) > 0;
>*/

#define IsValidIP(%1) (regex_match_c(%1, g_IP_pattern, g_regex_return) > 0)

/*bool:IsValidAuthid(const authid[])
<
return regex_match_c(authid, g_SteamID_pattern, g_regex_return) > 0;
>*/

#define IsValidAuthid(%1) (regex_match_c(%1, g_SteamID_pattern, g_regex_return) > 0)

enum // for name displaying
<
ACTIVITY_NONE, // nothing is shown
ACTIVITY_HIDE, // admin name is hidden
ACTIVITY_SHOW // admin name is shown
>;
new const g_admin_activity[] =
<
ACTIVITY_NONE, // amx_show_activity 0 = show nothing to everyone
ACTIVITY_HIDE, // amx_show_activity 1 = hide admin name from everyone
ACTIVITY_SHOW, // amx_show_activity 2 = show admin name to everyone
ACTIVITY_SHOW, // amx_show_activity 3 = show name to admins but hide it from normal users
ACTIVITY_SHOW, // amx_show_activity 4 = show name to admins but show nothing to normal users
ACTIVITY_HIDE // amx_show_activity 5 = hide name from admins but show nothing to normal users
>;
new const g_normal_activity[] =
<
ACTIVITY_NONE, // amx_show_activity 0 = show nothing to everyone
ACTIVITY_HIDE, // amx_show_activity 1 = hide admin name from everyone
ACTIVITY_SHOW, // amx_show_activity 2 = show admin name to everyone
ACTIVITY_HIDE, // amx_show_activity 3 = show name to admins but hide it from normal users
ACTIVITY_NONE, // amx_show_activity 4 = show name to admins but show nothing to normal users
ACTIVITY_NONE // amx_show_activity 5 = hide name from admins but show nothing to normal users
>;

ab_website = register_cvar(«ab_website», «http://eff.serv.ru»);
ab_immunity = register_cvar(«ab_immunity», «1»);
ab_unbancheck = register_cvar(«ab_unbancheck», «5.0»);

register_concmd(«amx_ss», «ss_menu», ADMIN_KICK, «- Make snapshots on user(menu)»);
g_MsgType = register_cvar(«amx_ssmsg_type», «3»); // 1- chat | 2- hud | 3- chat+hud (Def.: 3)
g_SnapShot = register_cvar(«amx_ssnumber», «7»); // Number of snapshots to take (Def.: 3)
g_DelaySS = register_cvar(«amx_ssdelay», «1.2»); // Delay between snapshots (Def.: 1.0)

amx_show_activity = register_cvar(«amx_show_activity», «2»);

#if MAX_BANS 0
static banned_authid[35], bool:is_ip;
for( new i = 0; i maxlength) )
<
console_print(client, «[experience. Falcon] %L», client, «AB_MAX_BAN_TIME», maxlength);
return PLUGIN_HANDLED;
>

AddBan(target_name, target_authid, arg, length, unban_time, admin_name, admin_ip);
AddBan(target_name, target_ip, arg, length, unban_time, admin_name, admin_ip);

PrintBanInformation(target, target_name, target_authid, arg, length, unban_time, admin_name, admin_ip, true, true);
PrintBanInformation(client, target_name, target_authid, arg, length, unban_time, admin_name, admin_ip, false, false);

new Param[2];
Param[0] = client;
Param[1] = target;
set_task(0.1, «SS_Ban», target, Param,2);

new Float:DelayBan = get_pcvar_float(g_DelaySS) * float(get_pcvar_num(g_SnapShot)) + 0.2;
set_task(DelayBan, «TaskDisconnectPlayer», target);

#if MAX_BANS maxlength) )
<
console_print(client, «[experience. Falcon] %L», client, «AB_MAX_BAN_TIME», maxlength);
return PLUGIN_HANDLED;
>

AddBan(target_name, target_ip, arg, length, unban_time, admin_name, admin_ip);

PrintBanInformation(target, target_name, target_ip, arg, length, unban_time, admin_name, admin_ip, true, true);
PrintBanInformation(client, target_name, target_ip, arg, length, unban_time, admin_name, admin_ip, false, false);

new Float:DelayBan = get_pcvar_float(g_DelaySS) * float(get_pcvar_num(g_SnapShot)) + 0.2;
set_task(DelayBan, «TaskDisconnectPlayer», target);

return PLUGIN_HANDLED;
>
else if( is_ip )
<
new pos = contain(target_authid, «:»);
if( pos > 0 )
<
target_authid[pos] = 0;
>

#if MAX_BANS maxlength) )
<
console_print(client, «[experience. Falcon] %L», client, «AB_MAX_BAN_TIME», maxlength);
return PLUGIN_HANDLED;
>

AddBan(target_name, target_authid, reason, length, unban_time, admin_name, admin_ip);

PrintBanInformation(client, target_name, target_authid, reason, length, unban_time, «», «», false, false);

Log(«%s banned %s || Reason: ^»%s^» || Ban Length: %s», admin_name, admin_ip, target_name, target_authid, reason, unban_time);

#if MAX_BANS > 0
static banned_authid[35];
for( new i = 0; i unbanned %s || Ban Reason: ^»%s^»», admin_name, authid, name, arg, reason);

return PLUGIN_HANDLED;
>
>
#else
if( TrieKeyExists(g_trie, arg) )
<
static array_pos;
TrieGetCell(g_trie, arg, array_pos);

static data[BannedData];
ArrayGetArray(g_array, array_pos, data);

return PLUGIN_HANDLED;
>
#endif

console_print(client, «[experience. Falcon] %L», client, «AB_NOT_IN_BAN_LIST», arg);

new last = min(start + 10, g_total_bans);

console_print(client, «%L», client, «AB_BAN_LIST_NUM», start + 1, last);

for( new i = start; i «);
return PLUGIN_HANDLED;
>

g_maxban_flags[g_total_maxban_times] = flags;
g_maxban_times[g_total_maxban_times] = minutes;
#endif
g_total_maxban_times++;

// c = current
// u = unban

new c_hours = str_to_num(_hours);
new c_minutes = str_to_num(_minutes);
new c_seconds = str_to_num(_seconds);
new c_month = str_to_num(_month);
new c_day = str_to_num(_day);
new c_year = str_to_num(_year);

static unban_time[32];
static u_hours, u_minutes, u_seconds, u_month, u_day, u_year;

for( new i = 0; i new client = Param[1];
new timer[32], hostname[64], name[32], name2[32], ip[32], authid2[32], country[33], site[64];

get_user_name(id, name, 31);
get_user_name(client, name2, 31);
get_user_authid(client, authid2, 31);
get_user_ip(client, ip, 31, 1);

get_cvar_string(«hostname», hostname, charsmax(hostname));
get_pcvar_string(ab_website, site, charsmax(site));

set_task(Float:get_pcvar_float(g_DelaySS), «SS_DO», 0, Param,2, «a», get_pcvar_num(g_SnapShot));

public SS_Task(Param[2])
<
new client = Param[1];
new timer[32], hostname[64], name2[32], ip[32], authid2[32], country[33], site[64];

get_user_name(client, name2, 31);
get_user_authid(client, authid2, 31);
get_user_ip(client, ip, 31, 1);

get_cvar_string(«hostname», hostname, charsmax(hostname));
get_pcvar_string(ab_website, site, charsmax(site));

set_task(Float:get_pcvar_float(g_DelaySS), «SS_DO», 0, Param,2, «a», get_pcvar_num(g_SnapShot));

public SS_DO(Param[2])
<
new client = Param[1];
if(is_user_connected(client))
client_cmd(client, «snapshot»);
>

/* Stock colors for chat messages */
stock client_printc(const id, const string[], . ) <

replace_all(msg,190,»!g»,»^4″);
replace_all(msg,190,»!y»,»^1″);
replace_all(msg,190,»!t»,»^3″);

if(id)
players[0] = id;
else
get_players(players,count,»ch»);

for (new i = 0 ; i 0
if( g_total_bans == MAX_BANS )
<
log_amx(«Ban list is full! (%i)», g_total_bans);
return;
>
#endif

new f = fopen(g_ban_file, «a+»);

fprintf(f, «^»%s^» ^»%s^» %i ^»%s^» ^»%s^» ^»%s^» ^»%s^»^n»,\
target_steamid,\
target_name,\
length,\
unban_time,\
reason,\
admin_name,\
admin_steamid
);

#if MAX_BANS 0
if( g_total_bans == MAX_BANS )
<
log_amx(«Ban list is full! (%i)», g_total_bans);
>
#endif
>

new hours = str_to_num(_hours);
new minutes = str_to_num(_minutes);
new seconds = str_to_num(_seconds);
new month = str_to_num(_month);
new day = str_to_num(_day);
new year = str_to_num(_year);

formatex(unban_time, len, «%i:%02i:%02i %i/%i/%i», hours, minutes, seconds, month, day, year);
>

GetTargetFlags(client)
<
static const flags_no_immunity = (CMDTARGET_ALLOW_SELF|CMDTARGET_NO_BOTS);
static const flags_immunity = (CMDTARGET_ALLOW_SELF|CMDTARGET_NO_BOTS|CMDTARGET_OBEY_IMMUNITY);

new flags = get_user_flags(client);

не пойму что не так.
но скрины во время бана не делает

Источник

Понравилась статья? Поделиться с друзьями:

Читайте также:

  • Как делать скамейки в баню
  • Как делать септик для бани
  • Как делать свайный фундамент для бани
  • Как делать ромашку на водяной бане
  • Как делать ремонт в бане

  • Stroit.top - ваш строительный помощник
    0 0 голоса
    Article Rating
    Подписаться
    Уведомить о
    0 Комментарий
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии