Csfile.info Anti-cheat V1.23 Release Fixed 3 (06.01.2011) |
Здравствуйте, гость Вход | Регистрация
Наши новости:
|
|
|
Csfile.info Anti-cheat V1.23 Release Fixed 3 (06.01.2011) |
f1nik
|
10.10.2011, 14:24
Сообщение
|
![]() ![]() |
|
|
|
|
imba
|
10.10.2011, 14:47
Сообщение
|
|||
|
|
Ну код спидхака,тот что выше,уже сутки на 3 серверах стоит...Пока все чисто,хотя сам заходил со спидхаком-определило как положено.
Да и не силен я в скриптинге,могу только копи паст с готового сделать )) Поэтому и прошу шарящих людей глянуть что и как...
|
|||
|
|
||||
Flash
|
10.10.2011, 15:11
Сообщение
|
|
|
imba,
добавь чтоб админов тоже игнорило Код get_user_flags( index ) & ADMIN_FLAG
Отредактировал: xxxFlasHxxx, - 10.10.2011, 15:21
|
|
|
|
imba
|
10.10.2011, 15:16
Сообщение
|
|||
|
|
xxxFlasHxxx,
Куда именно? Код public client_connect(id) или Код public client_putinserver(id) И кстати,зачем в обоих функциях выполнять одну и ту же проверку? Код if (is_user_bot(id) || is_user_hltv(id)) return PLUGIN_HANDLED
|
|||
|
|
||||
Flash
|
10.10.2011, 15:19
Сообщение
|
|
|
imba,
2 разные функции, вызываемые при коннекте к серверу (вызываеются в разное время) Последовательность: client_connect -> client_authorized -> client_putinserver Цитата Куда именно? в обе
Отредактировал: xxxFlasHxxx, - 10.10.2011, 15:21
|
|
|
|
ARTI SHOK
|
10.10.2011, 15:28
Сообщение
|
|
|
Чит кей неплохо было бы изьять от туда)
|
|
|
|
imba
|
10.10.2011, 15:37
Сообщение
|
|||
|
|
xxxFlasHxxx,
ок.thx Остальной код в порядке?Что еще можно изменить\добавить?
|
|||
|
|
||||
dah9-privet
|
10.10.2011, 16:16
Сообщение
|
![]() |
|
|
|
|
SEAD)
|
10.10.2011, 17:51
Сообщение
|
|
|
|
|
|
|
imba
|
10.10.2011, 17:56
Сообщение
|
|||
|
|
fastfire
+ Код #include <amxmodx> #include <cstrike> #include <fakemeta> #include <hamsandwich> #define VERSION "2.0" #define MAXPLAYERS 32 enum _:Player_parameters { NAME[32], IP[17], AUTHID[25], Bool:BOT, Bool:HLTV, Bool:ALIVE, WEAPON, AMMO } new gUserParam[MAXPLAYERS+1][Player_parameters] new g_detectfastfire[MAXPLAYERS+1] new g_nCurWeapon[MAXPLAYERS+1][2] new g_MaxPlayers new g_szLog[128], g_mapname[32] new g_imprecision new cvar_imprecision public plugin_init() { register_plugin("Anti Fast-Fire", VERSION, "CSF") cvar_imprecision = register_cvar("ff_imprecision", "0") //% погрешности RegisterHam( Ham_Spawn, "player", "fw_PlayerSpawn", 1) RegisterHam( Ham_Killed, "player", "fw_PlayerKilled", 1) register_event("CurWeapon", "FASTFIRE_Event_ShotFired", "b") register_event("HLTV", "FASTFIRE_clearDetect", "a", "1=0", "2=0") get_localinfo("amxx_logs", g_szLog, charsmax(g_szLog)) add(g_szLog, charsmax(g_szLog), "/FastFire.txt") return PLUGIN_HANDLED } public plugin_cfg( ) { g_MaxPlayers = get_maxplayers() get_mapname (g_mapname, 31) set_task(1.0, "FASTFIRE_checkBulletCount", 0, _, _, "b") } public client_disconnect(id) { if(task_exists(id)) remove_task(id) gUserParam[id][NAME] = ""; gUserParam[id][IP] = ""; gUserParam[id][AUTHID] = ""; gUserParam[id][BOT] = 0; gUserParam[id][HLTV] = 0; gUserParam[id][ALIVE] = 0; gUserParam[id][WEAPON] = 0; gUserParam[id][AMMO] = 0 g_detectfastfire[id] = 0 return PLUGIN_HANDLED } public client_connect(id) { gUserParam[id][BOT] = is_user_bot(id); gUserParam[id][HLTV] = is_user_hltv(id); if (is_user_bot(id) || is_user_hltv(id) || get_user_flags (id) & ADMIN_IMMUNITY) return PLUGIN_HANDLED if(task_exists(id)) remove_task(id) get_user_name(id, gUserParam[id][NAME], 31); get_user_ip(id, gUserParam[id][IP], 16, 1); get_user_authid(id, gUserParam[id][AUTHID], 24); gUserParam[id][AMMO] = 0 gUserParam[id][WEAPON] = 0 g_detectfastfire[id] = 0 return PLUGIN_HANDLED } /*public client_putinserver(id) { if (is_user_bot(id) || is_user_hltv(id) || get_user_flags (id) & ADMIN_IMMUNITY) return PLUGIN_HANDLED return PLUGIN_HANDLED }*/ public client_infochanged(id) { if(is_user_connected(id)) set_task(0.3, "info_changed", id) } public info_changed(id) { get_user_name(id, gUserParam[id][NAME], 31) } public FASTFIRE_Event_ShotFired( id ) { new weaponID = read_data(2) new wAmmo = read_data(3) g_MaxPlayers = get_maxplayers() if(g_nCurWeapon[id][0] != weaponID) { g_nCurWeapon[id][0] = weaponID g_nCurWeapon[id][1] = wAmmo return PLUGIN_CONTINUE } if(g_nCurWeapon[id][1] < wAmmo) { g_nCurWeapon[id][1] = wAmmo return PLUGIN_CONTINUE } if( g_nCurWeapon[id][1] == wAmmo) return PLUGIN_CONTINUE g_nCurWeapon[id][1] = wAmmo g_nCurWeapon[id][0] = weaponID gUserParam[id][WEAPON] = weaponID; gUserParam[id][AMMO]++; client_print(id,print_chat,"ammo = %d / weapon = %d / ostatok = %d",gUserParam[id][AMMO], weaponID,wAmmo) return PLUGIN_CONTINUE } public FASTFIRE_checkBulletCount() { g_imprecision = get_pcvar_num(cvar_imprecision) for(new id=1;id<=g_MaxPlayers;id++) { if(gUserParam[id][ALIVE]) { client_print(id,print_chat,"ammo = %d",gUserParam[id][AMMO]) switch(gUserParam[id][WEAPON]) { case 11: {if(gUserParam[id][AMMO] > (7+(g_imprecision*7/100))) FASTFIRE_Detect(id);} case 16: {if(gUserParam[id][AMMO] > (7+(g_imprecision*7/100))) FASTFIRE_Detect(id);} //usp case 17: {if(gUserParam[id][AMMO] > (7+(g_imprecision*7/100))) FASTFIRE_Detect(id);} //glock case 1: {if(gUserParam[id][AMMO] > (7+(g_imprecision*7/100))) FASTFIRE_Detect(id);} case 26: {if(gUserParam[id][AMMO] > (4+(g_imprecision*4/100))) FASTFIRE_Detect(id);} case 10: {if(gUserParam[id][AMMO] > (9+(g_imprecision*9/100))) FASTFIRE_Detect(id);} case 21: {if(gUserParam[id][AMMO] > (2+(g_imprecision*2/100))) FASTFIRE_Detect(id);} case 5: {if(gUserParam[id][AMMO] > (4+(g_imprecision*4/100))) FASTFIRE_Detect(id);} case 7: {if(gUserParam[id][AMMO] > (13+(g_imprecision*13/100))) FASTFIRE_Detect(id);} case 19: {if(gUserParam[id][AMMO] > (13+(g_imprecision*13/100))) FASTFIRE_Detect(id);} case 12: {if(gUserParam[id][AMMO] > (10+(g_imprecision*10/100))) FASTFIRE_Detect(id);} case 30: {if(gUserParam[id][AMMO] > (15+(g_imprecision*15/100))) FASTFIRE_Detect(id);} case 23: {if(gUserParam[id][AMMO] > (13+(g_imprecision*13/100))) FASTFIRE_Detect(id);} case 15: {if(gUserParam[id][AMMO] > (11+(g_imprecision*11/100))) FASTFIRE_Detect(id);} //famas case 3: {if(gUserParam[id][AMMO] > (1+(g_imprecision*1/100))) FASTFIRE_Detect(id);} case 22: {if(gUserParam[id][AMMO] > (12+(g_imprecision*12/100))) FASTFIRE_Detect(id);} case 8: {if(gUserParam[id][AMMO] > (11+(g_imprecision*11/100))) FASTFIRE_Detect(id);} case 13: {if(gUserParam[id][AMMO] > (4+(g_imprecision*4/100))) FASTFIRE_Detect(id);} case 18: {if(gUserParam[id][AMMO] > (1+(g_imprecision*1/100))) FASTFIRE_Detect(id);} case 14: {if(gUserParam[id][AMMO] > (11+(g_imprecision*11/100))) FASTFIRE_Detect(id);} //galil case 28: {if(gUserParam[id][AMMO] > (11+(g_imprecision*11/100))) FASTFIRE_Detect(id);} case 27: {if(gUserParam[id][AMMO] > (12+(g_imprecision*12/100))) FASTFIRE_Detect(id);} case 24: {if(gUserParam[id][AMMO] > (4+(g_imprecision*4/100))) FASTFIRE_Detect(id);} case 20: {if(gUserParam[id][AMMO] > (10+(g_imprecision*10/100))) FASTFIRE_Detect(id);} } } gUserParam[id][AMMO] = 0 } return PLUGIN_CONTINUE } public FASTFIRE_clearDetect() { for(new id=1;id<=g_MaxPlayers;id++) { g_detectfastfire[id] = 0 } } public FASTFIRE_Detect(id) { new ping, loss get_user_ping(id, ping, loss) if(ping == 0) return PLUGIN_HANDLED gUserParam[id][AMMO]=0; client_print(id,print_chat,"%d / 4",g_detectfastfire[id]+1) if(++g_detectfastfire[id] < 4) return PLUGIN_CONTINUE new szDate[20] get_time("%m/%d/%y %H:%M:%S", szDate, charsmax(szDate)) new szText[128] formatex(szText, charsmax(szText), "%s |%-34s|%-24s|%-15s| %i |%s", szDate, gUserParam[id][NAME], gUserParam[id][AUTHID], gUserParam[id][IP], ping, g_mapname) write_file(g_szLog, szText, -1) //server_cmd("amx_ban 0 %s ^"[CSF-AC] FastFire Detected^"", gUserParam[id][AUTHID]) //new userid = get_user_userid(id) //server_cmd("kick #%i ^"[CSF-AC] FastFire Detected^"", userid) client_print(0, print_chat, "[CSF-AC] %s uses FastFire!", gUserParam[id][NAME]) return PLUGIN_HANDLED } public fw_PlayerSpawn(id) { gUserParam[id][ALIVE] = is_user_alive(id); } public fw_PlayerKilled(id) { gUserParam[id][ALIVE] = false; } вроде работает http://piccy.info/view3/2082550/f769ac78dc...e11b3903825a95/
|
|||
|
|
||||
SEAD)
|
10.10.2011, 17:58
Сообщение
|
|
|
было бы не плохо доделать этот анти чит.
я бы соеденил этот с Hacks Detector ; creator_52 чтото не овтечает... |
|
|
|
f1nik
|
10.10.2011, 18:46
Сообщение
|
![]() ![]() |
crack только что читал тему.. давно его не было... думал щас начнется троллинг... а нет... он промолчал... не похоже на него)))
|
|
|
|
-)>C-r-A-c-K<(-
|
10.10.2011, 19:08
Сообщение
|
![]() |
|
Поблагодарили 9 раз
|
|
imba
|
10.10.2011, 19:17
Сообщение
|
|||
|
|
-)>C-r-A-c-K...,
Объясни значение квара Код register_cvar("csf_ac_ff_imprecision", "0") //% погрешности Какое лучше использовать? И исходниками opengl не хочешь поделиться?
Отредактировал: imba, - 10.10.2011, 19:19
|
|||
|
|
||||
f1nik
|
10.10.2011, 19:22
Сообщение
|
![]() ![]() |
|
|
|
|
FixX
|
10.10.2011, 19:36
Сообщение
|
|
|
не думаю что он что-то кому-то будет обьяснять, если бы хотел - обьяснил бы всё у себя на форуме
балин, что за опечатки:D
Отредактировал: FixX, - 10.10.2011, 19:50
|
|
|
|
SEAD)
|
10.10.2011, 20:10
Сообщение
|
|
|
так е**** мозги ему а потом хотите бесплатный анти-чит и конешно чтоб работал как вы хотите!
а в замен? маты? (эт не ток про вас милашки)
Отредактировал: SEAD), - 10.10.2011, 20:11
|
Поблагодарили 5 раз
|
|
imba
|
10.10.2011, 22:58
Сообщение
|
|||
|
|
похоже за fastfire есть ложные.
в 1.23 такого не замечал,но здесь другой метод насколько я понял...
|
|||
Поблагодарили 1 раз
|
||||
Zero
|
11.10.2011, 4:01
Сообщение
|
![]() |
imba
Тестил как работает speedhack и fasfire detector? |
|
|
|
![]() ![]() |