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»)
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 */
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]
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 >
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»)
// 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
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 >;
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);
#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);