Ir para conteúdo
  • 0

[PEDIDP] Exausted em talkaction


aberick

Pergunta

Aae galera queria uma ajuda.. como adcionar exuasted de 30 segundos para usar novamente o comando !go? ta ai o script

 

 

 

local config =

{

sexChangeable = false,

copyOutfitAndAddonsEverytime = false

}

 

function onSay(cid, words, param, channel)

party = getPlayerParty(cid)

if (config.sexChangeable == true) then

sex = getPlayerSex(cid)

end

if (party) then

if (party == cid) then

outfit = getCreatureOutfit(cid)

members = getPartyMembers(party)

if (#members >= 1) then

tmp = outfit

for i=1,#members do

if (config.sexChangeable == true) then

if (sex ~= getPlayerSex(members)) then

doPlayerSetSex(members, sex)

end

end

if(config.copyOutfitAndAddonsEverytime == false and canPlayerWearOutfit(members, tmp.lookType, tmp.lookAddons) ~= true) then

local tmpOutfit = getCreatureOutfit(members)

tmp.lookType = tmpOutfit.lookType

tmp.lookAddons = tmpOutfit.lookAddons

end

doCreatureChangeOutfit(members, tmp)

doSendMagicEffect(getCreaturePosition(members), 66)

end

end

else

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "This command can use only leader of a party!")

end

else

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You must be in a party!")

end

return true

end

 

Editado por Roksas
adicionado spoilers
Link para o comentário
Compartilhar em outros sites

Posts Recomendados

×
×
  • Criar Novo...