I have a script which is used by USGN, and I want to use it without usgn. I wanna use it by RCon. I hope you understand me (srry for my bad English).
The script is this:
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
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
admins = {xxxxx} lock_ct = {} lock_tt = {} addhook("say","Cmd") function Cmd(id,t) a = player(id,"usgn") for adm = 1,#admins do if a == admins[adm] and t == "@lockct" then lock_ct=1 msg("©255000000Counter-Terrorist team has been locked!") return 1 elseif a == admins[adm] and t == "@unlockall" then lock_ct=0 lock_tt=0 msg("©000255000All teams were unlocked!") return 1 elseif a == admins[adm] and t == "@lockt" then lock_tt=1 msg("©255000000Terrorist team has been locked!") return 1 end end end addhook("team","lol") function lol(id,team) if team == 1 then if lock_tt == 1 then msg2(id,"©255000000Terrorist team is locked!") return 1 end elseif team == 2 then if lock_ct == 1 then msg2(id,"©255000000Counter-Terrorist team is locked!") return 1 end end end
Thank you.