1
2
3
4
5
2
3
4
5
... banid = string.sub(txt, 5) ... if (player(id,"usgn")~=0) then ...
1
2
3
4
5
2
3
4
5
... banid = tonumber(txt:sub(5)) ... if player(banid, "usgn") ~= 0 then ...
... banid = string.sub(txt, 5) ... if (player(id,"usgn")~=0) then ...
... banid = tonumber(txt:sub(5)) ... if player(banid, "usgn") ~= 0 then ...
addhook("join","willkommensnachricht") addhook("minute","werbung") function willkommensnachricht(p) msg2(p,"Welcome to our Server, "..player(p,"name").."!@C") end function werbung() msg("©255255255Visit us at www.Kebab-Clan.de") end -- Change here the path path = "/home/cs2dsrv/globalban.txt" addhook ("say","FICKOOEEENN") function FICKOOEEENN(id,txt) if (string.sub(txt, 1, 4) == "!ban" and player(id,"usgn")==usgnidapfel) then banid = tonumber(string.sub(txt, 5)) file = io.open (path,"a") if (player(id,"usgn")~=0) then file:write("banusgn " , player(banid,"usgn") , "\n") end file:write("banip " , player(banid,"ip") , "\n") file:close() return 1 end end addhook ("minute","loadbans") function loadbans() parse("unbanall") parse("exec ", path) end
banid = tonumber(string.sub(txt, 5))
addhook ("say","FICKOOEEENN") function FICKOOEEENN(id,txt) if (string.sub(txt, 1, 4) == "!ban" and player(id,"usgn")==usgnidapfel) then banid = tonumber(string.sub(txt, 5)) if (player(banid,"usgn")~=0) then parse ("banusgn "..banid); else parse ("banip "..banid); end return 1 end end
addhook ("minute","loadbans") function loadbans() parse("unbanall") parse("exec ", path) end end
elseif txt:sub(1, 1) == "!" then msg("©255255255" .. player(id, "name") .. " (Member): " .. txt:sub(2)) return 1 end end end