Postado Junho 7, 2014 11 anos Autor Deve ser erro no editor. Tente abrit e salvar com um editor diferente, tipo se vc usa bloco de notas use o notepad++ Não adiantou :/ Baiak Thunder New TFS Downgrade [TFS 1.5 - 8.60] Gesior Ferobra Downgrade Evento Monster Hunt [TFS 1.X] Evento SafeZone [TFS 1.X] Online Bonus System [TFS 1.X] Dodge & Critical [TFS 1.X] Nova moeda, funcionando com NPCs [TFS 1.X] Square System [TFS 1.X] Loot Channel [TFS 1.X] Gerenciador de Quests [All TFS] NPCs comprando vial/flasks por storage [TFS 1.X] AntiBot [TFS 1.X] Como compilar TFS 0.X
Postado Junho 7, 2014 11 anos Testa assim function onSay(cid, words, param, channel) local cleanEvent = 0 if(param == '') then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Collected " .. doCleanMap() .. " items.") return true end local t = string.explode(param, ",") if(t[1] == 'tile') then local removeLoaded = false if(t[2]) then removeLoaded = getBooleanFromString(t[2]) end doCleanTile(getCreaturePosition(cid), removeLoaded) return true end if(not tonumber(param)) then doPlayerSendCancel(cid, "Command numeric param required.") return true end stopEvent(cleanEvent) prepareClean(tonumber(param), cid) return true end function prepareClean(minutes, cid) if(minutes == 0) then if(isPlayer(cid)) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Cleaned " .. doCleanMap() .. " items.") end doBroadcastMessage("Game map cleaned.") elseif(minutes > 0) then if(minutes == 1) then doBroadcastMessage("Game map cleaning in " .. minutes .. " minute, please pick up all your items.") else doBroadcastMessage("Game map cleaning in " .. minutes .. " minutes.") end cleanEvent = addEvent(prepareClean, 60000, minutes - 1, cid) end end Scripter: |||||||||| 10% Te ajudei?? REP + e ficamos quites... Atenciosamente, Lucas. Abraços!
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.