Jump to content

Joinquit?


Recommended Posts

Queria Saber se tem como Modificar as rasoes do Joinquit. :|

Por Exemplo:

[iNFO]Nick Saiu do Servidor [Vontade Propria]

Ja tentei De varias maneiras mais nenhuma funcionou

Meu Joinquit:

g_Root = getRootElement() 
  
addEventHandler('onPlayerJoin',g_Root, 
function () 
    local country = exports['admin']:getPlayerCountry(source) 
    setElementData(source,'Country',country) 
    outputChatBox('#FF4500[#FF0000INFO#FF4500] #FFFFFF' .. getPlayerName(source) .. ' #FFFFFFEntrou no Servidor [Pais]: #ffffff[#ff0000' .. tostring(country) .. '#ffffff] ', getRootElement(), 219, 129, 129, true) 
    end 
) 
  
addEventHandler('onPlayerChangeNick', g_Root, 
    function(oldNick, newNick) 
        outputChatBox('#FF4500[#FF0000INFO#FF4500] #FFFFFF' .. oldNick .. ' #FFFFFF Agora e conhecido como #0000ff' .. newNick, getRootElement(), 219, 129, 129, true) 
    end 
) 
  
addEventHandler('onPlayerQuit', g_Root, 
    function(reason) 
        outputChatBox('#9370DB[#008B8BINFO#9370DB]#FFD700: ' .. '#abcdec[#ffff00' .. reason .. '#abcdec]#00FF00 ' .. getPlayerName(source) .. ' #FFFFFFSaiu do Servidor!', getRootElement(), 255, 0, 0, true) 
    end 
) 

Link to comment

tente isso:

addEventHandler('onPlayerQuit', g_Root, 
    function(reason) 
    if (reason == "Quit") then  
 local  M = "Vontade Propria" 
        outputChatBox('#9370DB[#008B8BINFO#9370DB]#FFD700: ' .. '#abcdec[#ffff00' .. M .. '#abcdec]#00FF00 ' .. getPlayerName(source) .. ' #FFFFFFSaiu do Servidor!', getRootElement(), 255, 0, 0, true) 
elseif (reason == "Timed out") then 
local M = "Erro conexao" 
outputChatBox('#9370DB[#008B8BINFO#9370DB]#FFD700: ' .. '#abcdec[#ffff00' .. M .. '#abcdec]#00FF00 ' .. getPlayerName(source) .. ' #FFFFFFSaiu do Servidor!', getRootElement(), 255, 0, 0, true) 
    end 
    end 
) 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...