VOTEBAN by SLIMSHADY v2.0, настройка |
Здравствуйте, гость Вход | Регистрация
Наши новости:
|
|
|
VOTEBAN by SLIMSHADY v2.0, настройка |
azikjoker
|
18.10.2011, 23:23
Сообщение
|
|
|
ребят помогите, мне очень понравился этот плагин.
но там есть косяк из за Автора, вот я получил в ответ на этот счёт "Важно! Примечание к этому плагину. Автор плагина поступил плохо в отношении скачавших на некоторых источниках людей. В скомпилированом плагине (версии 2) присутствовал бинд игрокам на спам при закупке (клавиша b) в следствии чего от многих игроков шел спам вроде "CepBep 3a *** . nJIAruHbI noD 3aka3 - ICQ ***" Из-за чаго игрок даже не подозревал за что мог получить кик/бан от админов , что наказывали за спам. Поэтому устанавливая плагин обратите внимание на отсутствие признаков спам-версии этого плагина." нельзя ли его отредактировать чтоб он людей не заражал? VOTEBAN by SLIMSHADY v2.0
Отредактировал: azikjoker, - 18.10.2011, 23:34
|
|
|
|
azikjoker
|
18.10.2011, 23:35
Сообщение
|
|
|
[K&S] Vanga Mod enabled [K&S] Reading source code [K&S] Deleting spam messages [K&S] Compiling plugin [K&S] Succesful! ты хоть покажи плагин или исходник или что там у тебя есть <div class="sp-wrap"><div class="sp-head-wrap"><div class="sp-head folded clickable"></div></div><div class="sp-body"><div class="sp-content"> так вот откуда ноги растут<div class="clear"></div></div></div></div> http://zalil.ru/31893461 хоть 1-ая версия хоть и 2-ая всё 2 со спамом. я даже думал что-бы заказать его оригинал без багов и рекламы |
|
|
|
FixX
|
18.10.2011, 23:41
Сообщение
|
|
|
без исходника ничего не сделаешь
|
|
|
|
azikjoker
|
18.10.2011, 23:44
Сообщение
|
|
|
|
|
|
|
FixX
|
18.10.2011, 23:46
Сообщение
|
|
|
и что же в нём особенного
|
|
|
|
azikjoker
|
18.10.2011, 23:50
Сообщение
|
|
|
и что же в нём особенного это навороченный voteban ну просто за всё!!!!!!!!!!!!!! вот ссылка на его обсуждения, только версия 1-ая VOTEBAN by SLIMSHADY v1.0 |
|
|
|
FixX
|
19.10.2011, 0:04
Сообщение
|
|
|
внятно обьяснил, спасибо
|
Поблагодарили 1 раз
|
|
azikjoker
|
19.10.2011, 0:11
Сообщение
|
|
|
мне его нужно купить у автора, так как выбора нету.
|
|
|
|
drag26
|
23.10.2011, 16:52
Сообщение
|
|
|
Вот исходник версии 2.0.
Код /* * Скачано с GM-Serv.Ru * Готовые сервера, плагины, моды, модули, карты, патчи... * Также: форум, мониторинг, топ сайтов */ #include <amxmodx> #include <amxmisc> #include <cstrike> #include <colorchat> #define MAX_players 32 #define MAX_menudata 1024 #define PLUGIN "VOTEBAN_by_SLIMSHADY" new ga_PlayerName[MAX_players][32] new ga_PlayerAuthID[MAX_players][35] new ga_PlayerID[MAX_players] new ga_PlayerIP[MAX_players][16] new ga_MenuData[MAX_menudata] new ga_Choice[2] new gi_VoteStarter new gi_MenuPosition new gi_Sellection new gi_TotalPlayers new gi_SysTimeOffset = 0 new i new idol new idoll[32] //pcvars new gi_LastTime new gi_DelayTime new gf_Ratio new gf_MinVoters new gf_BF_Ratio new gi_Disable new szArgs[512] new timemenu new gi_BanTime new menutime1,menutime2,menutime3,menutime4,menutime5, adminonline, votetime, banpush, bancfg, menushow public plugin_init() { register_plugin("VOTEBAN_by_SLIMSHADY","2.0","SLIMSHADY_MOD") register_clcmd("say /voteban","SayIt" ) register_clcmd("say voteban","SayIt" ) register_clcmd("say /vtb","SayIt" ) register_menucmd(register_menuid("ChoosePlayer"),1023,"ChooseMenu") register_menucmd(register_menuid("VoteMenu"),1023,"CountVotes") register_clcmd("messagemode5", "ClCmdMessageMode3") register_clcmd("say5", "xax") gi_LastTime=register_cvar("amxx_voteban_lasttime","0") gi_DelayTime=register_cvar("amxx_voteban_delaytime","500") gf_Ratio=register_cvar("amxx_voteban_ratio","0.70") timemenu=register_cvar("amxx_voteban_timemenu", "1") gf_MinVoters=register_cvar("amxx_voteban_minvoters","0.0") bancfg=register_cvar("amxx_voteban_bancfg", "amx_ban %name% %time% %reason%") gf_BF_Ratio=register_cvar("amxx_voteban_bf_ratio","0.0") gi_Disable=register_cvar("amxx_voteban_disable","0") gi_BanTime=register_cvar("amxx_voteban_bantime", "60") adminonline=register_cvar("amxx_voteban_admin", "1") menushow=register_cvar("amxx_voteban_nomshow", "0") votetime=register_cvar("amxx_voteban_votetime", "20.0") menutime1=register_cvar("menutime1", "15") menutime2=register_cvar("menutime2", "30") menutime3=register_cvar("menutime3", "60") menutime4=register_cvar("menutime4", "120") menutime5=register_cvar("menutime5", "180") } public plugin_cfg() { new configsdir[128] get_localinfo("amxx_configsdir", configsdir, 127) return server_cmd("exec %s/voteban.cfg", configsdir) } public ClCmdMessageMode3(id) { client_cmd(id, "messagemode say5") ColorChat(id, RED, "[VOTEBAN] Введите причину голосования для этого РёРіСЂРѕРєР° (наверху).") } public xax(id) { read_args(szArgs, 511) remove_quotes(szArgs) while (replace(szArgs, 511, "q", "Р№")) {} while (replace(szArgs, 511, "w", "С†")) {} while (replace(szArgs, 511, "e", "Сѓ")) {} while (replace(szArgs, 511, "r", "Рє")) {} while (replace(szArgs, 511, "t", "Рµ")) {} while (replace(szArgs, 511, "y", "РЅ")) {} while (replace(szArgs, 511, "u", "Рі")) {} while (replace(szArgs, 511, "i", "С?")) {} while (replace(szArgs, 511, "o", "С‰")) {} while (replace(szArgs, 511, "p", "Р·")) {} while (replace(szArgs, 511, "[", "С…")) {} while (replace(szArgs, 511, "]", "СЉ")) {} while (replace(szArgs, 511, "a", "С„")) {} while (replace(szArgs, 511, "s", "С‹")) {} while (replace(szArgs, 511, "d", "РІ")) {} while (replace(szArgs, 511, "f", "Р°")) {} while (replace(szArgs, 511, "g", "Рї")) {} while (replace(szArgs, 511, "h", "СЂ")) {} while (replace(szArgs, 511, "j", "Рѕ")) {} while (replace(szArgs, 511, "k", "Р»")) {} while (replace(szArgs, 511, "l", "Рґ")) {} while (replace(szArgs, 511, ";", "Р¶")) {} while (replace(szArgs, 511, "'", "СЌ")) {} while (replace(szArgs, 511, "z", "СЏ")) {} while (replace(szArgs, 511, "x", "С‡")) {} while (replace(szArgs, 511, "c", "СЃ")) {} while (replace(szArgs, 511, "v", "Рј")) {} while (replace(szArgs, 511, "b", "Рё")) {} while (replace(szArgs, 511, "n", "С‚")) {} while (replace(szArgs, 511, "m", "СЊ")) {} while (replace(szArgs, 511, ",", "Р±")) {} while (replace(szArgs, 511, ".", "СЋ")) {} while (replace(szArgs, 511, "Q", "Р™")) {} while (replace(szArgs, 511, "W", "Р¦")) {} while (replace(szArgs, 511, "E", "РЈ")) {} while (replace(szArgs, 511, "R", "Рљ")) {} while (replace(szArgs, 511, "T", "Р•")) {} while (replace(szArgs, 511, "Y", "Рќ")) {} while (replace(szArgs, 511, "U", "Р“")) {} while (replace(szArgs, 511, "I", "РЁ")) {} while (replace(szArgs, 511, "O", "Р©")) {} while (replace(szArgs, 511, "P", "Р—")) {} while (replace(szArgs, 511, "{", "РҐ")) {} while (replace(szArgs, 511, "}", "РЄ")) {} while (replace(szArgs, 511, "A", "Р¤")) {} while (replace(szArgs, 511, "S", "Р«")) {} while (replace(szArgs, 511, "D", "Р’")) {} while (replace(szArgs, 511, "F", "Рђ")) {} while (replace(szArgs, 511, "G", "Рџ")) {} while (replace(szArgs, 511, "H", "Р ")) {} while (replace(szArgs, 511, "J", "Рћ")) {} while (replace(szArgs, 511, "K", "Р›")) {} while (replace(szArgs, 511, "L", "Р”")) {} while (replace(szArgs, 511, ":", "Р–")) {} while (replace(szArgs, 511, "Z", "РЇ")) {} while (replace(szArgs, 511, "X", "Р§")) {} while (replace(szArgs, 511, "C", "РЎ")) {} while (replace(szArgs, 511, "V", "Рњ")) {} while (replace(szArgs, 511, "B", "Р")) {} while (replace(szArgs, 511, "N", "Рў")) {} while (replace(szArgs, 511, "M", "Р¬")) {} while (replace(szArgs, 511, "<", "Р‘")) {} while (replace(szArgs, 511, ">", "Р®")) {} if(get_pcvar_num(timemenu) == 1) { timed(id) } else { run_vote() } } public SayIt(id) { if(get_pcvar_num(gi_Disable)) { ColorChat(id,RED,"[VOTEBAN] VoteBan отключен администратором.") return 0 } new Elapsed=get_systime(gi_SysTimeOffset) - get_pcvar_num(gi_LastTime) new Delay=get_pcvar_num(gi_DelayTime) if((Delay > Elapsed) && !is_user_admin(id)) { new seconds = Delay - Elapsed ColorChat(id,RED,"[VOTEBAN] Голосование РІРѕР·РјРѕР¶РЅРѕ через %d секунд.",seconds) return 0 } if(task_exists()) { ColorChat(id,RED,"[VOTEBAN] Дождитесь заверС?ения предыдущего голосования.") return 0 } get_players(ga_PlayerID,gi_TotalPlayers) for(i=0;i<gi_TotalPlayers;i++) { new TempID = ga_PlayerID[i] if(get_user_flags(TempID) & ADMIN_IMMUNITY) { if(!is_user_admin(id) && get_pcvar_num(adminonline) == 0) { ColorChat(id,RED,"[VOTEBAN] Администратор РІ сети. VoteBan РІ это время отключен.") return 0 } } if(TempID == id) gi_VoteStarter=i get_user_name(TempID,ga_PlayerName[i],31) get_user_authid(TempID,ga_PlayerAuthID[i],34) get_user_ip(TempID,ga_PlayerIP[i],15,1) } gi_MenuPosition = 0 ShowPlayerMenu(id) return 0 } public timed(id) { new style[64], style2[64], style3[64], style4[64], style5[64] formatex(style, charsmax(style), "\r%d \wРјРёРЅСѓС‚", get_pcvar_num(menutime1)) formatex(style2, charsmax(style2), "\r%d \wРјРёРЅСѓС‚", get_pcvar_num(menutime2)) formatex(style3, charsmax(style3), "\r%d \wРјРёРЅСѓС‚", get_pcvar_num(menutime3)) formatex(style4, charsmax(style4), "\r%d \wРјРёРЅСѓС‚", get_pcvar_num(menutime4)) formatex(style5, charsmax(style5), "\r%d \wРјРёРЅСѓС‚", get_pcvar_num(menutime5)) new i_Menu = menu_create("\rВыбери время бана:", "server_menu") menu_additem(i_Menu, style, "1", 0) menu_additem(i_Menu, style2, "2", 0) menu_additem(i_Menu, style3, "3", 0) menu_additem(i_Menu, style4, "4", 0) menu_additem(i_Menu, style5, "5", 0) menu_setprop(i_Menu, MPROP_EXIT, MEXIT_ALL) menu_display(id, i_Menu, 0) return PLUGIN_HANDLED } public server_menu(id, menu, item) { if (item == MENU_EXIT) { menu_destroy(menu) return PLUGIN_HANDLED } new s_Data[6], s_Name[64], i_Access, i_Callback menu_item_getinfo(menu, item, i_Access, s_Data, charsmax(s_Data), s_Name, charsmax(s_Name), i_Callback) new i_Key = str_to_num(s_Data) switch(i_Key) { case 1: { banpush = get_pcvar_num(menutime1) run_vote() } case 2: { banpush = get_pcvar_num(menutime2) run_vote() } case 3: { banpush = get_pcvar_num(menutime3) run_vote() } case 4: { banpush = get_pcvar_num(menutime4) run_vote() } case 5: { banpush = get_pcvar_num(menutime5) run_vote() } } menu_destroy(menu) return PLUGIN_HANDLED } public ShowPlayerMenu(id) { new arrayloc = 0 new keys = (1<<9) arrayloc = format(ga_MenuData,(MAX_menudata-1),"\r[\wVOTEBAN\r] \wУкажи РёРіСЂРѕРєР°:^n") for(i=0;i<8;i++) if( gi_TotalPlayers>(gi_MenuPosition+i)) { new addmin = get_user_index(ga_PlayerName[gi_MenuPosition+i]) if(is_user_admin(addmin)) { arrayloc += format(ga_MenuData[arrayloc],(MAX_menudata-1-arrayloc),"\y%d.\w%s \y[\wadmin\y]^n",i+1,ga_PlayerName[gi_MenuPosition+i]) keys |= (1<<i) } else { arrayloc += format(ga_MenuData[arrayloc],(MAX_menudata-1-arrayloc),"\y%d.\w%s^n",i+1,ga_PlayerName[gi_MenuPosition+i]) keys |= (1<<i) } } if( gi_TotalPlayers>(gi_MenuPosition+8)) { arrayloc += format(ga_MenuData[arrayloc],(MAX_menudata-1-arrayloc),"^n\y9.\r[\wДалее\r]") keys |= (1<<8) } arrayloc += format(ga_MenuData[arrayloc],(MAX_menudata-1-arrayloc),"^n\y0.\r[\wВыход\r]") show_menu(id,keys,ga_MenuData,20,"ChoosePlayer") return PLUGIN_HANDLED } public ChooseMenu(id,key) { switch(key) { case 8: { gi_MenuPosition=gi_MenuPosition+8 ShowPlayerMenu(id) } case 9: { if(gi_MenuPosition>=8) { gi_MenuPosition=gi_MenuPosition-8 ShowPlayerMenu(id) } else return 0 } default: { gi_Sellection=gi_MenuPosition+key new admin = get_user_index(ga_PlayerName[gi_Sellection]) if (get_user_flags(admin) & ADMIN_IMMUNITY) { ColorChat(id, RED, "[VOTEBAN] ^x04%s ^x03является админом!", ga_PlayerName[gi_Sellection]) return 0 } else { ClCmdMessageMode3(id) return 0 } } } return PLUGIN_HANDLED } public run_vote() { if(get_pcvar_num(timemenu) != 1) { banpush = get_pcvar_num(gi_BanTime) } new Now=get_systime(gi_SysTimeOffset) set_pcvar_num(gi_LastTime, Now) idol = get_user_index(ga_PlayerName[gi_Sellection]) log_amx("VoteBan Запустил %s против %s %s.=D.",ga_PlayerName[gi_VoteStarter],ga_PlayerName[gi_Sellection],ga_PlayerAuthID[gi_Sellection]) format(ga_MenuData,(MAX_menudata-1),"Рнициатор голосования \y%s^n\wПричина: \r%s^n\wЗабанить \r%s \wРЅР° \r%d \wРјРёРЅСѓС‚?^n(\y%d \wфрагов | \y%d \wсмертей)^n\y1.\wДа^n\y2.\wНет",ga_PlayerName[gi_VoteStarter],szArgs,ga_PlayerName[gi_Sellection],banpush,get_user_frags(idol),get_user_deaths(idol)) ga_Choice[0] = 0 ga_Choice[1] = 0 set_task(get_pcvar_float(votetime),"outcom") for(new i = 1; i <= get_maxplayers(); i++) if(i == idol) { if(get_pcvar_num(menushow) == 1) { show_menu(i,(1<<0)|(1<<1),ga_MenuData,15,"VoteMenu" ) ColorChat(i, RED, "[VOTEBAN] Голосование запустил ^x04%s ^x03против ^x04%s", ga_PlayerName[gi_VoteStarter],ga_PlayerName[gi_Sellection]) } } else if(i != idol) { show_menu(i,(1<<0)|(1<<1),ga_MenuData,15,"VoteMenu" ) ColorChat(i, RED, "[VOTEBAN] Голосование запустил ^x04%s ^x03против ^x04%s", ga_PlayerName[gi_VoteStarter],ga_PlayerName[gi_Sellection]) } return 0 } public CountVotes(id,key) { ++ga_Choice[key] return PLUGIN_HANDLED } public outcom() { new TotalVotes = ga_Choice[0] + ga_Choice[1] new Float:result = (float(ga_Choice[0]) / float(TotalVotes)) if(get_pcvar_float(gf_MinVoters) >= (float(TotalVotes) / float(gi_TotalPlayers))) { ColorChat(0,RED,"[VOTEBAN] Недостаточно голосов Р·Р° Бан ^x04%s!",ga_PlayerName[gi_Sellection]) return 0 } else { if(result < get_pcvar_float(gf_BF_Ratio)) { ColorChat(0,RED,"[VOTEBAN] ^x04%s ^x03забанен РЅР° ^x04%d ^x03РјРёРЅСѓС‚.",ga_PlayerName[gi_VoteStarter],banpush) ActualBan(gi_VoteStarter) log_amx("[AMXX] %s was Banned for %d minutes.",ga_PlayerName[gi_VoteStarter],banpush) } if( result >= get_pcvar_float(gf_Ratio) ) { ColorChat(0,RED,"[VOTEBAN] ^x04%s ^x03забанен РЅР° ^x04%d ^x03РјРёРЅСѓС‚.",ga_PlayerName[gi_Sellection],banpush) log_amx("[AMXX] %s was Banned for %d minutes.",ga_PlayerAuthID[gi_Sellection],banpush) ActualBan(gi_Sellection) } else { ColorChat(0,RED,"[VOTEBAN] Голосование РЅРµ состоялось. Недостаточно голосов.") log_amx("[AMXX] The VoteBan dit not sucseed.") } } ColorChat(0,RED,"[VOTEBAN] Проголосовало ^x04%d ^x03РёРіСЂРѕРєРѕРІ, ^x04%d ^x03Р—Р°.",gi_TotalPlayers,ga_Choice[0]) return 0 } public ActualBan(Selected) { new srvcmd[128], generic[36], userip[22], usersteam[34] get_user_name(idol, idoll, 31) get_pcvar_string(bancfg, srvcmd, 127) get_user_authid(idol, usersteam, 33) get_user_ip(idol, userip, 21, 1) formatex(generic, 33, "#%d", get_user_userid(idol)) replace_all(srvcmd, 127, "%userid%", generic) formatex(generic, 35, "^"%s^"", usersteam) replace_all(srvcmd, 127, "%steamid%", generic) formatex(generic, 35, "^"%s^"", idoll) replace_all(srvcmd, 127, "%name%", generic) replace_all(srvcmd, 127, "%ip%", userip) replace_all(srvcmd, 127, "%reason%", PLUGIN) formatex(generic, 33, "%d", banpush) replace_all(srvcmd, 127, "%time%", generic) server_cmd(srvcmd) return 0 } P.S. Не сочтите за флуд, Качал отсюда. |
|
|
|
![]() ![]() |