im learning lua scripting and i have some problems, everything is working but on my eyes map change takes a lot of time for me.
this is my lua code :
1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10
addhook("say","map") function makespec(id,env) for _, usgn in ipairs(admlist) do if player(id,'usgn') == usgn then if (env=="!map de_dust") then parse("sv_map de_dust") end end end end
always if i want to change the map, i need to add this one :
1
2
3
4
5
6
7
8
9
10
11
12
13
2
3
4
5
6
7
8
9
10
11
12
13
addhook("say","map") function makespec(id,env) for _, usgn in ipairs(admlist) do if player(id,'usgn') == usgn then if (env=="!map de_dust") then parse("sv_map de_dust") end if (env=="!map de_dust2") then parse("sv_map de_dust2") end end end end