tieudieuphong
21-01-13, 10:43 AM
Cho hỏi code sau sai chỗ nào mà cứ vào game là bị kickout liên tục vậy
bạn có thể giải thích hàm sau nghĩa là gì k
GetTaskTemp(93) ~= 1 then
GetTaskTemp(92) == 0 then
function main(sel)if GetLevel() >= 1 or GetTask(197) >= 1 then
if GetTaskTemp(93) ~= 1 then
if GetTaskTemp(92) == 0 then
if GetTask(93) == 0 then
Say("<color=cyan>Administrator<color> : HÖ thèng chèng <color=red> Hack nh©n vËt <color> ®a vµo ho¹t ®éng ! ",1,"KiÓm tra nh©n vËt ./anti")
else
Say("<color=cyan>Administrator<color> : §· kiÓm tra xong , mêi b¹n vµo game ",1,"Tham gia vµo game./anti1")
end
end
end
end
end
function anti()
NewWorld(25,196*8,202*16)
SetRevPos(19)
SetFightState(0)
timecheck = tonumber(date("%H%M%S"))
SetTask(94,timecheck)
SetTask(93,1)
KickOutSelf()
end
function anti1()
timecheck = tonumber(date("%H%M%S"))
ll = timecheck - GetTask(94)
if (ll < 10) then -- chi co 10 giay ket noi
SetTaskTemp(92,1)
SetTaskTemp(93,1)
SetTask(93,0)
SetTask(94,0)
Msg2Player("TiÕn tr×nh : hoµn tÊt !")
UseTownPortal()
if GetItemCount(132) < 1 then
AddEventItem(132)
end
--Say("<color=cyan> DuongDaiCaJX <color>: Chµo mõng b¹n tham gia server DuongDaiCaJX>",1," Tham Gia Game./check")
else
SetTask(93,0)
SetTask(94,0)
KickOutSelf()
end
end
function check()
Say("<color=cyan>ANTI Server<color>: HiÖn t¹i b¹n ®ang ë §¶o Hoang , h·y lùa chän quay vÒ ®Þa ®iÓm tríc ®ã ! ",1,"Tham gia game./no")
logWrite("[GAMER : "..GetName().."] "..GetIP().." \n")
Talk(1,"no","Qua trinh bao ve nhan vat hoan tat ! ")
end;
function logWrite(str) --CopyRight Chinese
local gm_Log = "dulieu/kiemtra.txt"
local fs_log = openfile(gm_Log, "a");
write(fs_log, date("%y-%m-%d_%H:%M:%S").."\t"..str.."\n");
closefile(fs_log);
end
function no()
end
function check1()
end
bạn có thể giải thích hàm sau nghĩa là gì k
GetTaskTemp(93) ~= 1 then
GetTaskTemp(92) == 0 then
function main(sel)if GetLevel() >= 1 or GetTask(197) >= 1 then
if GetTaskTemp(93) ~= 1 then
if GetTaskTemp(92) == 0 then
if GetTask(93) == 0 then
Say("<color=cyan>Administrator<color> : HÖ thèng chèng <color=red> Hack nh©n vËt <color> ®a vµo ho¹t ®éng ! ",1,"KiÓm tra nh©n vËt ./anti")
else
Say("<color=cyan>Administrator<color> : §· kiÓm tra xong , mêi b¹n vµo game ",1,"Tham gia vµo game./anti1")
end
end
end
end
end
function anti()
NewWorld(25,196*8,202*16)
SetRevPos(19)
SetFightState(0)
timecheck = tonumber(date("%H%M%S"))
SetTask(94,timecheck)
SetTask(93,1)
KickOutSelf()
end
function anti1()
timecheck = tonumber(date("%H%M%S"))
ll = timecheck - GetTask(94)
if (ll < 10) then -- chi co 10 giay ket noi
SetTaskTemp(92,1)
SetTaskTemp(93,1)
SetTask(93,0)
SetTask(94,0)
Msg2Player("TiÕn tr×nh : hoµn tÊt !")
UseTownPortal()
if GetItemCount(132) < 1 then
AddEventItem(132)
end
--Say("<color=cyan> DuongDaiCaJX <color>: Chµo mõng b¹n tham gia server DuongDaiCaJX>",1," Tham Gia Game./check")
else
SetTask(93,0)
SetTask(94,0)
KickOutSelf()
end
end
function check()
Say("<color=cyan>ANTI Server<color>: HiÖn t¹i b¹n ®ang ë §¶o Hoang , h·y lùa chän quay vÒ ®Þa ®iÓm tríc ®ã ! ",1,"Tham gia game./no")
logWrite("[GAMER : "..GetName().."] "..GetIP().." \n")
Talk(1,"no","Qua trinh bao ve nhan vat hoan tat ! ")
end;
function logWrite(str) --CopyRight Chinese
local gm_Log = "dulieu/kiemtra.txt"
local fs_log = openfile(gm_Log, "a");
write(fs_log, date("%y-%m-%d_%H:%M:%S").."\t"..str.."\n");
closefile(fs_log);
end
function no()
end
function check1()
end