Ir para conteúdo

Comando Que Deicha O Player Mudo ;p


Jersom

Posts Recomendados

Esse comando foi 100% feito por mim...

 

 

va na pasta data\talkactions\scripts copie e cole

qualquer arquivo do tipo .lua e renomeie para muted...

E coloque esses codigos

 

------muted by ApoJohn
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,'O gm calo a sua boca')
domutedThing(player2)
setPlayerStorageValue(player2, nstorage, 1)

elseif words == '/desmuted' and acces >= pacces and param ~= "" and storage ~= -1 then
doPlayerSendTextMessage(player2,22,'O GM Decho voçe falar!')
dodesmutedThing(player2)
setPlayerStorageValue(player2, nstorage, -1)

elseif param == "" and acces >= pacces then
doPlayerSendCancel(cid,'You need to fill in a playername!')

elseif getPlayerAccess(cid) < pacces then
doPlayerSendTextMessage(cid,22,"Voce naum he GM NooB!")

elseif param == "/muted" and storage == 1 then
doPlayerSendTextMessage(cid,22,"O gm calo a sua boca")

elseif param == "/desmuted" and storage == -1 then
doPlayerSendTextMessage(cid,22,"O GM Te Decho voçe falar")
end
end

 

 

depois va no data\talkactions\talkactions.xml

 

 

<talkaction words="/muted" script="muted.lua" />
<talkaction words="/desmuted" script="muted.lua" />

 

 

 

Prara deichar o player mudo e so vc ussar o comando..

/muted "nick

para tirar he so usar o comando

/desmuted "nick

 

 

 

 

abraço

tomare que gostem

Editado por VenomM
Link para o comentário
Compartilhar em outros sites

  • 2 weeks later...
  • 2 months later...
  • 2 years later...
  • 1 month later...
×
×
  • Criar Novo...