Will it work?
If not please show me the correct!
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
------------------------ -- INIT ARRAY -- ------------------------ function initArray(m) local array = {} for i = 1, m do array[i]=0 end return array end ------------------------ -- HOOKS -- ------------------------ addhook("minute","ping") addhook("second","contagemmm") ------------------------ -- CONFIG -- ------------------------ -- sv config, no lock. tempoa=initArray(32) contagemm=initArray(32) -- Define here the ping limit: ping_limit = 600 ------------------------ -- FUNCTIONS -- ------------------------ function ping(id) msg("©111222111This server has Ping Limit Control !") for will = 1,32 do if player(will,"exists") then if player(will,"ping") >= ping_limit then if contagemm[will] < 8 then contagemm[will] = contagemm[will]+1 msg("©000255000"..player(will,"name").." your ping is "..player(will,"ping").." Close All Programs Or Is Kicked!!") end end if contagemm[will] > 7 then msg("©000255000"..player(will,"name").." Was kicked, For His Ping This "..player(will,"ping")) parse("kick "..will) end end end end function contagemmm() for allid = 1,32 do tempoa[allid] = tempoa[allid]+1 end end