Postado Abril 16, 2015 10 anos Alguém me passa uma Script que o tutor muta tal player e esse player fica 30 minutos sem poder falar no help, somente no help. TFS 1.0 Ex do comando. !mute "player
Postado Abril 16, 2015 10 anos function onSay(cid, words, param) local player = Player(cid) local m = string.explode(param, ",") local target = Player(m[1]) local time = tonumber(m[2]) if player:getAccountType() < ACCOUNT_TYPE_TUTOR then return false end if time == nil then player:sendCancelMessage("Invalid param specified.") return false end if target == nil then player:sendCancelMessage("A player with that name is not online.") return false end if target:getAccountType() ~= ACCOUNT_TYPE_NORMAL then player:sendCancelMessage("You can only mutate a normal player.") return false end if time == 0 and time >= 360 then player:sendCancelMessage("you can only mute for a maximum of 360 minutes") return false end local condition = Condition(CONDITION_MUTED) condition:setParameter(CONDITION_PARAM_TICKS, time*60*1000) target:doaddCondition(condition) target:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You have been muted by " .. player:getName() .. " , to "..time.. " minutes.") player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You muted " .. target:getName() .." to "..time.." minutes.") end <talkaction words="/mute" separator=" " script="ARQUIVO.lua" /> Editado Abril 16, 2015 10 anos por Linus (veja o histórico de edições)
Postado Abril 16, 2015 10 anos /mute nomedoplayer, tempo(máximo 360 minutos.) /mute Linus, 10 -- Mutado por de 10 minutos.
Postado Abril 16, 2015 10 anos Autor Não funcionou, deu erro na script. [WARNING] - Event : : checkscript] can not load script: scripts/mute.lua data/talkaction/scripts/mute.lua :37: 'end' expected (to close 'function' at line 1) near '<eof> UP Editado Abril 16, 2015 10 anos por arthur122222 (veja o histórico de edições)
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.