Eae galera
Eu to com uma talkaction q serve pros vice-lideres e lider falarem em broadcast para todos da guild
Eu tentei modifica-lo para adicionar um exhaust nesse script, mas eu n to conseguindo
Se alguem souber com adicionar o exhaust, ajeita ae pra mim plix, vou postar o script em baixo
Resumindo:
Tipo: Talkaction (apenas talkaction, n quero mods)
Nome: guildcast.lua
Adicionar: para poder usar denovo tem q esperar o Exhaust de 30 segundos
Script:
function onSay(cid, words, param) local playerGuild = getPlayerGuildId(cid) if playerGuild > 0 then local playerGuildLevel = getPlayerGuildLevel(cid) if playerGuildLevel >= GUILDLEVEL_VICE then local players = getOnlinePlayers() local message = "*Guild* " .. getCreatureName(cid) .. " [" .. getPlayerLevel(cid) .. "]:\n" .. param; for i,playerName in ipairs(players) do local player = getPlayerByName(playerName); if getPlayerGuildId(player) == playerGuild then doPlayerSendTextMessage(player, MESSAGE_STATUS_WARNING, message); end end doPlayerSendCancel(cid, "Message sent to whole guild."); else doPlayerSendCancel(cid, "You have to be at least Vice-Leader to guildcast!"); end else doPlayerSendCancel(cid, "Sorry, you're not in a guild."); end doPlayerSendTextMessage(cid, 25, words) return FALSE end
aguardo uma resposta
vlw