Ir para conteúdo
  • Cadastre-se

[Resolvido] Restringido Talks


Posts Recomendados

Queria essas talks abaixo funcionando para senior tutor, porém eu ja fiz o que sabia, mais player normal pode usar elas e 2 não funciona, /templo e /kikar não funciona, e /banip funciona mais player comum esta usando também:

/templo

function onSay(cid, words, param, channel)

local tid = cid

if(param ~= '') then

tid = getPlayerByNameWildcard(param)

if(not tid or (isPlayerGhost(tid) and getPlayerGhostAccess(tid) > getPlayerGhostAccess(cid))) then

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. param .. " not found.")

return true

end

end

local pos = getPlayerTown(tid)

local tmp = getTownName(pos)

if(not tmp) then

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Home town does not exists.")

return true

end

pos = getTownTemplePosition(pos)

if(not pos or isInArray({pos.x, pos.y}, 0)) then

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Wrong temple position for town " .. tmp .. ".")

return true

end

pos = getClosestFreeTile(tid, pos)

if(not pos or isInArray({pos.x, pos.y}, 0)) then

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Destination not reachable.")

return true

end

tmp = getCreaturePosition(tid)

if(doTeleportThing(tid, pos, true) and not isPlayerGhost(tid)) then

doSendMagicEffect(tmp, CONST_ME_POFF)

doSendMagicEffect(pos, CONST_ME_TELEPORT)

end

return true

end

<talkaction log="yes" words="/templo" access="2" event="script" value="tutortemple.lua"/>

/kikar
function onSay(cid, words, param, channel)

local pid = 0

if(param == '') then

pid = getCreatureTarget(cid)

if(pid == 0) then

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.")

return true

end

else

pid = getPlayerByNameWildcard(param)

end

if(not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) then

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. param .. " is not currently online.")

return true

end

if(isPlayer(pid) and getPlayerAccess(pid) >= getPlayerAccess(cid)) then

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You cannot kick this player.")

return true

end

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, getCreatureName(pid) .. " has been kicked.")

doRemoveCreature(pid)

return true

end

<talkaction log="yes" words="/kikar" access="2" event="script" value="kicktutor.lua"/>

/banip
function onSay(cid, words, param, channel)

local pid = getPlayerByNameWildcard(param)

if(not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) then

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. param .. " is not currently online.")

return true

end

doAddIpBanishment(getPlayerIp(pid))

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, getCreatureName(pid) .. " has been permanently banished.")

return true

end

<talkaction log="yes" words="/banip" acess="2" event="script" value="banip.lua"/>

Editado por jNo (veja o histórico de edições)

(1º) | [8.60] - Galaxy Server - Download

(2º) | [8.60] - Glorious Server - Download

(3º) | [8.60] - Epic Server - Download

Link para o post
Compartilhar em outros sites
  • Respostas 22
  • Created
  • Última resposta

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

Tente esse: function onSay(cid, words, param, channel) local group = 3 if not(getPlayerGroupId(cid) >= group) then return false end local tid = cid if(param ~= '') then tid = getPlayerByNameWildcard(param) if(not tid or (isPlayerGhost(tid) and getPlayerGhostAccess(tid) > getPlayerGhostAccess(cid))) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. param .. " not found.") return true end end local pos = getPlayerTown(tid) local tmp = getTownNam

function onSay(cid, words, param, channel) local group = 3 if not(getPlayerGroupId(cid) >= group) then return false end if (param == '') then return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Voce precisa informar o nome do jogador.") end local pid = getPlayerByNameWildcard(param) if (not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "O player

  Em 02/01/2013 em 06:59, supporte disse:

<talkaction log="yes" words="/banip" acess="3" event="script" value="banip.lua"/>

Mostrar mais  

Ja fiz isso e não funcionou. :/

(1º) | [8.60] - Galaxy Server - Download

(2º) | [8.60] - Glorious Server - Download

(3º) | [8.60] - Epic Server - Download

Link para o post
Compartilhar em outros sites
  Em 02/01/2013 em 07:05, supporte disse:

<talkaction log="/banip" words="/banip" access="2" event="script" value="banip.lua"/>

Expand   Mostrar mais  

Ja estava assim a talk amigo e não funcionou :X

(1º) | [8.60] - Galaxy Server - Download

(2º) | [8.60] - Glorious Server - Download

(3º) | [8.60] - Epic Server - Download

Link para o post
Compartilhar em outros sites

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

  • Estatísticas dos Fóruns

    96844
    Tópicos
    519597
    Posts



×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo