Vamos direto ao ponto.
Entre na pasta data\talkactions\scripts Copie e Cole qualquer arquivo renomeiando-o para muted.lua
Agora abra-o, apague tudo que tem dentro com: Ctrl + A e Del.
Cole isto:
------muted by Ciao function onSay(cid, words, param) pacces = 6 nstorage = 1338 acces = getPlayerAccess(cid) player2 = getPlayerByName(param) storage = getPlayerStorageValue(player2, nstorage) if words == '/muted' and acces >= pacces and param ~= "" and storage == -1 then doPlayerSendTextMessage(player2,22,'Voce recebeu Muted por realizar muito Spam.') domutedThing(player2) setPlayerStorageValue(player2, nstorage, 1) elseif words == '/desmuted' and acces >= pacces and param ~= "" and storage ~= -1 then doPlayerSendTextMessage(player2,22,'Agora voce pode voltar a falar normalmente') dodesmutedThing(player2) setPlayerStorageValue(player2, nstorage, -1) elseif param == "" and acces >= pacces then doPlayerSendCancel(cid,'Voce precisa utilizar em um jogador.') elseif getPlayerAccess(cid) < pacces then doPlayerSendTextMessage(cid,22,"Desculpe, mas voce nao pode usar este comando.") elseif param == "/muted" and storage == 1 then doPlayerSendTextMessage(cid,22,"Voce recebeu Muted por realizar muito Spam") elseif param == "/desmuted" and storage == -1 then doPlayerSendTextMessage(cid,22,"Agora voce pode voltar a falar normalmente") end end
Agora abra o arquivo data\talkactions\talkactions.xml e adicione isto:
<talkaction words="/muted" script="muted.lua" /> <talkaction words="/desmuted" script="muted.lua" />
Agora para usar este comando, use:
/muted "nick
/desmuted "nick
Obrigado, comentem, espero que gostem, pois sou novo e espero desenvolver muitos Scripts excelentes ainda! :positive: