Spoiler Admins = {65491}
vip = {xxxxx}
mode = {xxxxx}
adminlist={xxxxx}
images={}
imgNames={"helmet","spikes","phoenix","corner","tryans"}
imgPath={"helmet.bmp","spikes.png","phoenix.png","wing5.bmp"}
addhook("say","modsay")
addhook("spawn","speedlua")
function modsay(id,txt)
for index,name in pairs(imgNames) do
if txt=="!"..name then
if images[id]~=nil then
freeimage(images[id])
images[id]=nil
end
images[id]=image("gfx/hats/"..imgPath[index],1,1,200+id)
end
end
if txt=="!nohat" then
if images[id]~=nil then
freeimage(images[id])
images[id]=nil
end
end
for _, usgn in pairs(Admins) do
if player(id,'usgn') == usgn then
msg("©022172253"..player(id,"name").." (MODERATOR): "..txt)
return 1
end -- Endet if-schleife
end -- Endet for-schleife
for _, usgn in pairs(vip) do
if player(id,'usgn') == usgn then
msg("©193000255"..player(id,"name").." (VIP): "..txt)
return 1
end -- Endet if-schleife
end -- Endet for-schleife
for _, usgn in pairs(mode) do
if player(id,'usgn') == usgn then
msg("©255255255"..player(id,"name").." (ADMIN): "..txt)
return 1
end
end
for _, usgn in pairs(adminlist) do
if player(id,'usgn') == usgn then
msg("©255142043"..player(id,"name").." (SUPER-MOD): "..txt)
return 1
end -- Endet if-schleife
end -- Endet for-schleife
end
function speedlua(id)
parse("speedmod "..id.." 11")
end
addhook("say","modsay")
function modsay(id,txt)
for _, usgn in ipairs(Admins) do
if player(id,'usgn') == usgn then
msg("©022172253"..player(id,"name").." (MODERATOR): "..txt)
return 1
end -- Endet if-schleife
end -- Endet for-schleife
for _, usgn in ipairs(vip) do
if player(id,'usgn') == usgn then
msg("©193000255"..player(id,"name").." (VIP): "..txt)
return 1
end -- Endet if-schleife
end -- Endet for-schleife
for _, usgn in ipairs(mode) do
if player(id,'usgn') == usgn then
msg("©255255255"..player(id,"name").." (ADMIN): "..txt)
return 1
end
end
for _, usgn in ipairs(adminlist) do
if player(id,'usgn') == usgn then
msg("©255142043"..player(id,"name").." (SUPER-MOD): "..txt)
return 1
end -- Endet if-schleife
end -- Endet for-schleife
end
addhook("serveraction","adminaction")
function adminaction(id,b)
if b == 1 then
for _, usgn in ipairs(Admins) do
if player(id,'usgn') == usgn then
menu(id,"Moderator Menü,Kill,Kick,Slap,Change Team,Restart Round")
return 1
end
end
end
end
function k(pl)
parse("killplayer "..pl)
end
function ki(pl)
parse("kick "..pl.." '-'")
end
function ak(pl)
parse("slap "..pl)
end
function exist(a)
if player(a,"exists") then
return player(a,"name")
else
return "None"
end
end
addhook("menu","adminmenu")
function adminmenu(id,t,b)
if t=="Moderator Menü" then
if b==1 then
menu(id,"Kill Page 1@b,"..exist(1)..","..exist(2)..","..exist(3)..","..exist(4)..","..exist(5)..","..exist(6)..","..exist(7)..","..exist(8)..",Next")
elseif b==2 then
menu(id,"Kick Page 1@b,"..exist(1)..","..exist(2)..","..exist(3)..","..exist(4)..","..exist(5)..","..exist(6)..","..exist(7)..","..exist(8)..",Next")
elseif b==3 then
menu(id,"Slap Page 1@b,"..exist(1)..","..exist(2)..","..exist(3)..","..exist(4)..","..exist(5)..","..exist(6)..","..exist(7)..","..exist(8)..",Next")
elseif b==4 then
menu(id,"Change Team,Spectator,Terrorist,Counter-Terrorist")
elseif b==5 then
parse("restart")
end
elseif t=="Kill Page 1" then
if b==1 then
k(1)
elseif b==2 then
k(2)
elseif b==3 then
k(3)
elseif b==4 then
k(4)
elseif b==5 then
k(5)
elseif b==6 then
k(6)
elseif b==7 then
k(7)
elseif b==8 then
k(8)
elseif b==9 then
menu(id,"Kill Page 2@b,"..exist(9)..","..exist(10)..","..exist(11)..","..exist(12)..","..exist(13)..","..exist(14)..","..exist(15)..","..exist(16)..",Next")
end
elseif t=="Kill Page 2" then
if b==1 then
k(9)
elseif b==2 then
k(10)
elseif b==3 then
k(11)
elseif b==4 then
k(12)
elseif b==5 then
k(13)
elseif b==6 then
k(14)
elseif b==7 then
k(15)
elseif b==8 then
k(16)
elseif b==9 then
menu(id,"Kill Page 3@b,"..exist(17)..","..exist(18)..","..exist(19)..","..exist(20)..","..exist(21)..","..exist(22)..","..exist(23)..","..exist(24)..",Next")
end
elseif t=="Kill Page 3" then
if b==1 then
k(17)
elseif b==2 then
k(18)
elseif b==3 then
k(19)
elseif b==4 then
k(20)
elseif b==5 then
k(21)
elseif b==6 then
k(22)
elseif b==7 then
k(23)
elseif b==8 then
k(24)
elseif b==9 then
menu(id,"Kill Page 4@b,"..exist(25)..","..exist(26)..","..exist(27)..","..exist(28)..","..exist(29)..","..exist(30)..","..exist(31)..","..exist(32))
end
elseif t=="Kill Page 4" then
if b==1 then
k(25)
elseif b==2 then
k(26)
elseif b==3 then
k(27)
elseif b==4 then
k(28)
elseif b==5 then
k(29)
elseif b==6 then
k(30)
elseif b==7 then
k(31)
elseif b==8 then
k(32)
end
elseif t=="Kick Page 1" then
if b==1 then
ki(1)
elseif b==2 then
ki(2)
elseif b==3 then
ki(3)
elseif b==4 then
ki(4)
elseif b==5 then
ki(5)
elseif b==6 then
ki(6)
elseif b==7 then
ki(7)
elseif b==8 then
ki(8)
elseif b==9 then
menu(id,"Kick Page 2@b,"..exist(9)..","..exist(10)..","..exist(11)..","..exist(12)..","..exist(13)..","..exist(14)..","..exist(15)..","..exist(16)..",Next")
end
elseif t=="Kick Page 2" then
if b==1 then
ki(9)
elseif b==2 then
ki(10)
elseif b==3 then
ki(11)
elseif b==4 then
ki(12)
elseif b==5 then
ki(13)
elseif b==6 then
ki(14)
elseif b==7 then
ki(15)
elseif b==8 then
ki(16)
elseif b==9 then
menu(id,"Kick Page 3@b,"..exist(17)..","..exist(18)..","..exist(19)..","..exist(20)..","..exist(21)..","..exist(22)..","..exist(23)..","..exist(24)..",Next")
end
elseif t=="Kick Page 3" then
if b==1 then
ki(17)
elseif b==2 then
ki(18)
elseif b==3 then
ki(19)
elseif b==4 then
ki(20)
elseif b==5 then
ki(21)
elseif b==6 then
ki(22)
elseif b==7 then
ki(23)
elseif b==8 then
ki(24)
elseif b==9 then
menu(id,"Kick Page 4@b,"..exist(25)..","..exist(26)..","..exist(27)..","..exist(28)..","..exist(29)..","..exist(30)..","..exist(31)..","..exist(32))
end
elseif t=="Kick Page 4" then
if b==1 then
ki(25)
elseif b==2 then
ki(26)
elseif b==3 then
ki(27)
elseif b==4 then
ki(28)
elseif b==5 then
ki(29)
elseif b==6 then
ki(30)
elseif b==7 then
ki(31)
elseif b==8 then
ki(32)
end
elseif t=="Slap Page 1" then
if b==1 then
ak(1)
elseif b==2 then
ak(2)
elseif b==3 then
ak(3)
elseif b==4 then
ak(4)
elseif b==5 then
ak(5)
elseif b==6 then
ak(6)
elseif b==7 then
ak(7)
elseif b==8 then
ak(8)
elseif b==9 then
menu(id,"Slap Page 2@b,"..exist(9)..","..exist(10)..","..exist(11)..","..exist(12)..","..exist(13)..","..exist(14)..","..exist(15)..","..exist(16)..",Next")
end
elseif t=="Slap Page 2" then
if b==1 then
ak(9)
elseif b==2 then
ak(10)
elseif b==3 then
ak(11)
elseif b==4 then
ak(12)
elseif b==5 then
ak(13)
elseif b==6 then
ak(14)
elseif b==7 then
ak(15)
elseif b==8 then
ak(16)
elseif b==9 then
menu(id,"Slap Page 3@b,"..exist(17)..","..exist(18)..","..exist(19)..","..exist(20)..","..exist(21)..","..exist(22)..","..exist(23)..","..exist(24)..",Next")
end
elseif t=="Slap Page 3" then
if b==1 then
ak(17)
elseif b==2 then
ak(18)
elseif b==3 then
ak(19)
elseif b==4 then
ak(20)
elseif b==5 then
ak(21)
elseif b==6 then
ak(22)
elseif b==7 then
ak(23)
elseif b==8 then
ak(24)
elseif b==9 then
menu(id,"Slap Page 4@b,"..exist(25)..","..exist(26)..","..exist(27)..","..exist(28)..","..exist(29)..","..exist(30)..","..exist(31)..","..exist(32))
end
elseif t=="Slap Page 4" then
if b==1 then
ak(25)
elseif b==2 then
ak(26)
elseif b==3 then
ak(27)
elseif b==4 then
ak(28)
elseif b==5 then
ak(29)
elseif b==6 then
ak(30)
elseif b==7 then
ak(31)
elseif b==8 then
ak(32)
end
elseif t=="Change Team" then
if b==1 then
parse("makespec "..id)
elseif b==2 then
parse("maket "..id)
elseif b==3 then
parse("makect "..id)
end
end
end