Sistema de Alerta
Explicando Melhor o Script!!
Pode Ser Meio Inutil , Mais é Legalzinho!!!
o God , Admistrador do Serv Fala /alerta DevilMoon Voce Vai Ser Banido , Se nao Parar de Fazer Tal Coisa! e Aparecera no Player a Mensagem numa Tela!
Ou Pode Colocar , Para Qualquer um Usar!!!
Vamos ao Que Intereça!
Vá em Data>Talkactions.xml
e Coloque o Seguinte Script Dentro
<talkaction log="yes" words="/alerta" access="2" event="script" value="mensageplayer.lua"/>
Agora Vá em Data>Talkactions>Scripts
Crie uma Pasta chamada mensageplayer.lua
e Coloque os Seguintes Scripts Dentro!
--[[ alertar mensagem by DevilMoon and Vodkart ]]-- --[[ Updated by Oneshot and Vodkart ]]-- function onSay(cid, words, param) if(param == "") then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Invalid param specified.") return true end local m = string.explode(param, ",", 1) if(db.getResult("SELECT `id` FROM `players` WHERE `name` = ".. db.escapeString(m[1]) ..";"):getID() == -1) then doPlayerSendCancel(cid, "Desculpe, o jogador [".. m[1] .."] não existe!") else if(isPlayerBanished(m[1], PLAYERBAN_LOCK)) then doPlayerSendCancel(cid, "Desculpe, o jogador [".. m[1] .."] está banido!") else local pid = getPlayerByNameWildcard(m[1]) if(not pid or isPlayerGhost(pid)) then doPlayerSendCancel(cid, "Desculpe, o jogador [".. m[1] .."] está offline!") end if(not m[2]) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Escreva uma mensagem! Para enviar digite ".. words .." jogador mensagem.") else doPlayerPopupFYI(pid, "\nNick: ".. getCreatureName(cid) .."\nGroup: ".. getPlayerGroupName(cid) .."\nMensagem: ".. m[2] .."") end end end return TRUE end
Uma Print Screen Para Ver como é o Script!
Ali Onde Ta Nick é o Nick Do Player Claro , Group é Oque ele é o Meu Ta Evil pq eu Editei mais Vai Fikar God , Para o Player Saber que o Cara é God , Player , Tutor!
Espero Que Tenhao Gostado do Script , Foi Feito com Carinho!! E Esta em Testes , Comentem , De Sugestoes , Criticas e Bugs que eu Ageito!
Se Tiver Autor .. Se ja Tenha Criado O Script Reportem Porfavor! Para Botar os Creditos , Porque esse Foi na Mao!
Abraços!