hlmod.hu https://hlmod.hu/ |
|
JAVÍTÁS! https://hlmod.hu/viewtopic.php?f=24&t=18776 |
Oldal: 1 / 1 |
Szerző: | levo00 [ 2015.01.01. 01:19 ] |
Hozzászólás témája: | JAVÍTÁS! |
Sziasztok! valaki kijavítaná hogy kickelje azt aki 340 nel vagy többel megy? sma: ennyit tudtam de sztem ez se jo . : SMA Forráskód: [ Mindet kijelol ]/* AMX Mod script Forditotta: Dave http://www.amxmodx.extra.hu sajtdavid@hotmail.com http://www.dav3.extra.hu * * (c) 2002-2003, DynAstY * This file is provided as is (no warranties). * * Players with immunity won't be checked */ #include <amxmodx> new SPEED_MAX = 340 // set maximal acceptable ping new SPEED_TIME = 5 // set in seconds frequency of ping checking new SPEED_TESTS = 4 // minimal number of checks before doing anything new iNumTests[33] public plugin_init() { register_plugin("high ping kivkke","1.2.0","Lfde") if (SPEED_TIME < 15) SPEED_TIME = 15 if (SPEED_TESTS < 4) SPEED_TESTS = 4 return PLUGIN_CONTINUE } public client_disconnect(id) { remove_task(id) return PLUGIN_CONTINUE } public client_putinserver(id) { iNumTests[id] = 0 if (!is_user_bot(id)) { new param[1] param[0] = id set_task(30.0, "showWarn", id, param, 1) } return PLUGIN_CONTINUE } kickPlayer(id) { new name[32] get_user_name(id, name, 31) new uID = get_user_userid(id) server_cmd("banid 1 #%d", uID) client_cmd(id, "echo ^"[NESPEEDELJ] Lecsatlakozva, speed miatt!^"; disconnect") client_print(0, print_chat, "[NESPEEDELJ] %s lecsatlakoztatva, Speed miatt!", name) return PLUGIN_CONTINUE } public checkPing(param[]) { new id = param[0] if ((get_user_flags(id) & ADMIN_IMMUNITY) || (get_user_flags(id) & ADMIN_RESERVATION)) { remove_task(id) client_print(id, print_chat, "[Ne Speedelj] Speed Ellenorzes Letiltva Inmunissag Miatt...") return PLUGIN_CONTINUE } new p, l get_user_ping(id, p, l) if (p > SPEED_MAX) ++iNumTests[id] else if (iNumTests[id] > 0) --iNumTests[id] if (iNumTests[id] > SPEED_TESTS) kickPlayer(id) return PLUGIN_CONTINUE } public showWarn(param[]) { client_print(param[0], print_chat, "[Ne Speedelj] Akinek magasabb a gyorsasaga %dms-nel, nem jatszhat a szerveren!", SPEED_MAX) set_task(float(SPEED_TIME), "checkPing", param[0], param, 1, "b") return PLUGIN_CONTINUE } |
Szerző: | expert [ 2015.01.01. 13:46 ] |
Hozzászólás témája: | Re: JAVÍTÁS! |
használd ezt SMA Forráskód: [ Mindet kijelol ]
|
Oldal: 1 / 1 | Minden időpont UTC+02:00 időzóna szerinti |
Powered by phpBB® Forum Software © phpBB Limited https://www.phpbb.com/ |