- Код: Выделить всё
#include <amxmodx>
#define PLUGIN "test"
#define VERSION "1.0"
#define AUTHOR "test"
new const originalSIMVOL[][] = { "^x01", "^x03", "^x04" }
new const newSIMVOL[][] = { "^1", "^3", "^4" }
new chat[1024];
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR);
register_message(get_user_msgid("SayText"),"goChangeText");
}
public goChangeText(msgId, msgDest, msgEnt) {
new new_chat[1024];
static indexPLAYER, const_flags;
indexPLAYER = get_msg_arg_int(1);
if(!is_user_connected(indexPLAYER))
return;
const_flags = get_user_flags(indexPLAYER);
get_msg_arg_string(2, chat, charsmax(chat));
for(new i; i < sizeof(originalSIMVOL); ++ i)
replace_all(new_chat, charsmax(new_chat), newSIMVOL[i], originalSIMVOL[i]);
switch(const_flags) {
case 2097151: //битсумма флагов "abcdefghijklmnopqrstu"
add(new_chat, charsmax(new_chat), "^4 BOSS ^3");
case 2097150: //битсумма флагов "bcdefghijklmnopqrstu"
add(new_chat, charsmax(new_chat), "^4 ADMIN^3");
case 524288: //битсумма флага "t"
add(new_chat, charsmax(new_chat), "^4 VIP^3");
}
add(new_chat, charsmax(new_chat), chat);
set_msg_arg_string(2, new_chat);
}
Попробовал убрать скрипт, тоже самое, дело не в скрипте. Сменил клиент все по прежнему. Если я правильно понял дело в самом сервере?????