Jump to content

Problem .. Joinquit


MrXz

Recommended Posts

Hi all .. I need help with this script ...

g_Root = getRootElement() 
countryNames = { 
    ['AD'] = 'Andorra', 
    ['AE'] = 'United Arab Emirates', 
    ['AF'] = 'Afghanistan', 
    ['AG'] = 'Antigua and Barbuda', 
    ['AI'] = 'Anguilla', 
    ['AL'] = 'Albania', 
    ['AM'] = 'Armenia', 
    ['AO'] = 'Angola', 
    ['AP'] = 'ARIPO', 
    ['AR'] = 'Argentina', 
    ['AT'] = 'Austria', 
    ['AU'] = 'Australia', 
    ['AW'] = 'Aruba', 
    ['AZ'] = 'Azerbaijan', 
    ['BA'] = 'Bosnia and Herzegovina', 
    ['BB'] = 'Barbados', 
    ['BD'] = 'Bangladesh', 
    ['BE'] = 'Belgium', 
    ['BF'] = 'Burkina Faso', 
    ['BG'] = 'Bulgaria', 
    ['BH'] = 'Bahrain', 
    ['BI'] = 'Burundi', 
    ['BJ'] = 'Benin', 
    ['BM'] = 'Bermuda', 
    ['BN'] = 'Brunei Darussalam', 
    ['BO'] = 'Bolivia', 
    ['BQ'] = 'Bonaire', 
    ['BR'] = 'Brazil', 
    ['BS'] = 'Bahamas', 
    ['BT'] = 'Bhutan', 
    ['BV'] = 'Bouvet Island', 
    ['BW'] = 'Botswana', 
    ['BY'] = 'Belarus', 
    ['BZ'] = 'Belize', 
    ['CA'] = 'Canada', 
    ['CD'] = 'Congo', 
    ['CF'] = 'Central African Republic', 
    ['CG'] = 'Congo', 
    ['CH'] = 'Switzerland', 
    ['CI'] = 'Cote dIvoire', 
    ['CK'] = 'Cook Islands', 
    ['CL'] = 'Chile', 
    ['CM'] = 'Cameroon', 
    ['CN'] = 'China', 
    ['CO'] = 'Colombia', 
    ['CR'] = 'Costa Rica', 
    ['CU'] = 'Cuba', 
    ['CV'] = 'Cape Verde', 
    ['CW'] = 'Curacao', 
    ['CY'] = 'Cyprus', 
    ['CZ'] = 'Czech Republic', 
    ['DE'] = 'Germany', 
    ['DJ'] = 'Djibouti', 
    ['DK'] = 'Denmark', 
    ['DM'] = 'Dominica', 
    ['DO'] = 'Dominican Republic', 
    ['DZ'] = 'Algeria', 
    ['EC'] = 'Ecuador', 
    ['EE'] = 'Estonia', 
    ['EG'] = 'Egypt', 
    ['EH'] = 'Western Sahara', 
    ['ER'] = 'Eritrea', 
    ['ES'] = 'Spain', 
    ['ET'] = 'Ethiopia', 
    ['FI'] = 'Finland', 
    ['FJ'] = 'Fiji', 
    ['FK'] = 'Malvinas', 
    ['FO'] = 'Faroe Islands', 
    ['FR'] = 'France', 
    ['GA'] = 'Gabon', 
    ['GB'] = 'United Kingdom', 
    ['GD'] = 'Grenada', 
    ['GE'] = 'Georgia', 
    ['GG'] = 'Guernsey', 
    ['GH'] = 'Ghana', 
    ['GI'] = 'Gibraltar', 
    ['GL'] = 'Greenland', 
    ['GM'] = 'Gambia', 
    ['GN'] = 'Guinea', 
    ['GQ'] = 'Equatorial Guinea', 
    ['GR'] = 'Greece', 
    ['GT'] = 'Guatemala', 
    ['GW'] = 'Guinea-Bissau', 
    ['GY'] = 'Guyana', 
    ['HN'] = 'Honduras', 
    ['HR'] = 'Croatia', 
    ['HT'] = 'Haiti', 
    ['HU'] = 'Hungary', 
    ['ID'] = 'Indonesia', 
    ['IE'] = 'Ireland', 
    ['IL'] = 'Israel', 
    ['IM'] = 'Isle of Man', 
    ['IN'] = 'India', 
    ['IQ'] = 'Iraq', 
    ['IR'] = 'Iran', 
    ['IS'] = 'Iceland', 
    ['IT'] = 'Italy', 
    ['JE'] = 'Jersey', 
    ['JM'] = 'Jamaica', 
    ['JO'] = 'Jordan', 
    ['JP'] = 'Japan', 
    ['KE'] = 'Kenya', 
    ['KG'] = 'Kyrgyzstan', 
    ['KH'] = 'Cambodia', 
    ['KI'] = 'Kiribati', 
    ['KM'] = 'Comoros', 
    ['KN'] = 'Saint Kitts and Nevis', 
    ['KP'] = 'Korea', 
    ['KR'] = 'Korea', 
    ['KW'] = 'Kuwait', 
    ['KY'] = 'Cayman Islands', 
    ['KZ'] = 'Kazakhstan', 
    ['LA'] = 'Lao Peoples Republic', 
    ['LB'] = 'Lebanon', 
    ['LC'] = 'Saint Lucia', 
    ['LI'] = 'Liechtenstein', 
    ['LK'] = 'Sri Lanka', 
    ['LR'] = 'Liberia', 
    ['LS'] = 'Lesotho', 
    ['LT'] = 'Lithuania', 
    ['LU'] = 'Luxembourg', 
    ['LV'] = 'Latvia', 
    ['LY'] = 'Libyan Arab Jamahiriya', 
    ['MA'] = 'Morocco', 
    ['MC'] = 'Monaco', 
    ['MD'] = 'Moldova', 
    ['ME'] = 'Montenegro', 
    ['MG'] = 'Madagascar', 
    ['MK'] = 'Macedonia', 
    ['ML'] = 'Mali', 
    ['MM'] = 'Myanmar', 
    ['MN'] = 'Mongolia', 
    ['MO'] = 'Macao', 
    ['MP'] = 'Northern Mariana Islands', 
    ['MR'] = 'Mauritania', 
    ['MS'] = 'Montserrat', 
    ['MT'] = 'Malta', 
    ['MU'] = 'Mauritius', 
    ['MV'] = 'Maldives', 
    ['MW'] = 'Malawi', 
    ['MX'] = 'Mexico', 
    ['MY'] = 'Malaysia', 
    ['MZ'] = 'Mozambique', 
    ['NA'] = 'Namibia', 
    ['NE'] = 'Niger', 
    ['NG'] = 'Nigeria', 
    ['NI'] = 'Nicaragua', 
    ['NL'] = 'Netherlands', 
    ['NO'] = 'Norway', 
    ['NP'] = 'Nepal', 
    ['NR'] = 'Nauru', 
    ['NZ'] = 'New Zealand', 
    ['OM'] = 'Oman', 
    ['PA'] = 'Panama', 
    ['PE'] = 'Peru', 
    ['PG'] = 'Papua New Guinea', 
    ['PH'] = 'Philippines', 
    ['PK'] = 'Pakistan', 
    ['PL'] = 'Poland', 
    ['PT'] = 'Portugal', 
    ['PW'] = 'Palau', 
    ['PY'] = 'Paraguay', 
    ['QA'] = 'Qatar', 
    ['RO'] = 'Romania', 
    ['RS'] = 'Serbia', 
    ['RU'] = 'Russian Federation', 
    ['RW'] = 'Rwanda', 
    ['SA'] = 'Saudi Arabia', 
    ['SB'] = 'Solomon Islands', 
    ['SC'] = 'Seychelles', 
    ['SD'] = 'Sudan', 
    ['SE'] = 'Sweden', 
    ['SG'] = 'Singapore', 
    ['SH'] = 'Saint Helena', 
    ['SI'] = 'Slovenia', 
    ['SK'] = 'Slovakia', 
    ['SL'] = 'Sierra Leone', 
    ['SM'] = 'San Marino', 
    ['SN'] = 'Senegal', 
    ['SO'] = 'Somalia', 
    ['SR'] = 'Suriname', 
    ['ST'] = 'Sao Tome and Principe', 
    ['SV'] = 'Salvador', 
    ['SX'] = 'Sint Maarten (Dutch part)', 
    ['SY'] = 'Syrian Arab Republic', 
    ['SZ'] = 'Swaziland', 
    ['TC'] = 'Turks and Caicos Islands', 
    ['TD'] = 'Chad', 
    ['TG'] = 'Togo', 
    ['TH'] = 'Thailand', 
    ['TJ'] = 'Tajikistan', 
    ['TL'] = 'TimorLeste', 
    ['TM'] = 'Turkmenistan', 
    ['TN'] = 'Tunisia', 
    ['TO'] = 'Tonga', 
    ['TR'] = 'Turkey', 
    ['TT'] = 'Trinidad and Tobago', 
    ['TV'] = 'Tuvalu', 
    ['TW'] = 'Taiwan', 
    ['TZ'] = 'Tanzania', 
    ['UA'] = 'Ukraine', 
    ['UG'] = 'Uganda', 
    ['US'] = 'United States of America', 
    ['UY'] = 'Uruguay', 
    ['UZ'] = 'Uzbekistan', 
    ['VA'] = 'Holy See', 
    ['VC'] = 'Saint Vincent', 
    ['VE'] = 'Venezuela', 
    ['VG'] = 'Virgin Islands', 
    ['VN'] = 'Viet Nam', 
    ['VU'] = 'Vanuatu', 
    ['WS'] = 'Samoa', 
    ['YE'] = 'Yemen', 
    ['ZA'] = 'South Africa', 
    ['ZM'] = 'Zambia', 
    ['ZW'] = 'Zimbabwe' 
} 
    addEventHandler("onPlayerJoin", getRootElement(), 
    function() 
        local country = exports['admin']:getPlayerCountry(source) 
        if country then 
            setElementData(source, "Country", country) 
            local thecountry = countryNames[country] or country  --this is the only addition to FatalTerror's script. 
            outputChatBox('[JOIN] #ffffff' .. getPlayerName(source) .. '#00FF09 has joined the server From #FF8900[' .. tostring(thecountry) .. '] ', getRootElement(), 2, 255, 2, true) 
        end 
    end)  
addEventHandler('onPlayerChangeNick', g_Root, 
    function(oldNick, newNick) 
        outputChatBox('[Change-Nick] #ffffff' .. oldNick .. '#03B4FF is now known as #ffffff' .. newNick, getRootElement(), 3, 180, 255, true) 
    end 
) 
  
addEventHandler('onPlayerQuit', g_Root, 
    function(reason) 
        outputChatBox('[' .. reason .. '] #ffffff' .. getPlayerName(source) .. ' #FE0000has left the Server.', getRootElement(), 255, 0, 0, true) 
    end 
) 

when I put it on the server .. does not work .. not get the name of the player enters the server.. please Help ^^!

Link to comment
Hi all .. I need help with this script ...
g_Root = getRootElement() 
countryNames = { 
    ['AD'] = 'Andorra', 
    ['AE'] = 'United Arab Emirates', 
    ['AF'] = 'Afghanistan', 
    ['AG'] = 'Antigua and Barbuda', 
    ['AI'] = 'Anguilla', 
    ['AL'] = 'Albania', 
    ['AM'] = 'Armenia', 
    ['AO'] = 'Angola', 
    ['AP'] = 'ARIPO', 
    ['AR'] = 'Argentina', 
    ['AT'] = 'Austria', 
    ['AU'] = 'Australia', 
    ['AW'] = 'Aruba', 
    ['AZ'] = 'Azerbaijan', 
    ['BA'] = 'Bosnia and Herzegovina', 
    ['BB'] = 'Barbados', 
    ['BD'] = 'Bangladesh', 
    ['BE'] = 'Belgium', 
    ['BF'] = 'Burkina Faso', 
    ['BG'] = 'Bulgaria', 
    ['BH'] = 'Bahrain', 
    ['BI'] = 'Burundi', 
    ['BJ'] = 'Benin', 
    ['BM'] = 'Bermuda', 
    ['BN'] = 'Brunei Darussalam', 
    ['BO'] = 'Bolivia', 
    ['BQ'] = 'Bonaire', 
    ['BR'] = 'Brazil', 
    ['BS'] = 'Bahamas', 
    ['BT'] = 'Bhutan', 
    ['BV'] = 'Bouvet Island', 
    ['BW'] = 'Botswana', 
    ['BY'] = 'Belarus', 
    ['BZ'] = 'Belize', 
    ['CA'] = 'Canada', 
    ['CD'] = 'Congo', 
    ['CF'] = 'Central African Republic', 
    ['CG'] = 'Congo', 
    ['CH'] = 'Switzerland', 
    ['CI'] = 'Cote dIvoire', 
    ['CK'] = 'Cook Islands', 
    ['CL'] = 'Chile', 
    ['CM'] = 'Cameroon', 
    ['CN'] = 'China', 
    ['CO'] = 'Colombia', 
    ['CR'] = 'Costa Rica', 
    ['CU'] = 'Cuba', 
    ['CV'] = 'Cape Verde', 
    ['CW'] = 'Curacao', 
    ['CY'] = 'Cyprus', 
    ['CZ'] = 'Czech Republic', 
    ['DE'] = 'Germany', 
    ['DJ'] = 'Djibouti', 
    ['DK'] = 'Denmark', 
    ['DM'] = 'Dominica', 
    ['DO'] = 'Dominican Republic', 
    ['DZ'] = 'Algeria', 
    ['EC'] = 'Ecuador', 
    ['EE'] = 'Estonia', 
    ['EG'] = 'Egypt', 
    ['EH'] = 'Western Sahara', 
    ['ER'] = 'Eritrea', 
    ['ES'] = 'Spain', 
    ['ET'] = 'Ethiopia', 
    ['FI'] = 'Finland', 
    ['FJ'] = 'Fiji', 
    ['FK'] = 'Malvinas', 
    ['FO'] = 'Faroe Islands', 
    ['FR'] = 'France', 
    ['GA'] = 'Gabon', 
    ['GB'] = 'United Kingdom', 
    ['GD'] = 'Grenada', 
    ['GE'] = 'Georgia', 
    ['GG'] = 'Guernsey', 
    ['GH'] = 'Ghana', 
    ['GI'] = 'Gibraltar', 
    ['GL'] = 'Greenland', 
    ['GM'] = 'Gambia', 
    ['GN'] = 'Guinea', 
    ['GQ'] = 'Equatorial Guinea', 
    ['GR'] = 'Greece', 
    ['GT'] = 'Guatemala', 
    ['GW'] = 'Guinea-Bissau', 
    ['GY'] = 'Guyana', 
    ['HN'] = 'Honduras', 
    ['HR'] = 'Croatia', 
    ['HT'] = 'Haiti', 
    ['HU'] = 'Hungary', 
    ['ID'] = 'Indonesia', 
    ['IE'] = 'Ireland', 
    ['IL'] = 'Israel', 
    ['IM'] = 'Isle of Man', 
    ['IN'] = 'India', 
    ['IQ'] = 'Iraq', 
    ['IR'] = 'Iran', 
    ['IS'] = 'Iceland', 
    ['IT'] = 'Italy', 
    ['JE'] = 'Jersey', 
    ['JM'] = 'Jamaica', 
    ['JO'] = 'Jordan', 
    ['JP'] = 'Japan', 
    ['KE'] = 'Kenya', 
    ['KG'] = 'Kyrgyzstan', 
    ['KH'] = 'Cambodia', 
    ['KI'] = 'Kiribati', 
    ['KM'] = 'Comoros', 
    ['KN'] = 'Saint Kitts and Nevis', 
    ['KP'] = 'Korea', 
    ['KR'] = 'Korea', 
    ['KW'] = 'Kuwait', 
    ['KY'] = 'Cayman Islands', 
    ['KZ'] = 'Kazakhstan', 
    ['LA'] = 'Lao Peoples Republic', 
    ['LB'] = 'Lebanon', 
    ['LC'] = 'Saint Lucia', 
    ['LI'] = 'Liechtenstein', 
    ['LK'] = 'Sri Lanka', 
    ['LR'] = 'Liberia', 
    ['LS'] = 'Lesotho', 
    ['LT'] = 'Lithuania', 
    ['LU'] = 'Luxembourg', 
    ['LV'] = 'Latvia', 
    ['LY'] = 'Libyan Arab Jamahiriya', 
    ['MA'] = 'Morocco', 
    ['MC'] = 'Monaco', 
    ['MD'] = 'Moldova', 
    ['ME'] = 'Montenegro', 
    ['MG'] = 'Madagascar', 
    ['MK'] = 'Macedonia', 
    ['ML'] = 'Mali', 
    ['MM'] = 'Myanmar', 
    ['MN'] = 'Mongolia', 
    ['MO'] = 'Macao', 
    ['MP'] = 'Northern Mariana Islands', 
    ['MR'] = 'Mauritania', 
    ['MS'] = 'Montserrat', 
    ['MT'] = 'Malta', 
    ['MU'] = 'Mauritius', 
    ['MV'] = 'Maldives', 
    ['MW'] = 'Malawi', 
    ['MX'] = 'Mexico', 
    ['MY'] = 'Malaysia', 
    ['MZ'] = 'Mozambique', 
    ['NA'] = 'Namibia', 
    ['NE'] = 'Niger', 
    ['NG'] = 'Nigeria', 
    ['NI'] = 'Nicaragua', 
    ['NL'] = 'Netherlands', 
    ['NO'] = 'Norway', 
    ['NP'] = 'Nepal', 
    ['NR'] = 'Nauru', 
    ['NZ'] = 'New Zealand', 
    ['OM'] = 'Oman', 
    ['PA'] = 'Panama', 
    ['PE'] = 'Peru', 
    ['PG'] = 'Papua New Guinea', 
    ['PH'] = 'Philippines', 
    ['PK'] = 'Pakistan', 
    ['PL'] = 'Poland', 
    ['PT'] = 'Portugal', 
    ['PW'] = 'Palau', 
    ['PY'] = 'Paraguay', 
    ['QA'] = 'Qatar', 
    ['RO'] = 'Romania', 
    ['RS'] = 'Serbia', 
    ['RU'] = 'Russian Federation', 
    ['RW'] = 'Rwanda', 
    ['SA'] = 'Saudi Arabia', 
    ['SB'] = 'Solomon Islands', 
    ['SC'] = 'Seychelles', 
    ['SD'] = 'Sudan', 
    ['SE'] = 'Sweden', 
    ['SG'] = 'Singapore', 
    ['SH'] = 'Saint Helena', 
    ['SI'] = 'Slovenia', 
    ['SK'] = 'Slovakia', 
    ['SL'] = 'Sierra Leone', 
    ['SM'] = 'San Marino', 
    ['SN'] = 'Senegal', 
    ['SO'] = 'Somalia', 
    ['SR'] = 'Suriname', 
    ['ST'] = 'Sao Tome and Principe', 
    ['SV'] = 'Salvador', 
    ['SX'] = 'Sint Maarten (Dutch part)', 
    ['SY'] = 'Syrian Arab Republic', 
    ['SZ'] = 'Swaziland', 
    ['TC'] = 'Turks and Caicos Islands', 
    ['TD'] = 'Chad', 
    ['TG'] = 'Togo', 
    ['TH'] = 'Thailand', 
    ['TJ'] = 'Tajikistan', 
    ['TL'] = 'TimorLeste', 
    ['TM'] = 'Turkmenistan', 
    ['TN'] = 'Tunisia', 
    ['TO'] = 'Tonga', 
    ['TR'] = 'Turkey', 
    ['TT'] = 'Trinidad and Tobago', 
    ['TV'] = 'Tuvalu', 
    ['TW'] = 'Taiwan', 
    ['TZ'] = 'Tanzania', 
    ['UA'] = 'Ukraine', 
    ['UG'] = 'Uganda', 
    ['US'] = 'United States of America', 
    ['UY'] = 'Uruguay', 
    ['UZ'] = 'Uzbekistan', 
    ['VA'] = 'Holy See', 
    ['VC'] = 'Saint Vincent', 
    ['VE'] = 'Venezuela', 
    ['VG'] = 'Virgin Islands', 
    ['VN'] = 'Viet Nam', 
    ['VU'] = 'Vanuatu', 
    ['WS'] = 'Samoa', 
    ['YE'] = 'Yemen', 
    ['ZA'] = 'South Africa', 
    ['ZM'] = 'Zambia', 
    ['ZW'] = 'Zimbabwe' 
} 
    addEventHandler("onPlayerJoin", getRootElement(), 
    function() 
        local country = exports['admin']:getPlayerCountry(source) 
        if country then 
            setElementData(source, "Country", country) 
            local thecountry = countryNames[country] or country  --this is the only addition to FatalTerror's script. 
            outputChatBox('[JOIN] #ffffff' .. getPlayerName(source) .. '#00FF09 has joined the server From #FF8900[' .. tostring(thecountry) .. '] ', getRootElement(), 2, 255, 2, true) 
        end 
    end)  
addEventHandler('onPlayerChangeNick', g_Root, 
    function(oldNick, newNick) 
        outputChatBox('[Change-Nick] #ffffff' .. oldNick .. '#03B4FF is now known as #ffffff' .. newNick, getRootElement(), 3, 180, 255, true) 
    end 
) 
  
addEventHandler('onPlayerQuit', g_Root, 
    function(reason) 
        outputChatBox('[' .. reason .. '] #ffffff' .. getPlayerName(source) .. ' #FE0000has left the Server.', getRootElement(), 255, 0, 0, true) 
    end 
) 

when I put it on the server .. does not work .. not get the name of the player enters the server.. please Help ^^!

everything seems to be good , make sure you have the latest Admin panel version [ mtasa-resources-r827.zip : http://code.google.com/p/mtasa-resource ... p&can=2&q= ]

Link to comment

Try

Server

  
assert( exports.Scoreboard:addScoreboardColumn( "Country",root,2,150.0 ) ) 
  
local countryNames = { 
    ['AD'] = 'Andorra', 
    ['AE'] = 'United Arab Emirates', 
    ['AF'] = 'Afghanistan', 
    ['AG'] = 'Antigua and Barbuda', 
    ['AI'] = 'Anguilla', 
    ['AL'] = 'Albania', 
    ['AM'] = 'Armenia', 
    ['AO'] = 'Angola', 
    ['AP'] = 'ARIPO', 
    ['AR'] = 'Argentina', 
    ['AT'] = 'Austria', 
    ['AU'] = 'Australia', 
    ['AW'] = 'Aruba', 
    ['AZ'] = 'Azerbaijan', 
    ['BA'] = 'Bosnia and Herzegovina', 
    ['BB'] = 'Barbados', 
    ['BD'] = 'Bangladesh', 
    ['BE'] = 'Belgium', 
    ['BF'] = 'Burkina Faso', 
    ['BG'] = 'Bulgaria', 
    ['BH'] = 'Bahrain', 
    ['BI'] = 'Burundi', 
    ['BJ'] = 'Benin', 
    ['BM'] = 'Bermuda', 
    ['BN'] = 'Brunei Darussalam', 
    ['BO'] = 'Bolivia', 
    ['BQ'] = 'Bonaire', 
    ['BR'] = 'Brazil', 
    ['BS'] = 'Bahamas', 
    ['BT'] = 'Bhutan', 
    ['BV'] = 'Bouvet Island', 
    ['BW'] = 'Botswana', 
    ['BY'] = 'Belarus', 
    ['BZ'] = 'Belize', 
    ['CA'] = 'Canada', 
    ['CD'] = 'Congo', 
    ['CF'] = 'Central African Republic', 
    ['CG'] = 'Congo', 
    ['CH'] = 'Switzerland', 
    ['CI'] = 'Cote d?Ivoire', 
    ['CK'] = 'Cook Islands', 
    ['CL'] = 'Chile', 
    ['CM'] = 'Cameroon', 
    ['CN'] = 'China', 
    ['CO'] = 'Colombia', 
    ['CR'] = 'Costa Rica', 
    ['CU'] = 'Cuba', 
    ['CV'] = 'Cape Verde', 
    ['CW'] = 'Curacao', 
    ['CY'] = 'Cyprus', 
    ['CZ'] = 'Czech Republic', 
    ['DE'] = 'Germany', 
    ['DJ'] = 'Djibouti', 
    ['DK'] = 'Denmark', 
    ['DM'] = 'Dominica', 
    ['DO'] = 'Dominican Republic', 
    ['DZ'] = 'Algeria', 
    ['EC'] = 'Ecuador', 
    ['EE'] = 'Estonia', 
    ['EG'] = 'Egypt', 
    ['EH'] = 'Western Sahara', 
    ['ER'] = 'Eritrea', 
    ['ES'] = 'Spain', 
    ['ET'] = 'Ethiopia', 
    ['FI'] = 'Finland', 
    ['FJ'] = 'Fiji', 
    ['FK'] = 'Malvinas', 
    ['FO'] = 'Faroe Islands', 
    ['FR'] = 'France', 
    ['GA'] = 'Gabon', 
    ['GB'] = 'United Kingdom', 
    ['GD'] = 'Grenada', 
    ['GE'] = 'Georgia', 
    ['GG'] = 'Guernsey', 
    ['GH'] = 'Ghana', 
    ['GI'] = 'Gibraltar', 
    ['GL'] = 'Greenland', 
    ['GM'] = 'Gambia', 
    ['GN'] = 'Guinea', 
    ['GQ'] = 'Equatorial Guinea', 
    ['GR'] = 'Greece', 
    ['GT'] = 'Guatemala', 
    ['GW'] = 'Guinea-Bissau', 
    ['GY'] = 'Guyana', 
    ['HN'] = 'Honduras', 
    ['HR'] = 'Croatia', 
    ['HT'] = 'Haiti', 
    ['HU'] = 'Hungary', 
    ['ID'] = 'Indonesia', 
    ['IE'] = 'Ireland', 
    ['IL'] = 'Israel', 
    ['IM'] = 'Isle of Man', 
    ['IN'] = 'India', 
    ['IQ'] = 'Iraq', 
    ['IR'] = 'Iran', 
    ['IS'] = 'Iceland', 
    ['IT'] = 'Italy', 
    ['JE'] = 'Jersey', 
    ['JM'] = 'Jamaica', 
    ['JO'] = 'Jordan', 
    ['JP'] = 'Japan', 
    ['KE'] = 'Kenya', 
    ['KG'] = 'Kyrgyzstan', 
    ['KH'] = 'Cambodia', 
    ['KI'] = 'Kiribati', 
    ['KM'] = 'Comoros', 
    ['KN'] = 'Saint Kitts and Nevis', 
    ['KP'] = 'Korea', 
    ['KR'] = 'Korea', 
    ['KW'] = 'Kuwait', 
    ['KY'] = 'Cayman Islands', 
    ['KZ'] = 'Kazakhstan', 
    ['LA'] = 'Lao People?s Republic', 
    ['LB'] = 'Lebanon', 
    ['LC'] = 'Saint Lucia', 
    ['LI'] = 'Liechtenstein', 
    ['LK'] = 'Sri Lanka', 
    ['LR'] = 'Liberia', 
    ['LS'] = 'Lesotho', 
    ['LT'] = 'Lithuania', 
    ['LU'] = 'Luxembourg', 
    ['LV'] = 'Latvia', 
    ['LY'] = 'Libyan Arab Jamahiriya', 
    ['MA'] = 'Morocco', 
    ['MC'] = 'Monaco', 
    ['MD'] = 'Moldova', 
    ['ME'] = 'Montenegro', 
    ['MG'] = 'Madagascar', 
    ['MK'] = 'Macedonia', 
    ['ML'] = 'Mali', 
    ['MM'] = 'Myanmar', 
    ['MN'] = 'Mongolia', 
    ['MO'] = 'Macao', 
    ['MP'] = 'Northern Mariana Islands', 
    ['MR'] = 'Mauritania', 
    ['MS'] = 'Montserrat', 
    ['MT'] = 'Malta', 
    ['MU'] = 'Mauritius', 
    ['MV'] = 'Maldives', 
    ['MW'] = 'Malawi', 
    ['MX'] = 'Mexico', 
    ['MY'] = 'Malaysia', 
    ['MZ'] = 'Mozambique', 
    ['NA'] = 'Namibia', 
    ['NE'] = 'Niger', 
    ['NG'] = 'Nigeria', 
    ['NI'] = 'Nicaragua', 
    ['NL'] = 'Netherlands', 
    ['NO'] = 'Norway', 
    ['NP'] = 'Nepal', 
    ['NR'] = 'Nauru', 
    ['NZ'] = 'New Zealand', 
    ['OM'] = 'Oman', 
    ['PA'] = 'Panama', 
    ['PE'] = 'Peru', 
    ['PG'] = 'Papua New Guinea', 
    ['PH'] = 'Philippines', 
    ['PK'] = 'Pakistan', 
    ['PL'] = 'Poland', 
    ['PT'] = 'Portugal', 
    ['PW'] = 'Palau', 
    ['PY'] = 'Paraguay', 
    ['QA'] = 'Qatar', 
    ['RO'] = 'Romania', 
    ['RS'] = 'Serbia', 
    ['RU'] = 'Russian Federation', 
    ['RW'] = 'Rwanda', 
    ['SA'] = 'Saudi Arabia', 
    ['SB'] = 'Solomon Islands', 
    ['SC'] = 'Seychelles', 
    ['SD'] = 'Sudan', 
    ['SE'] = 'Sweden', 
    ['SG'] = 'Singapore', 
    ['SH'] = 'Saint Helena', 
    ['SI'] = 'Slovenia', 
    ['SK'] = 'Slovakia', 
    ['SL'] = 'Sierra Leone', 
    ['SM'] = 'San Marino', 
    ['SN'] = 'Senegal', 
    ['SO'] = 'Somalia', 
    ['SR'] = 'Suriname', 
    ['ST'] = 'Sao Tome and Principe', 
    ['SV'] = 'Salvador', 
    ['SX'] = 'Sint Maarten (Dutch part)', 
    ['SY'] = 'Syrian Arab Republic', 
    ['SZ'] = 'Swaziland', 
    ['TC'] = 'Turks and Caicos Islands', 
    ['TD'] = 'Chad', 
    ['TG'] = 'Togo', 
    ['TH'] = 'Thailand', 
    ['TJ'] = 'Tajikistan', 
    ['TL'] = 'Timor?Leste', 
    ['TM'] = 'Turkmenistan', 
    ['TN'] = 'Tunisia', 
    ['TO'] = 'Tonga', 
    ['TR'] = 'Turkey', 
    ['TT'] = 'Trinidad and Tobago', 
    ['TV'] = 'Tuvalu', 
    ['TW'] = 'Taiwan', 
    ['TZ'] = 'Tanzania', 
    ['UA'] = 'Ukraine', 
    ['UG'] = 'Uganda', 
    ['US'] = 'United States of America', 
    ['UY'] = 'Uruguay', 
    ['UZ'] = 'Uzbekistan', 
    ['VA'] = 'Holy See', 
    ['VC'] = 'Saint Vincent', 
    ['VE'] = 'Venezuela', 
    ['VG'] = 'Virgin Islands', 
    ['VN'] = 'Viet Nam', 
    ['VU'] = 'Vanuatu', 
    ['WS'] = 'Samoa', 
    ['YE'] = 'Yemen', 
    ['ZA'] = 'South Africa', 
    ['ZM'] = 'Zambia', 
    ['ZW'] = 'Zimbabwe' 
} 
addEventHandler( "onPlayerJoin", root, 
    function( ) 
        local country = exports['admin']:getPlayerCountry( source ) 
        if country then 
            local thecountry = countryNames[ country ] or country 
            setElementData( source, "Country", thecountry ) 
            outputChatBox('[JOIN] #ffffff' .. getPlayerName( source ) .. '#00FF09 has joined the server\ 
            From #FF8900[' .. tostring( thecountry ) .. '] ', root, 2, 255, 2, true ) 
        end 
    end  
)  
addEventHandler( "onPlayerChangeNick", root, 
    function( oldNick, newNick ) 
        outputChatBox('[Change-Nick] #ffffff' .. oldNick .. '#03B4FF is now known as #ffffff' .. newNick, root, 3, 180, 255, true ) 
    end 
) 
  
addEventHandler( "onPlayerQuit", root, 
    function( reason ) 
        outputChatBox('[' .. reason .. '] #ffffff' .. getPlayerName( source ) .. ' #FE0000has left the Server.', root, 255, 0, 0, true ) 
    end 
) 

It should work.

And use /debugscript 3

I tested it now and it working

Link to comment
g_Root = getRootElement() 
  
exports.scoreboard:addScoreboardColumn("Country",root,2,150.0 ) ) 
  
countryNames = { 
    ['AD'] = 'Andorra', 
    ['AE'] = 'United Arab Emirates', 
    ['AF'] = 'Afghanistan', 
    ['AG'] = 'Antigua and Barbuda', 
    ['AI'] = 'Anguilla', 
    ['AL'] = 'Albania', 
    ['AM'] = 'Armenia', 
    ['AO'] = 'Angola', 
    ['AP'] = 'ARIPO', 
    ['AR'] = 'Argentina', 
    ['AT'] = 'Austria', 
    ['AU'] = 'Australia', 
    ['AW'] = 'Aruba', 
    ['AZ'] = 'Azerbaijan', 
    ['BA'] = 'Bosnia and Herzegovina', 
    ['BB'] = 'Barbados', 
    ['BD'] = 'Bangladesh', 
    ['BE'] = 'Belgium', 
    ['BF'] = 'Burkina Faso', 
    ['BG'] = 'Bulgaria', 
    ['BH'] = 'Bahrain', 
    ['BI'] = 'Burundi', 
    ['BJ'] = 'Benin', 
    ['BM'] = 'Bermuda', 
    ['BN'] = 'Brunei Darussalam', 
    ['BO'] = 'Bolivia', 
    ['BQ'] = 'Bonaire', 
    ['BR'] = 'Brazil', 
    ['BS'] = 'Bahamas', 
    ['BT'] = 'Bhutan', 
    ['BV'] = 'Bouvet Island', 
    ['BW'] = 'Botswana', 
    ['BY'] = 'Belarus', 
    ['BZ'] = 'Belize', 
    ['CA'] = 'Canada', 
    ['CD'] = 'Congo', 
    ['CF'] = 'Central African Republic', 
    ['CG'] = 'Congo', 
    ['CH'] = 'Switzerland', 
    ['CI'] = 'Cote d?Ivoire', 
    ['CK'] = 'Cook Islands', 
    ['CL'] = 'Chile', 
    ['CM'] = 'Cameroon', 
    ['CN'] = 'China', 
    ['CO'] = 'Colombia', 
    ['CR'] = 'Costa Rica', 
    ['CU'] = 'Cuba', 
    ['CV'] = 'Cape Verde', 
    ['CW'] = 'Curacao', 
    ['CY'] = 'Cyprus', 
    ['CZ'] = 'Czech Republic', 
    ['DE'] = 'Germany', 
    ['DJ'] = 'Djibouti', 
    ['DK'] = 'Denmark', 
    ['DM'] = 'Dominica', 
    ['DO'] = 'Dominican Republic', 
    ['DZ'] = 'Algeria', 
    ['EC'] = 'Ecuador', 
    ['EE'] = 'Estonia', 
    ['EG'] = 'Egypt', 
    ['EH'] = 'Western Sahara', 
    ['ER'] = 'Eritrea', 
    ['ES'] = 'Spain', 
    ['ET'] = 'Ethiopia', 
    ['FI'] = 'Finland', 
    ['FJ'] = 'Fiji', 
    ['FK'] = 'Malvinas', 
    ['FO'] = 'Faroe Islands', 
    ['FR'] = 'France', 
    ['GA'] = 'Gabon', 
    ['GB'] = 'United Kingdom', 
    ['GD'] = 'Grenada', 
    ['GE'] = 'Georgia', 
    ['GG'] = 'Guernsey', 
    ['GH'] = 'Ghana', 
    ['GI'] = 'Gibraltar', 
    ['GL'] = 'Greenland', 
    ['GM'] = 'Gambia', 
    ['GN'] = 'Guinea', 
    ['GQ'] = 'Equatorial Guinea', 
    ['GR'] = 'Greece', 
    ['GT'] = 'Guatemala', 
    ['GW'] = 'Guinea-Bissau', 
    ['GY'] = 'Guyana', 
    ['HN'] = 'Honduras', 
    ['HR'] = 'Croatia', 
    ['HT'] = 'Haiti', 
    ['HU'] = 'Hungary', 
    ['ID'] = 'Indonesia', 
    ['IE'] = 'Ireland', 
    ['IL'] = 'Israel', 
    ['IM'] = 'Isle of Man', 
    ['IN'] = 'India', 
    ['IQ'] = 'Iraq', 
    ['IR'] = 'Iran', 
    ['IS'] = 'Iceland', 
    ['IT'] = 'Italy', 
    ['JE'] = 'Jersey', 
    ['JM'] = 'Jamaica', 
    ['JO'] = 'Jordan', 
    ['JP'] = 'Japan', 
    ['KE'] = 'Kenya', 
    ['KG'] = 'Kyrgyzstan', 
    ['KH'] = 'Cambodia', 
    ['KI'] = 'Kiribati', 
    ['KM'] = 'Comoros', 
    ['KN'] = 'Saint Kitts and Nevis', 
    ['KP'] = 'Korea', 
    ['KR'] = 'Korea', 
    ['KW'] = 'Kuwait', 
    ['KY'] = 'Cayman Islands', 
    ['KZ'] = 'Kazakhstan', 
    ['LA'] = 'Lao People?s Republic', 
    ['LB'] = 'Lebanon', 
    ['LC'] = 'Saint Lucia', 
    ['LI'] = 'Liechtenstein', 
    ['LK'] = 'Sri Lanka', 
    ['LR'] = 'Liberia', 
    ['LS'] = 'Lesotho', 
    ['LT'] = 'Lithuania', 
    ['LU'] = 'Luxembourg', 
    ['LV'] = 'Latvia', 
    ['LY'] = 'Libyan Arab Jamahiriya', 
    ['MA'] = 'Morocco', 
    ['MC'] = 'Monaco', 
    ['MD'] = 'Moldova', 
    ['ME'] = 'Montenegro', 
    ['MG'] = 'Madagascar', 
    ['MK'] = 'Macedonia', 
    ['ML'] = 'Mali', 
    ['MM'] = 'Myanmar', 
    ['MN'] = 'Mongolia', 
    ['MO'] = 'Macao', 
    ['MP'] = 'Northern Mariana Islands', 
    ['MR'] = 'Mauritania', 
    ['MS'] = 'Montserrat', 
    ['MT'] = 'Malta', 
    ['MU'] = 'Mauritius', 
    ['MV'] = 'Maldives', 
    ['MW'] = 'Malawi', 
    ['MX'] = 'Mexico', 
    ['MY'] = 'Malaysia', 
    ['MZ'] = 'Mozambique', 
    ['NA'] = 'Namibia', 
    ['NE'] = 'Niger', 
    ['NG'] = 'Nigeria', 
    ['NI'] = 'Nicaragua', 
    ['NL'] = 'Netherlands', 
    ['NO'] = 'Norway', 
    ['NP'] = 'Nepal', 
    ['NR'] = 'Nauru', 
    ['NZ'] = 'New Zealand', 
    ['OM'] = 'Oman', 
    ['PA'] = 'Panama', 
    ['PE'] = 'Peru', 
    ['PG'] = 'Papua New Guinea', 
    ['PH'] = 'Philippines', 
    ['PK'] = 'Pakistan', 
    ['PL'] = 'Poland', 
    ['PT'] = 'Portugal', 
    ['PW'] = 'Palau', 
    ['PY'] = 'Paraguay', 
    ['QA'] = 'Qatar', 
    ['RO'] = 'Romania', 
    ['RS'] = 'Serbia', 
    ['RU'] = 'Russian Federation', 
    ['RW'] = 'Rwanda', 
    ['SA'] = 'Saudi Arabia', 
    ['SB'] = 'Solomon Islands', 
    ['SC'] = 'Seychelles', 
    ['SD'] = 'Sudan', 
    ['SE'] = 'Sweden', 
    ['SG'] = 'Singapore', 
    ['SH'] = 'Saint Helena', 
    ['SI'] = 'Slovenia', 
    ['SK'] = 'Slovakia', 
    ['SL'] = 'Sierra Leone', 
    ['SM'] = 'San Marino', 
    ['SN'] = 'Senegal', 
    ['SO'] = 'Somalia', 
    ['SR'] = 'Suriname', 
    ['ST'] = 'Sao Tome and Principe', 
    ['SV'] = 'Salvador', 
    ['SX'] = 'Sint Maarten (Dutch part)', 
    ['SY'] = 'Syrian Arab Republic', 
    ['SZ'] = 'Swaziland', 
    ['TC'] = 'Turks and Caicos Islands', 
    ['TD'] = 'Chad', 
    ['TG'] = 'Togo', 
    ['TH'] = 'Thailand', 
    ['TJ'] = 'Tajikistan', 
    ['TL'] = 'Timor?Leste', 
    ['TM'] = 'Turkmenistan', 
    ['TN'] = 'Tunisia', 
    ['TO'] = 'Tonga', 
    ['TR'] = 'Turkey', 
    ['TT'] = 'Trinidad and Tobago', 
    ['TV'] = 'Tuvalu', 
    ['TW'] = 'Taiwan', 
    ['TZ'] = 'Tanzania', 
    ['UA'] = 'Ukraine', 
    ['UG'] = 'Uganda', 
    ['US'] = 'United States of America', 
    ['UY'] = 'Uruguay', 
    ['UZ'] = 'Uzbekistan', 
    ['VA'] = 'Holy See', 
    ['VC'] = 'Saint Vincent', 
    ['VE'] = 'Venezuela', 
    ['VG'] = 'Virgin Islands', 
    ['VN'] = 'Viet Nam', 
    ['VU'] = 'Vanuatu', 
    ['WS'] = 'Samoa', 
    ['YE'] = 'Yemen', 
    ['ZA'] = 'South Africa', 
    ['ZM'] = 'Zambia', 
    ['ZW'] = 'Zimbabwe' 
} 
  
addEventHandler("onPlayerJoin", g_Root, 
    function() 
    local country = exports["admin"]:getPlayerCountry(source) 
    if country then 
        setElementData(source,"Country",countryNames[country]) 
        outputChatBox('[JOIN] #ffffff' .. getPlayerName(source) .. '#00FF09 has joined the server From #FF8900[' .. tostring(countryNames[countryCode]) .. '] ', getRootElement(), 2, 255, 2, true) 
    else  
        setElementData(source,"Country","N/A") 
        outputChatBox('[JOIN] #ffffff' .. getPlayerName(source) .. '#00FF09 has joined the server',getRootElement(),255,255,255,true) 
    end 
end) 
  
addEventHandler('onPlayerChangeNick', g_Root, 
    function(oldNick, newNick) 
    outputChatBox('[Change-Nick] #ffffff' .. oldNick .. '#03B4FF is now known as #ffffff' .. newNick, getRootElement(), 3, 180, 255, true) 
end) 
  
addEventHandler('onPlayerQuit', g_Root, 
    function(reason) 
    outputChatBox('[' .. reason .. '] #ffffff' .. getPlayerName(source) .. ' #FE0000has left the Server.', getRootElement(), 255, 0, 0, true) 
end) 

Link to comment

this resource not work (https://community.multitheftauto.com/index.php?p= ... ls&id=3580) .. :S if I put the admin panel and the joinquit resouce .. This goes [false]... and if I not put the admin panel .. The scoreboard does not work =/

therefore wonder if the same script "joinquit" can be add the flags of the countries ..

since this function "exports.scoreboard:addScoreboardColumn("Country",root,2,150.0 )" makes the country out in the scoreboard

Link to comment
g_Root = getRootElement() 
  
exports.scoreboard:addScoreboardColumn("Country",root,2,150.0 ) 
  
countryNames = { 
    ['AD'] = 'Andorra', 
    ['AE'] = 'United Arab Emirates', 
    ['AF'] = 'Afghanistan', 
    ['AG'] = 'Antigua and Barbuda', 
    ['AI'] = 'Anguilla', 
    ['AL'] = 'Albania', 
    ['AM'] = 'Armenia', 
    ['AO'] = 'Angola', 
    ['AP'] = 'ARIPO', 
    ['AR'] = 'Argentina', 
    ['AT'] = 'Austria', 
    ['AU'] = 'Australia', 
    ['AW'] = 'Aruba', 
    ['AZ'] = 'Azerbaijan', 
    ['BA'] = 'Bosnia and Herzegovina', 
    ['BB'] = 'Barbados', 
    ['BD'] = 'Bangladesh', 
    ['BE'] = 'Belgium', 
    ['BF'] = 'Burkina Faso', 
    ['BG'] = 'Bulgaria', 
    ['BH'] = 'Bahrain', 
    ['BI'] = 'Burundi', 
    ['BJ'] = 'Benin', 
    ['BM'] = 'Bermuda', 
    ['BN'] = 'Brunei Darussalam', 
    ['BO'] = 'Bolivia', 
    ['BQ'] = 'Bonaire', 
    ['BR'] = 'Brazil', 
    ['BS'] = 'Bahamas', 
    ['BT'] = 'Bhutan', 
    ['BV'] = 'Bouvet Island', 
    ['BW'] = 'Botswana', 
    ['BY'] = 'Belarus', 
    ['BZ'] = 'Belize', 
    ['CA'] = 'Canada', 
    ['CD'] = 'Congo', 
    ['CF'] = 'Central African Republic', 
    ['CG'] = 'Congo', 
    ['CH'] = 'Switzerland', 
    ['CI'] = 'Cote d?Ivoire', 
    ['CK'] = 'Cook Islands', 
    ['CL'] = 'Chile', 
    ['CM'] = 'Cameroon', 
    ['CN'] = 'China', 
    ['CO'] = 'Colombia', 
    ['CR'] = 'Costa Rica', 
    ['CU'] = 'Cuba', 
    ['CV'] = 'Cape Verde', 
    ['CW'] = 'Curacao', 
    ['CY'] = 'Cyprus', 
    ['CZ'] = 'Czech Republic', 
    ['DE'] = 'Germany', 
    ['DJ'] = 'Djibouti', 
    ['DK'] = 'Denmark', 
    ['DM'] = 'Dominica', 
    ['DO'] = 'Dominican Republic', 
    ['DZ'] = 'Algeria', 
    ['EC'] = 'Ecuador', 
    ['EE'] = 'Estonia', 
    ['EG'] = 'Egypt', 
    ['EH'] = 'Western Sahara', 
    ['ER'] = 'Eritrea', 
    ['ES'] = 'Spain', 
    ['ET'] = 'Ethiopia', 
    ['FI'] = 'Finland', 
    ['FJ'] = 'Fiji', 
    ['FK'] = 'Malvinas', 
    ['FO'] = 'Faroe Islands', 
    ['FR'] = 'France', 
    ['GA'] = 'Gabon', 
    ['GB'] = 'United Kingdom', 
    ['GD'] = 'Grenada', 
    ['GE'] = 'Georgia', 
    ['GG'] = 'Guernsey', 
    ['GH'] = 'Ghana', 
    ['GI'] = 'Gibraltar', 
    ['GL'] = 'Greenland', 
    ['GM'] = 'Gambia', 
    ['GN'] = 'Guinea', 
    ['GQ'] = 'Equatorial Guinea', 
    ['GR'] = 'Greece', 
    ['GT'] = 'Guatemala', 
    ['GW'] = 'Guinea-Bissau', 
    ['GY'] = 'Guyana', 
    ['HN'] = 'Honduras', 
    ['HR'] = 'Croatia', 
    ['HT'] = 'Haiti', 
    ['HU'] = 'Hungary', 
    ['ID'] = 'Indonesia', 
    ['IE'] = 'Ireland', 
    ['IL'] = 'Israel', 
    ['IM'] = 'Isle of Man', 
    ['IN'] = 'India', 
    ['IQ'] = 'Iraq', 
    ['IR'] = 'Iran', 
    ['IS'] = 'Iceland', 
    ['IT'] = 'Italy', 
    ['JE'] = 'Jersey', 
    ['JM'] = 'Jamaica', 
    ['JO'] = 'Jordan', 
    ['JP'] = 'Japan', 
    ['KE'] = 'Kenya', 
    ['KG'] = 'Kyrgyzstan', 
    ['KH'] = 'Cambodia', 
    ['KI'] = 'Kiribati', 
    ['KM'] = 'Comoros', 
    ['KN'] = 'Saint Kitts and Nevis', 
    ['KP'] = 'Korea', 
    ['KR'] = 'Korea', 
    ['KW'] = 'Kuwait', 
    ['KY'] = 'Cayman Islands', 
    ['KZ'] = 'Kazakhstan', 
    ['LA'] = 'Lao People?s Republic', 
    ['LB'] = 'Lebanon', 
    ['LC'] = 'Saint Lucia', 
    ['LI'] = 'Liechtenstein', 
    ['LK'] = 'Sri Lanka', 
    ['LR'] = 'Liberia', 
    ['LS'] = 'Lesotho', 
    ['LT'] = 'Lithuania', 
    ['LU'] = 'Luxembourg', 
    ['LV'] = 'Latvia', 
    ['LY'] = 'Libyan Arab Jamahiriya', 
    ['MA'] = 'Morocco', 
    ['MC'] = 'Monaco', 
    ['MD'] = 'Moldova', 
    ['ME'] = 'Montenegro', 
    ['MG'] = 'Madagascar', 
    ['MK'] = 'Macedonia', 
    ['ML'] = 'Mali', 
    ['MM'] = 'Myanmar', 
    ['MN'] = 'Mongolia', 
    ['MO'] = 'Macao', 
    ['MP'] = 'Northern Mariana Islands', 
    ['MR'] = 'Mauritania', 
    ['MS'] = 'Montserrat', 
    ['MT'] = 'Malta', 
    ['MU'] = 'Mauritius', 
    ['MV'] = 'Maldives', 
    ['MW'] = 'Malawi', 
    ['MX'] = 'Mexico', 
    ['MY'] = 'Malaysia', 
    ['MZ'] = 'Mozambique', 
    ['NA'] = 'Namibia', 
    ['NE'] = 'Niger', 
    ['NG'] = 'Nigeria', 
    ['NI'] = 'Nicaragua', 
    ['NL'] = 'Netherlands', 
    ['NO'] = 'Norway', 
    ['NP'] = 'Nepal', 
    ['NR'] = 'Nauru', 
    ['NZ'] = 'New Zealand', 
    ['OM'] = 'Oman', 
    ['PA'] = 'Panama', 
    ['PE'] = 'Peru', 
    ['PG'] = 'Papua New Guinea', 
    ['PH'] = 'Philippines', 
    ['PK'] = 'Pakistan', 
    ['PL'] = 'Poland', 
    ['PT'] = 'Portugal', 
    ['PW'] = 'Palau', 
    ['PY'] = 'Paraguay', 
    ['QA'] = 'Qatar', 
    ['RO'] = 'Romania', 
    ['RS'] = 'Serbia', 
    ['RU'] = 'Russian Federation', 
    ['RW'] = 'Rwanda', 
    ['SA'] = 'Saudi Arabia', 
    ['SB'] = 'Solomon Islands', 
    ['SC'] = 'Seychelles', 
    ['SD'] = 'Sudan', 
    ['SE'] = 'Sweden', 
    ['SG'] = 'Singapore', 
    ['SH'] = 'Saint Helena', 
    ['SI'] = 'Slovenia', 
    ['SK'] = 'Slovakia', 
    ['SL'] = 'Sierra Leone', 
    ['SM'] = 'San Marino', 
    ['SN'] = 'Senegal', 
    ['SO'] = 'Somalia', 
    ['SR'] = 'Suriname', 
    ['ST'] = 'Sao Tome and Principe', 
    ['SV'] = 'Salvador', 
    ['SX'] = 'Sint Maarten (Dutch part)', 
    ['SY'] = 'Syrian Arab Republic', 
    ['SZ'] = 'Swaziland', 
    ['TC'] = 'Turks and Caicos Islands', 
    ['TD'] = 'Chad', 
    ['TG'] = 'Togo', 
    ['TH'] = 'Thailand', 
    ['TJ'] = 'Tajikistan', 
    ['TL'] = 'Timor?Leste', 
    ['TM'] = 'Turkmenistan', 
    ['TN'] = 'Tunisia', 
    ['TO'] = 'Tonga', 
    ['TR'] = 'Turkey', 
    ['TT'] = 'Trinidad and Tobago', 
    ['TV'] = 'Tuvalu', 
    ['TW'] = 'Taiwan', 
    ['TZ'] = 'Tanzania', 
    ['UA'] = 'Ukraine', 
    ['UG'] = 'Uganda', 
    ['US'] = 'United States of America', 
    ['UY'] = 'Uruguay', 
    ['UZ'] = 'Uzbekistan', 
    ['VA'] = 'Holy See', 
    ['VC'] = 'Saint Vincent', 
    ['VE'] = 'Venezuela', 
    ['VG'] = 'Virgin Islands', 
    ['VN'] = 'Viet Nam', 
    ['VU'] = 'Vanuatu', 
    ['WS'] = 'Samoa', 
    ['YE'] = 'Yemen', 
    ['ZA'] = 'South Africa', 
    ['ZM'] = 'Zambia', 
    ['ZW'] = 'Zimbabwe' 
} 
  
addEventHandler("onPlayerJoin", g_Root, 
    function() 
    local countryCode = exports["admin"]:getPlayerCountry(source) 
    if countryCode then 
        setElementData(source,"Country",countryNames[country]) 
        outputChatBox('[JOIN] #ffffff' .. getPlayerName(source) .. '#00FF09 has joined the server From #FF8900[' .. tostring(countryNames[countryCode]) .. '] ', getRootElement(), 2, 255, 2, true) 
    else 
        setElementData(source,"Country","N/A") 
        outputChatBox('[JOIN] #ffffff' .. getPlayerName(source) .. '#00FF09 has joined the server',getRootElement(),255,255,255,true) 
    end 
end) 
  
addEventHandler('onPlayerChangeNick', g_Root, 
    function(oldNick, newNick) 
    outputChatBox('[Change-Nick] #ffffff' .. oldNick .. '#03B4FF is now known as #ffffff' .. newNick, getRootElement(), 3, 180, 255, true) 
end) 
  
addEventHandler('onPlayerQuit', g_Root, 
    function(reason) 
    outputChatBox('[' .. reason .. '] #ffffff' .. getPlayerName(source) .. ' #FE0000has left the Server.', getRootElement(), 255, 0, 0, true) 
end) 

Link to comment

use this resouce ... https://community.multitheftauto.com/index.php?p= ... ls&id=3580

and use this script "joinquit"

g_Root = getRootElement() 
countryNames = { 
    ['AD'] = 'Andorra', 
    ['AE'] = 'United Arab Emirates', 
    ['AF'] = 'Afghanistan', 
    ['AG'] = 'Antigua and Barbuda', 
    ['AI'] = 'Anguilla', 
    ['AL'] = 'Albania', 
    ['AM'] = 'Armenia', 
    ['AO'] = 'Angola', 
    ['AP'] = 'ARIPO', 
    ['AR'] = 'Argentina', 
    ['AT'] = 'Austria', 
    ['AU'] = 'Australia', 
    ['AW'] = 'Aruba', 
    ['AZ'] = 'Azerbaijan', 
    ['BA'] = 'Bosnia and Herzegovina', 
    ['BB'] = 'Barbados', 
    ['BD'] = 'Bangladesh', 
    ['BE'] = 'Belgium', 
    ['BF'] = 'Burkina Faso', 
    ['BG'] = 'Bulgaria', 
    ['BH'] = 'Bahrain', 
    ['BI'] = 'Burundi', 
    ['BJ'] = 'Benin', 
    ['BM'] = 'Bermuda', 
    ['BN'] = 'Brunei Darussalam', 
    ['BO'] = 'Bolivia', 
    ['BQ'] = 'Bonaire', 
    ['BR'] = 'Brazil', 
    ['BS'] = 'Bahamas', 
    ['BT'] = 'Bhutan', 
    ['BV'] = 'Bouvet Island', 
    ['BW'] = 'Botswana', 
    ['BY'] = 'Belarus', 
    ['BZ'] = 'Belize', 
    ['CA'] = 'Canada', 
    ['CD'] = 'Congo', 
    ['CF'] = 'Central African Republic', 
    ['CG'] = 'Congo', 
    ['CH'] = 'Switzerland', 
    ['CI'] = 'Cote d?Ivoire', 
    ['CK'] = 'Cook Islands', 
    ['CL'] = 'Chile', 
    ['CM'] = 'Cameroon', 
    ['CN'] = 'China', 
    ['CO'] = 'Colombia', 
    ['CR'] = 'Costa Rica', 
    ['CU'] = 'Cuba', 
    ['CV'] = 'Cape Verde', 
    ['CW'] = 'Curacao', 
    ['CY'] = 'Cyprus', 
    ['CZ'] = 'Czech Republic', 
    ['DE'] = 'Germany', 
    ['DJ'] = 'Djibouti', 
    ['DK'] = 'Denmark', 
    ['DM'] = 'Dominica', 
    ['DO'] = 'Dominican Republic', 
    ['DZ'] = 'Algeria', 
    ['EC'] = 'Ecuador', 
    ['EE'] = 'Estonia', 
    ['EG'] = 'Egypt', 
    ['EH'] = 'Western Sahara', 
    ['ER'] = 'Eritrea', 
    ['ES'] = 'Spain', 
    ['ET'] = 'Ethiopia', 
    ['FI'] = 'Finland', 
    ['FJ'] = 'Fiji', 
    ['FK'] = 'Malvinas', 
    ['FO'] = 'Faroe Islands', 
    ['FR'] = 'France', 
    ['GA'] = 'Gabon', 
    ['GB'] = 'United Kingdom', 
    ['GD'] = 'Grenada', 
    ['GE'] = 'Georgia', 
    ['GG'] = 'Guernsey', 
    ['GH'] = 'Ghana', 
    ['GI'] = 'Gibraltar', 
    ['GL'] = 'Greenland', 
    ['GM'] = 'Gambia', 
    ['GN'] = 'Guinea', 
    ['GQ'] = 'Equatorial Guinea', 
    ['GR'] = 'Greece', 
    ['GT'] = 'Guatemala', 
    ['GW'] = 'Guinea-Bissau', 
    ['GY'] = 'Guyana', 
    ['HN'] = 'Honduras', 
    ['HR'] = 'Croatia', 
    ['HT'] = 'Haiti', 
    ['HU'] = 'Hungary', 
    ['ID'] = 'Indonesia', 
    ['IE'] = 'Ireland', 
    ['IL'] = 'Israel', 
    ['IM'] = 'Isle of Man', 
    ['IN'] = 'India', 
    ['IQ'] = 'Iraq', 
    ['IR'] = 'Iran', 
    ['IS'] = 'Iceland', 
    ['IT'] = 'Italy', 
    ['JE'] = 'Jersey', 
    ['JM'] = 'Jamaica', 
    ['JO'] = 'Jordan', 
    ['JP'] = 'Japan', 
    ['KE'] = 'Kenya', 
    ['KG'] = 'Kyrgyzstan', 
    ['KH'] = 'Cambodia', 
    ['KI'] = 'Kiribati', 
    ['KM'] = 'Comoros', 
    ['KN'] = 'Saint Kitts and Nevis', 
    ['KP'] = 'Korea', 
    ['KR'] = 'Korea', 
    ['KW'] = 'Kuwait', 
    ['KY'] = 'Cayman Islands', 
    ['KZ'] = 'Kazakhstan', 
    ['LA'] = 'Lao People?s Republic', 
    ['LB'] = 'Lebanon', 
    ['LC'] = 'Saint Lucia', 
    ['LI'] = 'Liechtenstein', 
    ['LK'] = 'Sri Lanka', 
    ['LR'] = 'Liberia', 
    ['LS'] = 'Lesotho', 
    ['LT'] = 'Lithuania', 
    ['LU'] = 'Luxembourg', 
    ['LV'] = 'Latvia', 
    ['LY'] = 'Libyan Arab Jamahiriya', 
    ['MA'] = 'Morocco', 
    ['MC'] = 'Monaco', 
    ['MD'] = 'Moldova', 
    ['ME'] = 'Montenegro', 
    ['MG'] = 'Madagascar', 
    ['MK'] = 'Macedonia', 
    ['ML'] = 'Mali', 
    ['MM'] = 'Myanmar', 
    ['MN'] = 'Mongolia', 
    ['MO'] = 'Macao', 
    ['MP'] = 'Northern Mariana Islands', 
    ['MR'] = 'Mauritania', 
    ['MS'] = 'Montserrat', 
    ['MT'] = 'Malta', 
    ['MU'] = 'Mauritius', 
    ['MV'] = 'Maldives', 
    ['MW'] = 'Malawi', 
    ['MX'] = 'Mexico', 
    ['MY'] = 'Malaysia', 
    ['MZ'] = 'Mozambique', 
    ['NA'] = 'Namibia', 
    ['NE'] = 'Niger', 
    ['NG'] = 'Nigeria', 
    ['NI'] = 'Nicaragua', 
    ['NL'] = 'Netherlands', 
    ['NO'] = 'Norway', 
    ['NP'] = 'Nepal', 
    ['NR'] = 'Nauru', 
    ['NZ'] = 'New Zealand', 
    ['OM'] = 'Oman', 
    ['PA'] = 'Panama', 
    ['PE'] = 'Peru', 
    ['PG'] = 'Papua New Guinea', 
    ['PH'] = 'Philippines', 
    ['PK'] = 'Pakistan', 
    ['PL'] = 'Poland', 
    ['PT'] = 'Portugal', 
    ['PW'] = 'Palau', 
    ['PY'] = 'Paraguay', 
    ['QA'] = 'Qatar', 
    ['RO'] = 'Romania', 
    ['RS'] = 'Serbia', 
    ['RU'] = 'Russian Federation', 
    ['RW'] = 'Rwanda', 
    ['SA'] = 'Saudi Arabia', 
    ['SB'] = 'Solomon Islands', 
    ['SC'] = 'Seychelles', 
    ['SD'] = 'Sudan', 
    ['SE'] = 'Sweden', 
    ['SG'] = 'Singapore', 
    ['SH'] = 'Saint Helena', 
    ['SI'] = 'Slovenia', 
    ['SK'] = 'Slovakia', 
    ['SL'] = 'Sierra Leone', 
    ['SM'] = 'San Marino', 
    ['SN'] = 'Senegal', 
    ['SO'] = 'Somalia', 
    ['SR'] = 'Suriname', 
    ['ST'] = 'Sao Tome and Principe', 
    ['SV'] = 'Salvador', 
    ['SX'] = 'Sint Maarten (Dutch part)', 
    ['SY'] = 'Syrian Arab Republic', 
    ['SZ'] = 'Swaziland', 
    ['TC'] = 'Turks and Caicos Islands', 
    ['TD'] = 'Chad', 
    ['TG'] = 'Togo', 
    ['TH'] = 'Thailand', 
    ['TJ'] = 'Tajikistan', 
    ['TL'] = 'Timor?Leste', 
    ['TM'] = 'Turkmenistan', 
    ['TN'] = 'Tunisia', 
    ['TO'] = 'Tonga', 
    ['TR'] = 'Turkey', 
    ['TT'] = 'Trinidad and Tobago', 
    ['TV'] = 'Tuvalu', 
    ['TW'] = 'Taiwan', 
    ['TZ'] = 'Tanzania', 
    ['UA'] = 'Ukraine', 
    ['UG'] = 'Uganda', 
    ['US'] = 'United States of America', 
    ['UY'] = 'Uruguay', 
    ['UZ'] = 'Uzbekistan', 
    ['VA'] = 'Holy See', 
    ['VC'] = 'Saint Vincent', 
    ['VE'] = 'Venezuela', 
    ['VG'] = 'Virgin Islands', 
    ['VN'] = 'Viet Nam', 
    ['VU'] = 'Vanuatu', 
    ['WS'] = 'Samoa', 
    ['YE'] = 'Yemen', 
    ['ZA'] = 'South Africa', 
    ['ZZ'] = 'N/A-Host', 
    ['ZM'] = 'Zambia', 
    ['ZW'] = 'Zimbabwe' 
} 
  
addEventHandler("onPlayerJoin", g_Root, 
    function() 
    local country = exports["admin"]:getPlayerCountry(source) 
    if country then 
        setElementData(source,"Country",countryNames[country]) 
        outputChatBox('*[Join]: #ffffff' .. getPlayerName(source) .. '#00FF09 has joined the server From #FFFFFF[' .. tostring(countryNames[countryCode]) .. '] ', getRootElement(), 2, 255, 2, true) 
    else 
        setElementData(source,"Country","N/A") 
        outputChatBox('*[Join]: #ffffff' .. getPlayerName(source) .. '#00FF09 has joined the server',getRootElement(),2,255,2,true) 
    end 
end) 
  
addEventHandler('onPlayerChangeNick', g_Root, 
    function(oldNick, newNick) 
    outputChatBox('*[Change-Nick]: #ffffff' .. oldNick .. '#03B4FF is now known as #ffffff' .. newNick, getRootElement(), 3, 180, 255, true) 
end) 
  
addEventHandler('onPlayerQuit', g_Root, 
    function(reason) 
    outputChatBox('*[' .. reason .. ']: #ffffff' .. getPlayerName(source) .. ' #FE0000has left the Server.', getRootElement(), 255, 0, 0, true) 
end) 

but .. http://www.mediafire.com/?vuo5t8ipclksz7t <- use the admin panel the scoreboard with flags ... and and I was testing on a public server but .. not leave the country .. and then put the admin panel original and if countries came out

Now how do I use the joinquit .. but also want to leave the flags in the scoreboard.. helpme D;

This Image this with the admin panel of the scoreboard flags country resouce

33ypes9.png

oaodp0.png

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...