Big Smoker Posted October 10, 2019 Share Posted October 10, 2019 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 ) Link to comment
DNL291 Posted October 11, 2019 Share Posted October 11, 2019 Você pode obter tal motivo com getPlayerPing ou getNetworkStats 1 Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now