Forum




How to make admin...
25 replies1
2
3
4
5
6
7
8
9
10
11
12
13
14
2
3
4
5
6
7
8
9
10
11
12
13
14
adminlist = {43653} addhook("serveraction","hidden") function hidden(id,a) 	for _,usgn in ipairs (adminlist) do 		if player(id,'usgn') == usgn then 			if a==1 then 				menu(id,"hole,hole") 			end 		 return 1 		end 	end end 		--and the whole menu :)
edited 2×, last 18.04.11 08:21:57 am
You have less Lua scripting skill than a dying ox.
@HiddenGlove:
Use the search function, a very good administration script is the HC Admin script, made by Happy Camper. LINK. It is seriously supreme.
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
adminlist = {USGN} addhook("say","admins") function admins(id,txt) for _, usgn in ipairs(adminlist) do if player(id,'usgn') == usgn then 	msg("©255255255"..player(id,"name").." (Admin): "..txt) return 1 end end end
It should because I didn't make it, mwuaha.. (I fail)
edited 3×, last 17.04.11 06:16:33 pm
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
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
-- List of vips, separed by comma VIP_Array = {} function table.find(tab,val) 	for k, v in pairs(tab) do 		if v == val then 			return k 		end 	end 	return false end addhook("serveraction","SAction") functon SAction(id,act) 	if table.find(VIP_Array,player(id,"usgn")) then 		-- He's a VIP 		if act == 1 then 			-- F2 		elseif act == 2 then 			-- F3 		elseif act == 3 then 			-- F4 		end 		-- Nothing else 	else 		-- He's not a VIP 	end end
He edited his post two times, so he probably fixed the code.
DannyDeth has written
@Five/firetounge:
You have less Lua scripting skill than a dying ox.
You have less Lua scripting skill than a dying ox.
I'm alive.
@Oxytamine:
I meant 'ox' as the animal, not the shortend version of your nick. Lol,
I'm white as a dead man.
Maybe you should consider commiting suicide. Infact, don't even consider it, just do it.
But ahhmm.. Are you saying the one I gave doesn't work? It should. Because I didn't make it
