by the way we in real life?
Forum
Scripts
Lua need for ADMIN script
Lua need for ADMIN script
3 replies
1

by the way we in real life?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
2
3
4
5
6
7
8
9
10
11
12
13
14
15
vips={}
addhook("say","saycommands",317)
function saycommands(id,t)
	if t=="!lol" then
		parse("setscore "..id.." 0")
		parse("setdeaths "..id.." 0")
	end
	if t:sub(1,5)=="!cvip" then
		local iid=tonumber(t:sub(7))
		table.insert(vips,player(iid,"usgn"))
		msg2(id,player(iid,"name").." promoted to VIP.")
		msg2(iid,"You have been promoted to VIP!")
	end
end
The second part just inserts the ID in the cvip command into a vips table, more stuff will need more code.
And no, we're in the Matrix.
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
viplist = {your usgn here}
addhook("say","vipsay")
function vipsay(id,txt)
for _, usgn in ipairs(viplist) do
if player(id,'usgn') == usgn then
msg("©000000255"..player(id,"name").." [VIP]: "..txt)
return 1
end
end
end
1

Offline