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
addhook("say","RR") -- text
function RR(id,txt)
if txt=="!rr" then
parse("reroute "..id.." 1.1.1.1:1111") -- change it
msg2(id,"true")
return 1
end
end
addhook("serveraction","rrc") -- menu
function rrc(id,action)
if action==1 then
menu(id,"Reroute,RerouteMe")
end
end
addhook("menu", "rrm")
function rrm(id,title,button)
if title=="Reroute" then
if button==1 then
parse("reroute "..id.." 1.1.1.1:1111") -- change it
msg2(id,"true")
end
end
end