Ae Xtibianos,
Queria 1 Scripter que falava assim
Exemplo, dando Muted de 60 segundos no jogador Test.
/muted Test 60
Quem Fazer esse Talkactions para mim, ganhará REP+ =)
Ae Xtibianos,
Queria 1 Scripter que falava assim
Exemplo, dando Muted de 60 segundos no jogador Test.
/muted Test 60
Quem Fazer esse Talkactions para mim, ganhará REP+ =)
Tenta esse
string.explode = function (str, sep)local pos, t = 1, {}
if #sep == 0 or #str == 0 then
return
end
for s, e in function() return str:find(sep, pos) end do
table.insert(t, str:sub(pos, s - 1):trim())
pos = e + 1
end
table.insert(t, str:sub(pos):trim())
return t
end
local conditions = {}
for i = 1, 100 do
table.insert(conditions, createConditionObject(CONDITION_MUTED))
setConditionParam(conditions, CONDITION_PARAM_TICKS, i * 60 * 1000)
end
function onSay(cid, words, param)
local t = string.explode(param, ",")
local target = getPlayerByNameWildcard(t[1])
if(param == '') then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command requires a players name and number.")
return TRUE
end
if(getPlayerGroupId(target) > 1) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You cannot Mute another Staff member.")
return TRUE
end
if(not target) then
target = getCreatureByName(param)
if(not target) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player is not online.")
return TRUE
end
end
doAddCondition(target, conditions[tonumber(t[2])])
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have muted "..getCreatureName(target).." for "..t[2]..".")
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_SLEEP)
return TRUE
end
era só procurar ¬¬
eita pressa
http://www.xtibia.com/forum/topic/181749-talk-comando-mute-atualizado/
vlw os 2 ae,
Vodkart como sempre você sempre me ajuda, adiciona MSN? meu?
Thiago.willian2012@hotmail.com
VLW Ae
Eu dei 1 REP+ pra 1 Lek ake, quando eu poder eu dou 1 pra você támbem.