Проблема с командой guns

Сообщения
43
Реакции
0
Помог
1 раз(а)
Ошибка
Не работает команда /guns
ОС
Linux
Amx Mod X
Amx Mod X = 1.9.0
Билд
Build date: 09:47:42 Sep 29 2018 (1631)
ReGamedll
ReGameDLL version: 5.7.0.323-dev
Версия Metamod
Metamod v1.21p37
Список метамодулей
description      stat pend  file              vers      src   load  unlod
[ 1] VoiceTranscoder RUN - VoiceTranscoder. v2017RC3 ini ANY ANY
[ 2] Reunion RUN - reunion_mm_i386. v0.1.0.9 ini Start Never
[ 3] ReAuthCheck RUN - reauthcheck_mm_i v0.1.6 ini Start Never
[ 4] AMX Mod X RUN - amxmodx_mm_i386. v1.9.0.5 ini Start ANY
[ 5] Rechecker RUN - rechecker_mm_i38 v2.5 ini Chlvl ANY
[ 6] WHBlocker RUN - whblocker_mm_i38 v1.5.696 ini Chlvl ANY
[ 7] ReSemiclip RUN - resemiclip_mm_i3 v2.3.9 ini Chlvl ANY
[ 8] CStrike RUN - cstrike_amxx_i38 v1.9.0.5 pl4 ANY ANY
[ 9] CSX RUN - csx_amxx_i386.so v1.9.0.5 pl4 ANY ANY
[10] MySQL RUN - mysql_amxx_i386. v1.9.0.5 pl4 ANY ANY
[11] SQLite RUN - sqlite_amxx_i386 v1.9.0.5 pl4 ANY ANY
[12] Engine RUN - engine_amxx_i386 v1.9.0.5 pl4 ANY ANY
[13] ReAPI RUN - reapi_amxx_i386. v5.8.0.1 pl4 ANY Never
[14] ReAimDetector RUN - reaimdetector_am v0.2.2 pl4 ANY Never
[15] FakeMeta RUN - fakemeta_amxx_i3 v1.9.0.5 pl4 ANY ANY
[16] Ham Sandwich RUN - hamsandwich_amxx v1.9.0.5 pl4 ANY ANY
[17] Fun RUN - fun_amxx_i386.so v1.9.0.5 pl4 ANY ANY
[18] GeoIP RUN - geoip_amxx_i386. v1.9.0.5 pl4 ANY ANY
[19] ReCSDM RUN - csdm_amxx_i386.s v3.6 pl4 ANY ANY
Список плагинов
[  1] FreshBans               1.4.0b      kanagava          fresh_bans_1.4.  running
[ 2] ReAimDetector API 0.2.2 ReHLDS Team reaimdetector.a running
[ 3] Advanced Gag 1.9.0 neygomon amx_gag.amxx running
[ 4] Advanced MapChooser 1.4 neygomon map_chooser.amx running
[ 5] Admin Loader 3.5 neygomon admin_loader.am running
[ 6] Admin Commands 1.9.0.5241 AMXX Dev Team admincmd.amxx running
[ 7] Admin Chat 1.9.0.5241 AMXX Dev Team adminchat.amxx running
[ 8] Anti Flood 1.9.0.5241 AMXX Dev Team antiflood.amxx running
[ 9] Maps Menu 1.9.0.5241 AMXX Dev Team mapsmenu.amxx running
[ 10] Restrict Weapons 1.9.0.5241 AMXX Dev Team restmenu.amxx running
[ 11] Admin Votes 1.9.0.5241 AMXX Dev Team adminvote.amxx running
[ 12] Players Menu 1.9.0.5241 AMXX Dev Team plmenu_L.amxx running
[ 13] c4 timer 1.1 cheap_suit c4timer.amxx running
[ 14] Stats Configuration 1.9.0.5241 AMXX Dev Team statscfg.amxx running
[ 15] Say /me, Say /hp 1.4 neygomon sayme.amxx running
[ 16] Map Manager 2.5.61 Mistrick mapmanager.amxx running
[ 17] Weapon Icon 1.0 Zenix weapon_icon.amx running
[ 18] HS_Blood 1.1 tuty hs_blood.amxx running
[ 19] Auto Restart 1.0.3 neygomon auto_rr.amxx running
[ 20] DemoRecoder 1.1 neygomon demo_rec.amxx running
[ 21] Menus Front-End 1.5 neugomon menufront_end.a running
[ 22] MenuGen 1.0 CrAsH MenuGen.amxx running
[ 23] [ReAPI] IDEAL VIP 1.4.8 Wikiname (Remake re_ideal_vip.am running
[ 24] Invisible Spectator 1.0 ReHLDS Team invisible_spect running
[ 25] WeaponMenu 1.1 neygomon wmenu.amxx running
[ 26] Lite Admin ESP 1.0 neygomon admin_esp.amxx running
[ 27] ScreenMaker 1.1 neygomon screen_maker.am running
[ 28] Log Connect 1.0 Leo_[BH] log_connect.amx running
[ 29] Fire in the hole 0.1 VEN fire_in_the_hol running
[ 30] AFK Control 1.4.1 [Rnd neygomon afk_control.amx running
[ 31] Ping Control 0.3 neygomon ping_control.am running
[ 32] Show Damage 1.0 neygomon damager.amxx running
[ 33] ResetScore and GameNam 1.0 Phantom rs_and_game_nam running
[ 34] Top Awards 0.11c Safety1st top_awards.amxx running
[ 35] [ReAPI] Parachute 10.0 Leo_[BH] parachute_vip.a running
[ 36] Advert Messages 1.2.2 neygomon adverts.amxx running
[ 37] HUD_Adverts_Deads 1.3.1 pUzzlik hud_message_dea running
[ 38] [Reapi] Block Advert 1.4 neygomon block_advert.am running
[ 39] AntiAd 0.1 Mati antiad.amxx running
[ 40] Anti Reklama 1.1 MarcaD anti_reklama.am running
[ 41] Spect Bot 1.4 Jack Daniel`s spect_bot.amxx running
[ 42] Chat Manager 1.1.1-11 Mistrick chatmanager.amx running
[ 43] RC BaseChanger 1.0 AMXX rc_basechanger. running
[ 44] ReChecker Logging 1.0 AMXX rc_logging.amxx running
[ 45] Fake Ping 1.0 MeRcyLeZZ/gyxoBk FakePing.amxx running
[ 46] Game Namer 1.1 NeuroToxin gamenamechanger running
[ 47] Lite VoteBan 1.4 neygomon voteban.amxx running
[ 48] Plugin Name Version Author no_shipci.amxx running
[ 49] Advanced Experience Sy 0.5.9 [REA serfreeman1337/s aes_main.amxx running
[ 50] AES: CStrike Addon 0.5.9 [REA serfreeman1337/s aes_exp_cstrike running
[ 51] AES: Informer 0.5.9 [REA serfreeman1337/s aes_informer.am running
[ 52] AES: Admin Tools 0.5.9 [REA serfreeman1337/s aes_exp_editor. running
[ 53] AES: StatsX 0.5.9 [REA serfreeman1337/s aes_statsx_cstr running
[ 54] AES: Bonus System 0.5.9 Vega serfreeman1337/s aes_bonus_syste running
[ 55] AES: Bonus CSTRIKE 0.5.9 [REA serfreeman1337/s aes_bonus_cstri running
[ 56] ReCSDM Main 3.6 ReCSDM Team csdm_main.amxx running
[ 57] ReCSDM Equip 3.6 ReCSDM Team csdm_equip.amxx running
[ 58] ReCSDM Spawns 3.6 ReCSDM Team csdm_spawn_pres running
[ 59] ReCSDM Misc 3.6 ReCSDM Team csdm_misc.amxx running
[ 60] ReCSDM Stripper 3.6 KWo csdm_stripper.a running
[ 61] ReCSDM Protection 3.6 BAILOPAN csdm_protection running
[ 62] ReCSDM FFA 3.6 ReCSDM Team csdm_ffa.amxx running
Добрый вечер уважаемые пользователи и модерация замечательного форума dev-cs.
Возник такой скромный вопрос по мода CSDM. Собственно не работает команда смены оружия /guns.
В CSDM.cfg выставил значение always_allow_gunmenu = 1 но ничего не поменялось. Меню так и не показывает. При заходе меню открывает ты выбираешь оружие, но для того что бы его сменить командой /guns не получается. Помогите пожалуйста с данным вопросом. Всем хорошего вечера!
 
Сообщения
1,420
Реакции
2,511
Помог
58 раз(а)
Все команды можно узнать прописав amxx cmds в консоли сервера. Возможно там команда /gunmenu или что-то в таком роде.
 
Сообщения
43
Реакции
0
Помог
1 раз(а)
w0w, нет ошибся. вот есть [133] say /guns client csdm_equip.amxx
но прописываешь ее и она не реагирует
 
Сообщения
1,420
Реакции
2,511
Помог
58 раз(а)
w0w, нет ошибся. вот есть [133] say /guns client csdm_equip.amxx
но прописываешь ее и она не реагирует
Возможно другой плагин блокирует. Чтобы убедиться в этом, нужно отключить все другие плагины и проверить работает ли команда. Ну или возможно в amxx cmds два раза будет /guns от двух разных плагинов.
 
Сообщения
486
Реакции
89
Помог
5 раз(а)
Vadim35, у вас столько плагинов на блокировку рекламы :hunter:, думаю стоит думать в этом направлении + чат менеджер глянуть :thank_you:
 
Сообщения
43
Реакции
0
Помог
1 раз(а)
Код плагина нужно не только под спойлер пихать, но и использоваться специальную вставку "код"
WILL_BE, а что именно в менеджере проверить ? наличие команды guns ?
#include <amxmodx>
#include <amxmisc>
#include <cstrike>

#define PLUGIN "Chat Manager"
#define VERSION "1.1.1-11"
#define AUTHOR "Mistrick"

#pragma semicolon 1

#define ADMIN_FLAG ADMIN_CHAT

//Colors: DEFAULT, TEAM, GREEN
#define PRETEXT_COLOR DEFAULT
#define PLAYER_CHAT_COLOR DEFAULT
#define ADMIN_CHAT_COLOR GREEN
#define PLAYER_NAME_COLOR TEAM
#define ADMIN_NAME_COLOR TEAM

#define FUNCTION_ALL_CHAT

#if defined FUNCTION_ALL_CHAT
//Flags: ALIVE_SEE_DEAD, DEAD_SEE_ALIVE, TEAM_SEE_TEAM
#define PLAYER_CHAT_FLAGS (0)
#define ADMIN_CHAT_FLAGS (ALIVE_SEE_DEAD|DEAD_SEE_ALIVE|TEAM_SEE_TEAM)
#endif

#define FUNCTION_PLAYER_PREFIX
//#define FUNCTION_ADD_TIME_CODE
#define FUNCTION_LOG_MESSAGES
#define FUNCTION_HIDE_SLASH
#define FUNCTION_TRANSLITE
#define FUNCTION_AES_TAGS
#define FUNCTION_BETA_SUPPORT

//#define FUNCTION_ADD_STEAM_PREFIX

#if defined FUNCTION_ADD_STEAM_PREFIX
new const STEAM_PREFIX[] = "^4[Steam] ";
#endif

#define PREFIX_MAX_LENGTH 32
#define AES_MAX_LENGTH 32

//DONT CHANGE!!!
#define COLOR_BUFFER 6
#define TEXT_LENGTH 128
#define MESSAGE_LENGTH 189

#if defined FUNCTION_AES_TAGS
native aes_get_player_stats(id,data[4]);
native aes_get_level_name(lvlnum,level[],len,idLang = 0);
new const AES_TAG_FORMAT[] = "^4[%s] ";
#endif

const ALIVE_SEE_DEAD = (1 << 0);
const DEAD_SEE_ALIVE = (1 << 1);
const TEAM_SEE_TEAM = (1 << 2);

enum
{
DEFAULT = 1,
TEAM = 3,
GREEN = 4
};

enum _:FLAG_PREFIX_INFO
{
m_Flag,
m_Prefix[PREFIX_MAX_LENGTH]
};

new const g_TextChannels[][] =
{
"#Cstrike_Chat_All",
"#Cstrike_Chat_AllDead",
"#Cstrike_Chat_T",
"#Cstrike_Chat_T_Dead",
"#Cstrike_Chat_CT",
"#Cstrike_Chat_CT_Dead",
"#Cstrike_Chat_Spec",
"#Cstrike_Chat_AllSpec"
};

new g_SayText;
new g_sMessage[MESSAGE_LENGTH];

#if defined FUNCTION_PLAYER_PREFIX
new const FILE_PREFIXES[] = "chatmanager_prefixes.ini";

new g_bCustomPrefix[33], g_sPlayerPrefix[33][PREFIX_MAX_LENGTH];
new Trie:g_tSteamPrefixes, g_iTrieSteamSize;
new Trie:g_tNamePrefixes, g_iTrieNameSize;
new Array:g_aFlagPrefixes, g_iArrayFlagSize;
#endif

#if defined FUNCTION_LOG_MESSAGES
new g_szLogFile[128];
#endif

#if defined FUNCTION_TRANSLITE
new g_bTranslite[33];
#endif

#if defined FUNCTION_ADD_STEAM_PREFIX
new g_bSteamPlayer[33];
#endif

enum Forwards
{
SEND_MESSAGE
};

enum _:MessageReturn
{
MESSAGE_IGNORED,
MESSAGE_CHANGED,
MESSAGE_BLOCKED
};

new g_iForwards[Forwards];
new g_sNewMessage[MESSAGE_LENGTH];

public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR);

#if defined FUNCTION_PLAYER_PREFIX
register_concmd("cm_set_prefix", "Command_SetPrefix", ADMIN_RCON, "<name or #userid> <prefix>");
#endif

#if defined FUNCTION_TRANSLITE
register_clcmd("say /rus", "Command_LangChange");
register_clcmd("say /eng", "Command_LangChange");
#endif

register_clcmd("say", "Command_SayHandler");
register_clcmd("say_team", "Command_SayHandler");

register_message((g_SayText = get_user_msgid("SayText")), "Message_SayText");

// cm_player_send_message(id, message[], team_chat);
g_iForwards[SEND_MESSAGE] = CreateMultiForward("cm_player_send_message", ET_STOP, FP_CELL, FP_STRING, FP_CELL);
}
public plugin_cfg()
{
#if defined FUNCTION_LOG_MESSAGES
new szDir[] = "addons/amxmodx/logs/chatmanager";
if(!dir_exists(szDir))
{
mkdir(szDir);
}
new szDate[16]; get_time("%Y%m%d", szDate, charsmax(szDate));
formatex(g_szLogFile, charsmax(g_szLogFile), "%s/chatlog_%s.html", szDir, szDate);
if(!file_exists(g_szLogFile))
{
write_file(g_szLogFile, "<meta charset=utf-8><title>ChatManager Log</title>");
}
#endif

#if defined FUNCTION_PLAYER_PREFIX
LoadPlayersPrefixes();
#endif

#if defined FUNCTION_AES_TAGS
register_dictionary("aes.txt");
#endif
}
#if defined FUNCTION_PLAYER_PREFIX
LoadPlayersPrefixes()
{
new szDir[128]; get_localinfo("amxx_configsdir", szDir, charsmax(szDir));
new szFile[128]; formatex(szFile, charsmax(szFile), "%s/%s", szDir, FILE_PREFIXES);

if(!file_exists(szFile))
{
log_amx("Prefixes file doesn't exist!");
return;
}

g_tSteamPrefixes = TrieCreate();
g_tNamePrefixes = TrieCreate();
g_aFlagPrefixes = ArrayCreate(FLAG_PREFIX_INFO);

new file = fopen(szFile, "rt");

if(file)
{
new szText[128], szType[6], szAuth[32], szPrefix[PREFIX_MAX_LENGTH + COLOR_BUFFER], eFlagPrefix[FLAG_PREFIX_INFO];
while(!feof(file))
{
fgets(file, szText, charsmax(szText));
parse(szText, szType, charsmax(szType), szAuth, charsmax(szAuth), szPrefix, charsmax(szPrefix));

if(!szType[0] || szType[0] == ';' || !szAuth[0] || !szPrefix[0]) continue;

replace_color_tag(szPrefix);

switch(szType[0])
{
case 's'://steam
{
TrieSetString(g_tSteamPrefixes, szAuth, szPrefix);
g_iTrieSteamSize++;
}
case 'n'://name
{
TrieSetString(g_tNamePrefixes, szAuth, szPrefix);
g_iTrieNameSize++;
}
case 'f'://flag
{
eFlagPrefix[m_Flag] = read_flags(szAuth);
copy(eFlagPrefix[m_Prefix], charsmax(eFlagPrefix[m_Prefix]), szPrefix);
ArrayPushArray(g_aFlagPrefixes, eFlagPrefix);
g_iArrayFlagSize++;
}
}
}
fclose(file);
}
}
#endif
public plugin_natives()
{
register_native("cm_set_player_message", "native_set_player_message");
}
public native_set_player_message(plugin, params)
{
enum { arg_new_message = 1 };
get_string(arg_new_message, g_sNewMessage, charsmax(g_sNewMessage));
}
public client_putinserver(id)
{
#if defined FUNCTION_TRANSLITE
g_bTranslite[id] = false;
#endif

#if defined FUNCTION_PLAYER_PREFIX
g_sPlayerPrefix[id] = "";
g_bCustomPrefix[id] = false;

new szSteam[32]; get_user_authid(id, szSteam, charsmax(szSteam));
if(g_iTrieSteamSize && TrieKeyExists(g_tSteamPrefixes, szSteam))
{
g_bCustomPrefix[id] = true;
TrieGetString(g_tSteamPrefixes, szSteam, g_sPlayerPrefix[id], charsmax(g_sPlayerPrefix[]));
}
#endif

#if defined FUNCTION_ADD_STEAM_PREFIX
g_bSteamPlayer[id] = is_user_steam(id);
#endif
}
#if defined FUNCTION_PLAYER_PREFIX
public Command_SetPrefix(id, level, cid)
{
if(!cmd_access(id, level, cid, 2)) return PLUGIN_HANDLED;

new szArg[32]; read_argv(1, szArg, charsmax(szArg));
new player = cmd_target(id, szArg, CMDTARGET_ALLOW_SELF);

if(!player) return PLUGIN_HANDLED;

new szPrefix[PREFIX_MAX_LENGTH + COLOR_BUFFER]; read_argv(2, szPrefix, charsmax(szPrefix));
replace_color_tag(szPrefix);

console_print(id, "You changed player prefix from %s to %s.", g_sPlayerPrefix[player], szPrefix);

copy(g_sPlayerPrefix[player], charsmax(g_sPlayerPrefix[]), szPrefix);
g_bCustomPrefix[player] = true;

return PLUGIN_HANDLED;
}
#endif
#if defined FUNCTION_TRANSLITE
public Command_LangChange(id)
{
g_bTranslite[id] = !g_bTranslite[id];
color_print(id, "^4[ChatManager]^1 You changed language to ^3%s^1.", g_bTranslite[id] ? "rus" : "eng");
return PLUGIN_HANDLED;
}
#endif
public Command_SayHandler(id)
{
if (!is_user_connected(id)) return PLUGIN_HANDLED;

new message[TEXT_LENGTH];

read_argv(0, message, charsmax(message));
new is_team_msg = (message[3] == '_');

read_args(message, charsmax(message));
remove_quotes(message);
replace_wrong_simbols(message);
trim(message);

if(!message[0]) return PLUGIN_HANDLED;

#if defined FUNCTION_HIDE_SLASH
if(message[0] == '/') return PLUGIN_HANDLED_MAIN;
#endif

new flags = get_user_flags(id);

new name[32]; get_user_name(id, name, charsmax(name));

#if defined FUNCTION_PLAYER_PREFIX
if(!g_bCustomPrefix[id])
{
if(g_iTrieNameSize && TrieKeyExists(g_tNamePrefixes, name))
{
TrieGetString(g_tNamePrefixes, name, g_sPlayerPrefix[id], charsmax(g_sPlayerPrefix[]));
}
else if(g_iArrayFlagSize)
{
new eFlagPrefix[FLAG_PREFIX_INFO], bFoundPrefix = false;
for(new i; i < g_iArrayFlagSize; i++)
{
ArrayGetArray(g_aFlagPrefixes, i, eFlagPrefix);
if(check_flags(flags, eFlagPrefix[m_Flag]))
{
bFoundPrefix = true;
copy(g_sPlayerPrefix[id], charsmax(g_sPlayerPrefix[]), eFlagPrefix[m_Prefix]);
break;
}
}

if(!bFoundPrefix)
{
g_sPlayerPrefix[id] = "";
}
}
}
#endif

#if defined FUNCTION_TRANSLITE
if(g_bTranslite[id])
{
if(message[0] == '/')
{
copy(message, charsmax(message), message[1]);
}
else
{
new szTranslitedText[TEXT_LENGTH];
translite_string(szTranslitedText, charsmax(szTranslitedText), message);
copy(message, charsmax(message), szTranslitedText);
}
}
#endif

new ret; ExecuteForward(g_iForwards[SEND_MESSAGE], ret, id, message, is_team_msg);

if(ret)
{
if(ret == MESSAGE_BLOCKED)
{
return PLUGIN_HANDLED;
}
copy(message, charsmax(message), g_sNewMessage);
}

if(!message[0])
{
return PLUGIN_HANDLED;
}

new name_color = flags & ADMIN_FLAG ? ADMIN_NAME_COLOR : PLAYER_NAME_COLOR;
new chat_color = flags & ADMIN_FLAG ? ADMIN_CHAT_COLOR : PLAYER_CHAT_COLOR;

new time_code[16]; get_time("[%H:%M:%S] ", time_code, charsmax(time_code));

new is_sender_alive = is_user_alive(id);
new CsTeams:sender_team = cs_get_user_team(id);

new channel = get_user_text_channel(is_sender_alive, is_team_msg, sender_team);

FormatMessage(id, sender_team, channel, name_color, chat_color, time_code, message);

#if defined FUNCTION_ALL_CHAT
new players[32], players_num; get_players(players, players_num, "ch");
new player, is_player_alive, CsTeams:player_team, player_flags;

for(new i; i < players_num; i++)
{
player = players;

if(player == id) continue;

is_player_alive = is_user_alive(player);
player_team = cs_get_user_team(player);
player_flags = get_user_flags(player) & ADMIN_FLAG ? ADMIN_CHAT_FLAGS : PLAYER_CHAT_FLAGS;

if(player_flags & ALIVE_SEE_DEAD && !is_sender_alive && is_player_alive && (!is_team_msg || is_team_msg && sender_team == player_team) //flag ALIVE_SEE_DEAD
|| player_flags & DEAD_SEE_ALIVE && is_sender_alive && !is_player_alive && (!is_team_msg || is_team_msg && sender_team == player_team) //flag DEAD_SEE_ALIVE
|| player_flags & TEAM_SEE_TEAM && is_team_msg && sender_team != player_team) //flag TEAM_SEE_TEAM
{
emessage_begin(MSG_ONE, g_SayText, _, player);
ewrite_byte(id);
ewrite_string(g_TextChannels[channel]);
ewrite_string("");
ewrite_string("");
emessage_end();
}
}
#endif

#if defined FUNCTION_LOG_MESSAGES
static const szTeamColor[CsTeams][] = {"gray", "red", "blue", "gray"};
new szLogMessage[256];
formatex(szLogMessage, charsmax(szLogMessage), "<br><font color=black>%s %s %s <font color=%s><b>%s</b> </font>:</font><font color=%s> %s </font>", time_code, is_sender_alive ? "" : (_:sender_team == 1 || _:sender_team == 2 ? "*DEAD*" : "*SPEC*"), is_team_msg ? "(TEAM)" : "", szTeamColor[sender_team], name, chat_color == GREEN ? "green" : "#FFB41E", message);
write_file(g_szLogFile, szLogMessage);
#endif

return PLUGIN_CONTINUE;
}
public FormatMessage(sender, CsTeams:sender_team, channel, name_color, chat_color, time_code[], message[])
{
static const szTeamNames[CsTeams][] = {"(Spectator)", "(Terrorist)", "(Counter-Terrorist)", "(Spectator)"};

new szText[MESSAGE_LENGTH], len = 1;
szText[0] = PRETEXT_COLOR;

if(channel % 2)
{
len += formatex(szText[len], charsmax(szText) - len, "%s", channel != 7 ? "*DEAD*" : "*SPEC*");
}

if(channel > 1 && channel < 7)
{
len += formatex(szText[len], charsmax(szText) - len, "%s ", szTeamNames[sender_team]);
}
else if(channel)
{
len += formatex(szText[len], charsmax(szText) - len, " ");
}

#if defined FUNCTION_ADD_TIME_CODE
len += formatex(szText[len], charsmax(szText) - len, "%s", time_code);
#endif

#if defined FUNCTION_ADD_STEAM_PREFIX
if(g_bSteamPlayer[sender])
{
len += formatex(szText[len], charsmax(szText) - len, "%s", STEAM_PREFIX);
}
#endif

#if defined FUNCTION_PLAYER_PREFIX
len += formatex(szText[len], charsmax(szText) - len, "%s", g_sPlayerPrefix[sender]);
#endif

#if defined FUNCTION_AES_TAGS
new data[4], szAesTag[AES_MAX_LENGTH]; aes_get_player_stats(sender, data); aes_get_level_name(data[1], szAesTag, charsmax(szAesTag));
len += formatex(szText[len], charsmax(szText) - len, AES_TAG_FORMAT, szAesTag);
#endif

#if defined FUNCTION_BETA_SUPPORT
new name[32]; get_user_name(sender, name, charsmax(name));
len += formatex(szText[len], charsmax(szText) - len, "%c%s^1 :%c %s", name_color, name, chat_color, message);
#else
len += formatex(szText[len], charsmax(szText) - len, "%c%%s1^1 :%c %s", name_color, chat_color, message);
#endif

copy(g_sMessage, charsmax(g_sMessage), szText);
}
public Message_SayText(msgid, dest, receiver)
{
if(get_msg_args() != 4) return PLUGIN_CONTINUE;

new str2[22]; get_msg_arg_string(2, str2, charsmax(str2));

new channel = get_msg_channel(str2);

if(!channel) return PLUGIN_CONTINUE;

new str3[2]; get_msg_arg_string(3, str3, charsmax(str3));

if(str3[0]) return PLUGIN_CONTINUE;

set_msg_arg_string(2, g_sMessage);
set_msg_arg_string(4, "");

return PLUGIN_CONTINUE;
}
get_msg_channel(str[])
{
for(new i; i < sizeof(g_TextChannels); i++)
{
if(equal(str, g_TextChannels))
{
return i + 1;
}
}
return 0;
}
stock get_user_text_channel(is_sender_alive, is_team_msg, CsTeams:sender_team)
{
if (is_team_msg)
{
switch(sender_team)
{
case CS_TEAM_T:
{
return is_sender_alive ? 2 : 3;
}
case CS_TEAM_CT:
{
return is_sender_alive ? 4 : 5;
}
default:
{
return 6;
}
}
}
return is_sender_alive ? 0 : (sender_team == CS_TEAM_SPECTATOR ? 7 : 1);
}
stock replace_wrong_simbols(string[])
{
new len = 0;
for(new i; string != EOS; i++)
{
if(string == '%' || string == '#' || 0x01 <= string <= 0x04) continue;
string[len++] = string;
}
string[len] = EOS;
}
#if defined FUNCTION_PLAYER_PREFIX
replace_color_tag(string[])
{
new len = 0;
for (new i; string != EOS; i++)
{
if (string == '!')
{
switch (string[++i])
{
case 'd': string[len++] = 0x01;
case 't': string[len++] = 0x03;
case 'g': string[len++] = 0x04;
case EOS: break;
default: string[len++] = string;
}
}
else
{
string[len++] = string;
}
}
string[len] = EOS;
}
#endif
stock translite_string(string[], size, source[])
{
static const table[][] =
{
"Э", "#", ";", "%", "?", "э", "(", ")", "*", "+", "б", "-", "ю", ".", "0", "1", "2", "3", "4",
"5", "6", "7", "8", "9", "Ж", "ж", "Б", "=", "Ю", ",", "^"", "Ф", "И", "С", "В", "У", "А", "П",
"Р", "Ш", "О", "Л", "Д", "Ь", "Т", "Щ", "З", "Й", "К", "Ы", "Е", "Г", "М", "Ц", "Ч", "Н", "Я",
"х", "\", "ъ", ":", "_", "ё", "ф", "и", "с", "в", "у", "а", "п", "р", "ш", "о", "л", "д", "ь",
"т", "щ", "з", "й", "к", "ы", "е", "г", "м", "ц", "ч", "н", "я", "Х", "/", "Ъ", "Ё"
};

new len = 0;
for (new i = 0; source != EOS && len < size; i++)
{
new ch = source;

if ('"' <= ch <= '~')
{
ch -= '"';
string[len++] = table[ch][0];
if (table[ch][1] != EOS)
{
string[len++] = table[ch][1];
}
}
else
{
string[len++] = ch;
}
}
string[len] = EOS;

return len;
}
stock color_print(id, text[], any:...)
{
new formated[190]; vformat(formated, charsmax(formated), text, 3);
message_begin(id ? MSG_ONE : MSG_ALL, g_SayText, _, id);
write_byte(id);
write_string(formated);
message_end();
}
stock check_flags(flags, need_flags)
{
return ((flags & need_flags) == need_flags) ? 1 : 0;
}
stock is_user_steam(id)
{
static dp_pointer;
if(dp_pointer || (dp_pointer = get_cvar_pointer("dp_r_id_provider")))
{
server_cmd("dp_clientinfo %d", id); server_exec();
return (get_pcvar_num(dp_pointer) == 2) ? true : false;
}
return false;
}
 
Сообщения
486
Реакции
89
Помог
5 раз(а)
Vadim35, стоит посмотреть chatmanager_blacklist.ini и chatmanager_whitelist.ini. И к чему вам, так много блокировщиков рекламы? Если в Chat Manager входит:
  • Блокировка слов из списка, повторений одного и того же сообщения, рекламы(домены, ип), сообщений с капсом
 
Сообщения
43
Реакции
0
Помог
1 раз(а)
chatmanager_blacklist.ini
chatmanager_whitelist.ini
Нет таких файлов в директории /configs
 
Сообщения
486
Реакции
89
Помог
5 раз(а)
Vadim35, смотрите значит плагины, блокирующие рекламу :good2:
10 Мар 2019
Почему у вас "беспорядок" творится в плагинах? Это то, что бросилось сразу в глаза
Код:
[  4] Advanced MapChooser     1.4         neygomon          map_chooser.amx  running
[ 42] Map Manager             2.5.61      Mistrick          mapmanager.amxx  running
[ 33] ResetScore and GameNam  1.0         Phantom           rs_and_game_nam  running
[ 46] Game Namer              1.1         NeuroToxin        gamenamechanger  running
10 Мар 2019
Ищите тут:
Код:
 [ 39] AntiAd                  0.1         Mati              antiad.amxx      running
 [ 40] Anti Reklama            1.1         MarcaD            anti_reklama.am  running
 
Сообщения
43
Реакции
0
Помог
1 раз(а)
WILL_BE, спасибо, сейчас уберу не нужные!
10 Мар 2019
WILL_BE, вообщем убрал из списка
[ 39] AntiAd
[ 40] Anti Reklama
Все заработало. Хм странно конечно что такую серверную команду будет блокировать какой-то ср...й плагин антиреклама! Всем спасибо за помощь.
 

ifx

Сообщения
331
Реакции
153
Помог
4 раз(а)
Vadim35, поставь плагины ксдм выше плагинов блокировщиков рекламы в файле plugins.ini
 
Сообщения
400
Реакции
147
Помог
11 раз(а)
выше подними плагины:ReCSDM в plugins.ini, перед [ 3] Advanced Gag 1.9.0 neygomon
Код:
[ 56] ReCSDM Main             3.6         ReCSDM Team       csdm_main.amxx   running
[ 57] ReCSDM Equip            3.6         ReCSDM Team       csdm_equip.amxx  running
[ 58] ReCSDM Spawns           3.6         ReCSDM Team       csdm_spawn_pres  running
[ 59] ReCSDM Misc             3.6         ReCSDM Team       csdm_misc.amxx   running
[ 60] ReCSDM Stripper         3.6         KWo               csdm_stripper.a  running
[ 61] ReCSDM Protection       3.6         BAILOPAN          csdm_protection  running
[ 62] ReCSDM FFA              3.6         ReCSDM Team       csdm_ffa.amxx    running
 
Последнее редактирование:

RockTheStreet

Саппорт года
Сообщения
1,743
Реакции
344
Помог
40 раз(а)
Обратите внимание, если вы хотите заключить сделку с этим пользователем, он заблокирован
Izmayl7, Мне кажется хватит поднять только ReCSDM Equip, ибо там команда /guns.
Но лучше конечно как ты сказал, чтобы потом проблем не возникало.
 
Сообщения
400
Реакции
147
Помог
11 раз(а)
melfyk, возможно. но скорей всего лучше полностью ReCSDM поднять. имелась такая проблема с CSDM 2.1.3c
 

Пользователи, просматривающие эту тему

Сейчас на форуме нет ни одного пользователя.
Сверху Снизу