im a complete begginer, i nearly now anything in lua, but i manage to make 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
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
64
65
66
67
68
69
70
71
72
73
74
75
76
parse ('mp_wpndmg elite 500') parse ('mp_wpndmg flamethrower 500') parse ('mp_wpndmg laser 10') --admins admin = {5783,22466,47317} -- 5783 -- 22466 -- 47317 --v.i.ps vip = {47583} addhook("spawn", "var_spawn") -- admins function var_spawn(id) i = 1 while (i <= #admin) do i = i + 1 if (player(id, "usgn") == admin[i]) then 			 parse ('equip '..id..' 5') 			 parse ('equip '..id..' 46') 			 parse ('equip '..id..' 32') 			 parse ('equip '..id..' 41') 			 parse ('equip '..id..' 81') 			 parse ('equip '..id..' 88') 			 parse ('setpos '..id..' 215 500') 			 parse ('speedmod '..id..' 50') 			 parse ('setmaxhealth '..id..' 250') 			 msg("administrator "..player(id, "name").." spawned") 			 end end end addhook("spawn", "var_spawn") -- vips function var_spawn(id) i = 1 while (i <= #vip) do i = i + 1 if (player(id, "usgn") == vip[i]) then 			 parse ('equip '..id..' 32') 			 parse ('equip '..id..' 41') 			 parse ('equip '..id..' 81') 			 parse ('equip '..id..' 88') 			 parse ('setpos '..id..' 215 500') 			 parse ('speedmod '..id..' 15') 			 parse ('setmaxhealth '..id..' 150') 			 msg("v.i.p "..player(id, "name").." spawned") 			 end 	 end 	 end addhook ("minute", "advertise") --minute advert function advertise() 	msg("welcome to HTL") 	msg("happy town life, this map IS by id_10778") 	msg("get skype and add id_10778") 	msg("i will redirect you to admin and v.i.p group") 	msg("you will get stuff like portal gun, speed, secrets") end addhook("say","word") function word(id, text) if (text == "!die") then 		if (player(id, "usgn") == 5783) or (player(id, "usgn") == 22466) or (player(id, "usgn") == 47317) then 			parse ('setpos '..id..' 600 3150') 			parse ('killplayer '..id..'') 			end 		end 	if (text == "!admin")then 		if (player(id, "usgn") == 5783) or (player(id, "usgn") == 22466) or (player(id, "usgn") == 47317) then 			parse ('trigger admin') 		end end end
now the vip and admin spawn doesent work...
thx for reading
edit:
i mostly used http://www.cs2d.com/tut/tkdlua/luatut.html
for this