djfox292 0 Report post Posted May 15, 2019 when i try to teleport, i get "please wait teleporting" but it doesnt teleport me it keeps showing 2- maps wont work ,but they works in sql 3- plz if anyone can help me text me in Discord : UnStopable #7706 @ThanksAlot. Quote Share this post Link to post Share on other sites
Greaux 7 Report post Posted May 15, 2019 (edited) remove from /resourses/script/calculation/functions.lua if(ret == 0 or npc == nil or id == nil)then -- MoveCity Delay if _G[cha_name.."_move"] ~= nil then if(_G[cha_name.."_move"].city ~= nil) then BickerNotice(role,"Please wait, teleporting... ") local delay = math.random(3,7) -- Random Delay Secodns if math.mod(now_tick, delay) == 0 and now_tick > 0 then if(_G[cha_name.."_move"].copy ~= nil)then original_MoveCity(role,_G[cha_name.."_move"].city,_G[cha_name.."_move"].copy) else original_MoveCity(role,_G[cha_name.."_move"].city) end _G[cha_name.."_move"] = nil end end end if(IsPlayer(role) == 1)then local ret, npc, id = FindNpc( GetChaDefaultName(role) ) if(ret == 0 or npc == nil or id == nil)then -- Dupe Check start local map_now = GetChaMapName(role) if(file_exists(GetResPath("players/"..GetPlayerKey(role)..".txt")) ~= false)then local info = table.load(GetResPath("players/"..GetPlayerKey(role)..".txt"),"r") if(info.map ~= map_now and info.time == os.time())then if(info.first_dupe == nil)then info.first_dupe = os.time() end if(info.first_dupe ~= nil)then local difference = os.time() - info.first_dupe if( difference > 2)then if(info.dupes ~= nil)then info.dupes = info.dupes + 1 else info.dupes = 1 end end if(difference > 20 and info.dupes < 5)then info.dupes = nil info.first_dupe = nil end if(info.dupes ~= nil and info.dupes > 5)then LG("Dupers","Player "..GetChaDefaultName(role).." is duping") MoveDupe(role) info.dupes = nil info.first_dupe = nil end end end info.map = map_now info.time = os.time()+1 table.save(info,GetResPath("players/"..GetPlayerKey(role)..".txt"),"w") else table.save({map = map_now,time = os.time()+1},GetResPath("players/"..GetPlayerKey(role)..".txt"),"a") end -- Dupe Check end end Edited May 15, 2019 by Greaux fixed fold Quote Share this post Link to post Share on other sites
Gurz 0 Report post Posted May 21, 2019 When on? Quote Share this post Link to post Share on other sites
FapFap 13 Report post Posted May 21, 2019 Wrong Section. @V3ct0r Quote Share this post Link to post Share on other sites