Recommended Posts

Boa Tarde,

Gostaria de saber qual função devo usar para querer colocar uma mensagem no chat

exemplo: Jogado X saiu do Servidor (Ping Alto) 

 

usando essa função aqui "Kicked"

 

addEventHandler('onPlayerQuit', g_Root,
    function(reason)
    if (reason == "Quit") then
        outputChatBox('['..getPlayerCount()..'#FFFFFF / #7EC0EE'..getMaxPlayers()..'] '..getPlayerName(source)..' #FFFFFFSaiu do Servidor! Motivo [#FF0000Saiu#FFFFFF]', getRootElement(), 126, 192, 238, true)
    elseif (reason == "Timed out") then
        outputChatBox('['..getPlayerCount()..'#FFFFFF / #7EC0EE'..getMaxPlayers()..'] '..getPlayerName(source)..' #FFFFFFSaiu do Servidor! Motivo [#FF0000Net caiu#FFFFFF]', getRootElement(), 126, 192, 238, true)
	elseif (reason == "Banned") then
        outputChatBox('['..getPlayerCount()..'#FFFFFF / #7EC0EE'..getMaxPlayers()..'] '..getPlayerName(source)..' #FFFFFFSaiu do Servidor! Motivo [#FF0000Banido#FFFFFF]', getRootElement(), 126, 192, 238, true)
	elseif (reason == "Kicked") then
        outputChatBox('['..getPlayerCount()..'#FFFFFF / #7EC0EE'..getMaxPlayers()..'] '..getPlayerName(source)..' #FFFFFFSaiu do Servidor! Motivo [#FF0000Chutado#FFFFFF]', getRootElement(), 126, 192, 238, true)
    end
end
)

 

Share this post


Link to post

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.