Jaaaack Posted February 9, 2018 Share Posted February 9, 2018 g_Root = getRootElement() countryNames = { AD="Andorra", AE="Arabian", AF="Afghanistan", AG="Antigua Bardura", AI="Anguilla", AL="Albania", AM="Armenia", AN="Netherlands Antilles", AO="Angola", AP="Asia", AR="Argentina", AS="American Samoa", AT="Austria", AU="Australia", AW="Aruba", AZ="Azerbaijan", BA="Bosnia Herzrgowina", BB="Barbados", BD="Bangladesh", BE="Belgium", BF="Burkina Faso", BG="Bulgaria", BH="Bahrain", BI="Burundi", BJ="Benin", BM="Bermuda", BN="Brunei Darussalam", BO="Bolivia", BR="Brazil", BS="Bahamas", BT="Bhutan", BW="Botswana", BY="Belarus", BZ="Belize", CA="Canada", CD="Congo The Democratic", CF="Centra African Republic", CH="Switzerland", CI="Cote Divoire", CK="Cook Isladinds", CL="Chile", CM="Cameroon", CN="China", CO="Colombia", CR="Costa Rica", CS="Serbia and Montenegro", CU="Cuba", CY="CY", CZ="Czech Republic", DE="Alemania", DJ="Djibouti", DK="Denmark", DO="Dominican Republic", DZ="Algeria", EC="Ecuador", EE="Estonia", EG="Egipto", ER="Eritrea", ES="España", ET="Ethiopia", EU="Europa", FI="Finland", FJ="Fiji", FM="Microdencia", FO="Faroe Islands", FR="Francia", GA="Gabon", GB="United Kingdom", GD="Grenada", GE="Gorgia", GF="Frech Guinia", GH="Ghana", GI="GibraItar", GL="Greenland", GM="Gambia", GR="Greece", GT="Guatelama", GU="Guam", GW="Guinea", GY="GUYANA", HK="HONG KONG", HN="HONDURAS", HR="Croacia", HT="Haiti", HU="Hungary", ID="Indonecia", IE="Ireland", IL="Isral", IN="India", IO="India Ocean", IQ="Iraq", IR="Iran", IS="Iceland", IT="Italia", JM="Jamaica", JO="Jorlan", JP="Japon", KE="Kenya", KG="Kyrgyzstan", KH="Cambodia", KI="Kiribati", KN="Saint Kitts And Nevis", KR="Korea", KW="Kuwait", KY="Cayman Islands", KZ="Kazakhstan", LA="Democratic Republic", LB="Lebaton", LC="Santa Lucia", LI="Liechtenstein", LK="Sri Lanka", LR="Liberia", LS="Lesotho", LT="LithuaniaI", LU="Luxembourg", LV="LATVIA", LY="Libyan Arab", MA="Morocco", MC="Monaco", MD="Moldoca Republic", MG="MadagascarA", MK="MK", ML="Malia", MM="Myanmar", MN="Mongolia", MO="MACAU", MP="MP", MR="Mauritania", MT="Malta", MU="Mauritius", MV="Maldives", MW="Malawi", MX="Mexcio", MY="Malaysia", MZ="Mozambique", NA="NAMIBIA", NC="NEW CALEDONIA", NE=":O", NF="Norfolk Island", NG="Nigeria", NI="Nicaragua", NL="Netherlands", NO="Norway", NP="Nepal", NR="Nauru", NU="Niuse", NZ="New Zealand", OM="Oman", PA="Parama", PE="Peru", PF="French Polynesia", PG="Papua New Guinea", PH="Philippines", PK="Pakistan", PL="Polonia", PR="Puerto Rico", PS="Palestian", PT="Portugal", PW="Palau", PY="Paraguay", QA="Qatar", RO="Romania", RU="Russian", RW="Rwanda", SA="Saudi Arabian", SB="Solomon Islands", SC="Seychelles", SD="Sudan", SE="Sweden", SG="Singapore", SI="Slovenia", SK="Slovak Republic", SL="Sierra Leone", SM="San Marino", SN="Senegal", SR="Suriname", SV="El Salvador", SY="Syrian Arab Republic", SZ="Swaziland", TG="Togo", TH="Thailand", TJ="Tajikistan", TM="Turkmenistan", TN="Tunisia", TO="Tonga", TR="Turkey", TT="Trinidad Tobago", TV="Tuvalu", TW="Taiwan Province China", TZ="Tanzania", UA="Ukranie", UG="Uganda", US="United States", UY="Uruguat", UZ="Uzbekistan", VA="Vatican City", VE="Venezuela", VG="Virgin Islands (British)", VI="Virgin Islands (U.S.)", VN="Vietnam", VU="Vauanuatu", WS="Samoa", YE="Yemen", YU="Formally Yugoslavia", ZA="Sudrafica", ZM="Zambia", ZW="Zimbabwe", ZZ="Reserved" } --[[ addEventHandler('onPlayerJoin',g_Root, function () local ping = getPlayerPing(source) local country = exports['admin']:getPlayerCountry(source) setElementData(source,'Country',country) outputChatBox('[#00FF00'..getPlayerCount()..'#FFFFFF / #FF0000'..getMaxPlayers()..'#FFFFFF]: '..getPlayerName(source)..' - #FFFFFF[#00FF00✔#FFFFFF] - [#00FF00Acabou de entrar#FFFFFF] - País [#00FF00'.. countryNames[tostring(country)] ..'#FFFFFF]', getRootElement(), 255, 255, 255, true) end ) --]] function onClientCrapBox2(player, test1, test2, test3) triggerClientEvent(getRootElement(), "onClientCrapBox2", getRootElement(), test1, test2, test3) end addEventHandler("onPlayerJoin", root, function() local ip = getPlayerIP(source) fetchRemote("http://ip-api.com/json/"..ip, outputJoin, "", false, source) end) function outputJoin(response, errno, thePlayer) local country = "N/A" local city = "N/A" if response ~= "ERROR" and errno == 0 then local joinData = fromJSON(response) if joinData and type(joinData) == 'table' then country = joinData.country city = joinData.city end end setElementData(thePlayer,"Country", country) setElementData(thePlayer,"City", city) --outputChatBox("* "..getPlayerName(thePlayer).." Ha Entrado Al Servidor Desde: ["..city.."] ["..country.."]",root,220,140,105) --outputChatBox('[#00FF00'..getPlayerCount()..'#FFFFFF / #FF0000'..getMaxPlayers()..'#FFFFFF]: '..getPlayerName(thePlayer)..' - #FFFFFF[#00FF00✔#FFFFFF] - [#00FF00Acabou de entrar#FFFFFF] - País [#00FF00'..city..' #FFFFFF-#00FF00 '..country..'#FFFFFF]', getRootElement(), 255, 255, 255, true) onClientCrapBox2(source, "join", "#FFFFFF"..getPlayerName(thePlayer).."#FFFFFF - #00ff00Entrou#FFFFFF - #00FF00"..city.."#FFFFFF / #00FF00"..country.."#FFFFFF - #00ff00"..getPlayerCount()..'#FFFFFF / #FF0000'..getMaxPlayers().."#FFFFFF",exports.admin:getPlayerCountry(thePlayer)) end function setarPais(source, cmd, pais) setElementData(source,"Country", pais) end addCommandHandler("setarpais", setarPais) --[[addEventHandler('onPlayerJoin',g_Root, function () local ping = getPlayerPing(source) local country = exports['admin']:getPlayerCountry(source) setElementData(source,'Country',country) --outputChatBox('#1DF0A3✘#ffffff'..getPlayerName(source)..'#1DF0A3✘ #0498A0: - [#00ff00✔#0498A0] - [#00ff00Entrou no servidor#0498A0] - País [#00ff00'.. countryNames[tostring(country)] ..'#0498A0] - [#00ff00'..getPlayerCount()..'#0498A0/#ff0000'..getMaxPlayers()..'#0498A0]', getRootElement(), 255, 255, 255, true) onClientCrapBox2(source, "join", "#00FFFF"..getPlayerName(source).."#FFFFFF - [#00ff00Entrou#FFFFFF] - País - [#00ff00".. countryNames[tostring(country)] .."#FFFFFF] - [#00ff00"..getPlayerCount()..'#FFFFFF / #FF0000'..getMaxPlayers().."#FFFFFF]",exports.admin:getPlayerCountry(source)) end )~~]] addEventHandler('onPlayerJoin',g_Root, function () outputChatBox ('#00FFFF●#FFFFFF¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯#00FFFF●', source, 255, 255, 255, true) outputChatBox (' #00FFFF● #FFFFFFSeja Muito Bem Vindo Ao Brasileiros Vivendo E Aprendendo ! '..getPlayerName(source)..'', source, 255, 255, 255, true) outputChatBox (' #00FFFF● #FFFFFFServidor com mods exclusivos, divirta-se!', source, 255, 255, 255, true) outputChatBox (' #00FFFF● #FFFFFFPrecisando de carro ou moto - #00FFFF/#FFFFFFmoto e #00FFFF/#FFFFFFcarro', source, 255, 255, 255, true) outputChatBox (' #00FFFF● #FFFFFFSempre iremos trazer o melhor para você, bom jogo#00FFFF!', source, 255, 255, 255, true) outputChatBox (' #00FFFF● #FFFFFFPlataforma De Comunicação TeamSpeak E RC-RaidCall- #00FFFFRC#FFFFFF13928175 e #00FFFFTS3#FFFFFFbvabr.ts3-server.top', source, 255, 255, 255, true) outputChatBox ('#00FFFF●#FFFFFF_________________________________________________________________#00FFFF●', source, 255, 255, 255, true) setElementData(source, "Login_Anti_Lag", true) end) ●¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯● ✯ Servidor Bem Otimizado ! ✯ Carros Brasileiros e Carros Importados ✯ Crie Sua Corp Ou Gangue, Facil E Barato ! ✯ Tudo isso e muito mais carregue e Explore ✯ Nosso lema é deixar nossa marca no MTABR trazendo pra você o melhor! ●¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯●]] addEventHandler('onPlayerChangeNick', g_Root, function(oldNick, newNick) --outputChatBox('#1DF0A3✘#FFFFFFAlterou nick#1DF0A3✘#0498A0: #ffffff'..oldNick..'#0498A0 - alterou o seu nick para #ffffff'..newNick, getRootElement(), 255, 255, 255, true) onClientCrapBox2(source, "nickchange", ""..oldNick.."#ffffff - alterou o seu nick para #ffffff"..newNick.."") end ) function ocultact () showPlayerHudComponent ( source, "all", true ) end addEventHandler ( "onPlayerJoin", getRootElement(), ocultact ) addEventHandler('onPlayerQuit', g_Root, function(reason) if (reason == "Quit") then onClientCrapBox2(source, "quit", ""..getPlayerName(source).."#FFFFFF - #ff0000Desconectou#FFFFFF - #FF0000Saiu#FFFFFF") -- outputChatBox('#1DF0A3✘#ffffff'..getPlayerName(source)..'#1DF0A3✘ #0498A0: - [#FF0000✖#0498A0] - [#ff0000Saiu do servidor#0498A0] - Motivo: [#FF0000Saiu#0498A0]', getRootElement(), 255, 255, 255, true) elseif (reason == "Timed out") then onClientCrapBox2(source, "quit", ""..getPlayerName(source).."#FFFFFF - #ff0000Desconectou#FFFFFF - #FF0000Net caiu#FFFFFF") -- outputChatBox('#1DF0A3✘#ffffff'..getPlayerName(source)..'#1DF0A3✘ #0498A0: - [#FF0000✖#0498A0] - [#ff0000Saiu do servidor#0498A0] - Motivo: [#FF0000Net caiu#0498A0]', getRootElement(), 255, 255, 255, true) elseif (reason == "Banned") then --outputChatBox('#1DF0A3✘#ffffff'..getPlayerName(source)..'#1DF0A3✘ #0498A0: - [#FF0000✖#0498A0] - [#ff0000Saiu do servidor#0498A0] - Motivo: [#FF0000Foi Ban Te Conhecer !#0498A0]', getRootElement(), 255, 255, 255, true) onClientCrapBox2(source, "quit", ""..getPlayerName(source).."#FFFFFF - #ff0000Desconectou#FFFFFF - #FF0000Foi Ban Te Conhecer !#FFFFFF") elseif (reason == "Kicked") then onClientCrapBox2(source, "quit", ""..getPlayerName(source).."#FFFFFF - #ff0000Desconectou#FFFFFF - #FF0000Tomou Um Chute ! expulso#FFFFFF") --outputChatBox('#1DF0A3✘#ffffff'..getPlayerName(source)..'#1DF0A3✘ #0498A0: - [#FF0000✖#0498A0] - [#ff0000Saiu do servidor#0498A0] - Motivo: [#FF0000Tomou Um Chute !#0498A0]', getRootElement(), 255, 255, 255, true) end end ) Link to comment
Other Languages Moderators Lord Henry Posted February 9, 2018 Other Languages Moderators Share Posted February 9, 2018 (edited) Não tem como saber. Vc não falou pra que ele serve. E também não entendi a utilidade da primeira linha, já que vc poderia usar root pois ele já é = getRootElement() Você inclusive deixou comentários no código mas sem marcar como comentário, dai ele está tentando interpretar seu comentário como código. (linha 280) Edited February 9, 2018 by Lord Henry Link to comment
Jaaaack Posted February 9, 2018 Author Share Posted February 9, 2018 15 minutes ago, Lord Henry said: Não tem como saber. Vc não falou pra que ele serve. E também não entendi uma utilidade da primeira linha, já que vc deve usar root pois ele já é = getRootElement () Você inclusive deixou comentários sem código como sem parentesco como comentário, nao está tentando interpretar seu comentário como código. (linha 280) Amigo e um scrip de JoinQuit 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