K9283RU18934G3894TIK

geoip include

May 18th, 2020
18
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // GeoIP script by Slice.
  2.  
  3. #include <a_samp>
  4.  
  5. #define MAX_COUNTRY_CODE (3)
  6. #define MAX_COUNTRY_NAME (37)
  7.  
  8. enum e_COUNTRY_INFO
  9. {
  10. e_szCountryCode[ MAX_COUNTRY_CODE char ],
  11. e_szCountryName[ MAX_COUNTRY_NAME char ]
  12. };
  13.  
  14. enum
  15. {
  16. GEOIP_STATE_NONE,
  17. GEOIP_STATE_RETRIEVING,
  18. GEOIP_STATE_RETRIEVED
  19. };
  20.  
  21. #pragma pack 1
  22.  
  23. stock const
  24. g_aszCountryInfo[ ][ e_COUNTRY_INFO ] = {
  25. { "XX", "Unknown" },
  26. { "AU", "Australia" },
  27. { "MY", "Malaysia" },
  28. { "KR", "Kore" },
  29. { "CN", "China" },
  30. { "JP", "Japan" },
  31. { "IN", "India" },
  32. { "TW", "Taiwan" },
  33. { "HK", "Hong Kong" },
  34. { "TH", "Thailand" },
  35. { "VN", "Vietnam" },
  36. { "FR", "France" },
  37. { "EU", "Europe" },
  38. { "GB", "United Kingdom" },
  39. { "IT", "Italy" },
  40. { "AE", "United Arab Emirates" },
  41. { "IL", "Israel" },
  42. { "UA", "Ukraine" },
  43. { "RU", "Russian Federation" },
  44. { "SE", "Sweden" },
  45. { "KZ", "Kazakhstan" },
  46. { "PT", "Portugal" },
  47. { "GR", "Greece" },
  48. { "SA", "Saudi Arabia" },
  49. { "DK", "Denmark" },
  50. { "IR", "Ira" },
  51. { "NO", "Norway" },
  52. { "DE", "Germany" },
  53. { "US", "United States" },
  54. { "CA", "Canada" },
  55. { "MX", "Mexico" },
  56. { "BM", "Bermuda" },
  57. { "PR", "Puerto Rico" },
  58. { "VI", "Virgin Island" },
  59. { "BO", "Bolivia" },
  60. { "NL", "Netherlands" },
  61. { "AP", "Asia/Pacific Region" },
  62. { "NZ", "New Zealand" },
  63. { "SG", "Singapore" },
  64. { "ID", "Indonesia" },
  65. { "NP", "Nepal" },
  66. { "PH", "Philippines" },
  67. { "PG", "Papua New Guinea" },
  68. { "PK", "Pakistan" },
  69. { "ES", "Spain" },
  70. { "BS", "Bahamas" },
  71. { "VC", "Saint Vincent and the Grenadines" },
  72. { "CL", "Chile" },
  73. { "NC", "New Caledonia" },
  74. { "AR", "Argentina" },
  75. { "DM", "Dominica" },
  76. { "TK", "Tokelau" },
  77. { "KH", "Cambodia" },
  78. { "MO", "Macau" },
  79. { "MV", "Maldives" },
  80. { "AF", "Afghanistan" },
  81. { "FJ", "Fiji" },
  82. { "MN", "Mongolia" },
  83. { "WF", "Wallis and Futuna" },
  84. { "BD", "Bangladesh" },
  85. { "IE", "Ireland" },
  86. { "AN", "Netherlands Antilles" },
  87. { "BE", "Belgium" },
  88. { "BZ", "Belize" },
  89. { "BR", "Brazil" },
  90. { "CH", "Switzerland" },
  91. { "ZA", "South Africa" },
  92. { "EG", "Egypt" },
  93. { "NG", "Nigeria" },
  94. { "TZ", "Tanzani" },
  95. { "ZM", "Zambia" },
  96. { "SN", "Senegal" },
  97. { "NA", "Namibia" },
  98. { "CI", "Cote D'Ivoire" },
  99. { "GH", "Ghana" },
  100. { "SD", "Sudan" },
  101. { "CM", "Cameroon" },
  102. { "MW", "Malawi" },
  103. { "AO", "Angola" },
  104. { "KE", "Kenya" },
  105. { "GA", "Gabon" },
  106. { "ML", "Mali" },
  107. { "BJ", "Benin" },
  108. { "MG", "Madagascar" },
  109. { "TD", "Chad" },
  110. { "BW", "Botswana" },
  111. { "LY", "Libyan Arab Jamahiriya" },
  112. { "CV", "Cape Verde" },
  113. { "RW", "Rwanda" },
  114. { "MZ", "Mozambique" },
  115. { "GM", "Gambia" },
  116. { "LS", "Lesotho" },
  117. { "MU", "Mauritius" },
  118. { "CG", "Congo" },
  119. { "UG", "Uganda" },
  120. { "BF", "Burkina Faso" },
  121. { "SL", "Sierra Leone" },
  122. { "SO", "Somalia" },
  123. { "ZW", "Zimbabwe" },
  124. { "CD", "Cong" },
  125. { "NE", "Niger" },
  126. { "CF", "Central African Republic" },
  127. { "SZ", "Swaziland" },
  128. { "TG", "Togo" },
  129. { "GN", "Guinea" },
  130. { "LR", "Liberia" },
  131. { "SC", "Seychelles" },
  132. { "MA", "Morocco" },
  133. { "DZ", "Algeria" },
  134. { "MR", "Mauritania" },
  135. { "DJ", "Djibouti" },
  136. { "A2", "Satellite Provider" },
  137. { "KM", "Comoros" },
  138. { "RE", "Reunion" },
  139. { "GQ", "Equatorial Guinea" },
  140. { "TN", "Tunisia" },
  141. { "TR", "Turkey" },
  142. { "BG", "Bulgaria" },
  143. { "MT", "Malta" },
  144. { "CZ", "Czech Republic" },
  145. { "RS", "Serbia" },
  146. { "EE", "Estonia" },
  147. { "CY", "Cyprus" },
  148. { "LB", "Lebanon" },
  149. { "PL", "Poland" },
  150. { "LU", "Luxembourg" },
  151. { "FI", "Finland" },
  152. { "AT", "Austria" },
  153. { "PS", "Palestinian Territor" },
  154. { "AZ", "Azerbaijan" },
  155. { "RO", "Romania" },
  156. { "TJ", "Tajikistan" },
  157. { "LV", "Latvia" },
  158. { "BY", "Belarus" },
  159. { "IS", "Iceland" },
  160. { "HU", "Hungary" },
  161. { "SK", "Slovakia" },
  162. { "MK", "Macedonia" },
  163. { "IQ", "Iraq" },
  164. { "ME", "Montenegro" },
  165. { "HR", "Croatia" },
  166. { "JO", "Jordan" },
  167. { "YE", "Yemen" },
  168. { "BA", "Bosnia and Herzegovina" },
  169. { "LT", "Lithuania" },
  170. { "OM", "Oman" },
  171. { "BH", "Bahrain" },
  172. { "GE", "Georgia" },
  173. { "SY", "Syrian Arab Republic" },
  174. { "SI", "Slovenia" },
  175. { "MD", "Moldov" },
  176. { "AM", "Armenia" },
  177. { "AL", "Albania" },
  178. { "PA", "Panama" },
  179. { "BN", "Brunei Darussalam" },
  180. { "LK", "Sri Lanka" },
  181. { "KW", "Kuwait" },
  182. { "AX", "Aland Islands" },
  183. { "AG", "Antigua and Barbuda" },
  184. { "SM", "San Marino" },
  185. { "FK", "Falkland Islands (Malvinas)" },
  186. { "UZ", "Uzbekistan" },
  187. { "MC", "Monaco" },
  188. { "HT", "Haiti" },
  189. { "GU", "Guam" },
  190. { "JM", "Jamaica" },
  191. { "UM", "United States Minor Outlying Islands" },
  192. { "FM", "Micronesi" },
  193. { "EC", "Ecuador" },
  194. { "CO", "Colombia" },
  195. { "PE", "Peru" },
  196. { "KY", "Cayman Islands" },
  197. { "HN", "Honduras" },
  198. { "VG", "Virgin Island" },
  199. { "NI", "Nicaragua" },
  200. { "DO", "Dominican Republic" },
  201. { "GD", "Grenada" },
  202. { "GT", "Guatemala" },
  203. { "CR", "Costa Rica" },
  204. { "SV", "El Salvador" },
  205. { "VE", "Venezuela" },
  206. { "BB", "Barbados" },
  207. { "TT", "Trinidad and Tobago" },
  208. { "BV", "Bouvet Island" },
  209. { "MH", "Marshall Islands" },
  210. { "CK", "Cook Islands" },
  211. { "GI", "Gibraltar" },
  212. { "PY", "Paraguay" },
  213. { "A1", "Anonymous Proxy" },
  214. { "WS", "Samoa" },
  215. { "KN", "Saint Kitts and Nevis" },
  216. { "UY", "Uruguay" },
  217. { "MP", "Northern Mariana Islands" },
  218. { "PW", "Palau" },
  219. { "QA", "Qatar" },
  220. { "AS", "American Samoa" },
  221. { "TC", "Turks and Caicos Islands" },
  222. { "LC", "Saint Lucia" },
  223. { "VA", "Holy See (Vatican City State)" },
  224. { "LA", "Lao People's Democratic Republic" },
  225. { "AW", "Aruba" },
  226. { "GY", "Guyana" },
  227. { "SR", "Suriname" },
  228. { "IM", "Isle of Man" },
  229. { "VU", "Vanuatu" },
  230. { "KP", "Kore" },
  231. { "AI", "Anguilla" },
  232. { "MS", "Montserrat" },
  233. { "PM", "Saint Pierre and Miquelon" },
  234. { "GP", "Guadeloupe" },
  235. { "MF", "Saint Martin" },
  236. { "GG", "Guernsey" },
  237. { "BI", "Burundi" },
  238. { "TM", "Turkmenistan" },
  239. { "KG", "Kyrgyzstan" },
  240. { "MM", "Myanmar" },
  241. { "BT", "Bhutan" },
  242. { "LI", "Liechtenstein" },
  243. { "FO", "Faroe Islands" },
  244. { "ET", "Ethiopia" },
  245. { "MQ", "Martinique" },
  246. { "JE", "Jersey" },
  247. { "AD", "Andorra" },
  248. { "AQ", "Antarctica" },
  249. { "IO", "British Indian Ocean Territory" },
  250. { "ER", "Eritrea" },
  251. { "GL", "Greenland" },
  252. { "GW", "Guinea-Bissau" },
  253. { "PF", "French Polynesia" },
  254. { "CU", "Cuba" },
  255. { "TO", "Tonga" },
  256. { "TL", "Timor-Leste" },
  257. { "ST", "Sao Tome and Principe" },
  258. { "GF", "French Guiana" },
  259. { "SB", "Solomon Islands" },
  260. { "TV", "Tuvalu" },
  261. { "KI", "Kiribati" },
  262. { "NU", "Niue" },
  263. { "NF", "Norfolk Island" },
  264. { "NR", "Nauru" },
  265. { "YT", "Mayotte" }
  266. }
  267. ;
  268.  
  269. enum
  270. {
  271. COUNTRY_XX, // Unknown
  272. COUNTRY_AU, // Australia
  273. COUNTRY_MY, // Malaysia
  274. COUNTRY_KR, // Kore
  275. COUNTRY_CN, // China
  276. COUNTRY_JP, // Japan
  277. COUNTRY_IN, // India
  278. COUNTRY_TW, // Taiwan
  279. COUNTRY_HK, // Hong Kong
  280. COUNTRY_TH, // Thailand
  281. COUNTRY_VN, // Vietnam
  282. COUNTRY_FR, // France
  283. COUNTRY_EU, // Europe
  284. COUNTRY_GB, // United Kingdom
  285. COUNTRY_IT, // Italy
  286. COUNTRY_AE, // United Arab Emirates
  287. COUNTRY_IL, // Israel
  288. COUNTRY_UA, // Ukraine
  289. COUNTRY_RU, // Russian Federation
  290. COUNTRY_SE, // Sweden
  291. COUNTRY_KZ, // Kazakhstan
  292. COUNTRY_PT, // Portugal
  293. COUNTRY_GR, // Greece
  294. COUNTRY_SA, // Saudi Arabia
  295. COUNTRY_DK, // Denmark
  296. COUNTRY_IR, // Ira
  297. COUNTRY_NO, // Norway
  298. COUNTRY_DE, // Germany
  299. COUNTRY_US, // United States
  300. COUNTRY_CA, // Canada
  301. COUNTRY_MX, // Mexico
  302. COUNTRY_BM, // Bermuda
  303. COUNTRY_PR, // Puerto Rico
  304. COUNTRY_VI, // Virgin Island
  305. COUNTRY_BO, // Bolivia
  306. COUNTRY_NL, // Netherlands
  307. COUNTRY_AP, // Asia/Pacific Region
  308. COUNTRY_NZ, // New Zealand
  309. COUNTRY_SG, // Singapore
  310. COUNTRY_ID, // Indonesia
  311. COUNTRY_NP, // Nepal
  312. COUNTRY_PH, // Philippines
  313. COUNTRY_PG, // Papua New Guinea
  314. COUNTRY_PK, // Pakistan
  315. COUNTRY_ES, // Spain
  316. COUNTRY_BS, // Bahamas
  317. COUNTRY_VC, // Saint Vincent and the Grenadines
  318. COUNTRY_CL, // Chile
  319. COUNTRY_NC, // New Caledonia
  320. COUNTRY_AR, // Argentina
  321. COUNTRY_DM, // Dominica
  322. COUNTRY_TK, // Tokelau
  323. COUNTRY_KH, // Cambodia
  324. COUNTRY_MO, // Macau
  325. COUNTRY_MV, // Maldives
  326. COUNTRY_AF, // Afghanistan
  327. COUNTRY_FJ, // Fiji
  328. COUNTRY_MN, // Mongolia
  329. COUNTRY_WF, // Wallis and Futuna
  330. COUNTRY_BD, // Bangladesh
  331. COUNTRY_IE, // Ireland
  332. COUNTRY_AN, // Netherlands Antilles
  333. COUNTRY_BE, // Belgium
  334. COUNTRY_BZ, // Belize
  335. COUNTRY_BR, // Brazil
  336. COUNTRY_CH, // Switzerland
  337. COUNTRY_ZA, // South Africa
  338. COUNTRY_EG, // Egypt
  339. COUNTRY_NG, // Nigeria
  340. COUNTRY_TZ, // Tanzani
  341. COUNTRY_ZM, // Zambia
  342. COUNTRY_SN, // Senegal
  343. COUNTRY_NA, // Namibia
  344. COUNTRY_CI, // Cote D'Ivoire
  345. COUNTRY_GH, // Ghana
  346. COUNTRY_SD, // Sudan
  347. COUNTRY_CM, // Cameroon
  348. COUNTRY_MW, // Malawi
  349. COUNTRY_AO, // Angola
  350. COUNTRY_KE, // Kenya
  351. COUNTRY_GA, // Gabon
  352. COUNTRY_ML, // Mali
  353. COUNTRY_BJ, // Benin
  354. COUNTRY_MG, // Madagascar
  355. COUNTRY_TD, // Chad
  356. COUNTRY_BW, // Botswana
  357. COUNTRY_LY, // Libyan Arab Jamahiriya
  358. COUNTRY_CV, // Cape Verde
  359. COUNTRY_RW, // Rwanda
  360. COUNTRY_MZ, // Mozambique
  361. COUNTRY_GM, // Gambia
  362. COUNTRY_LS, // Lesotho
  363. COUNTRY_MU, // Mauritius
  364. COUNTRY_CG, // Congo
  365. COUNTRY_UG, // Uganda
  366. COUNTRY_BF, // Burkina Faso
  367. COUNTRY_SL, // Sierra Leone
  368. COUNTRY_SO, // Somalia
  369. COUNTRY_ZW, // Zimbabwe
  370. COUNTRY_CD, // Cong
  371. COUNTRY_NE, // Niger
  372. COUNTRY_CF, // Central African Republic
  373. COUNTRY_SZ, // Swaziland
  374. COUNTRY_TG, // Togo
  375. COUNTRY_GN, // Guinea
  376. COUNTRY_LR, // Liberia
  377. COUNTRY_SC, // Seychelles
  378. COUNTRY_MA, // Morocco
  379. COUNTRY_DZ, // Algeria
  380. COUNTRY_MR, // Mauritania
  381. COUNTRY_DJ, // Djibouti
  382. COUNTRY_A2, // Satellite Provider
  383. COUNTRY_KM, // Comoros
  384. COUNTRY_RE, // Reunion
  385. COUNTRY_GQ, // Equatorial Guinea
  386. COUNTRY_TN, // Tunisia
  387. COUNTRY_TR, // Turkey
  388. COUNTRY_BG, // Bulgaria
  389. COUNTRY_MT, // Malta
  390. COUNTRY_CZ, // Czech Republic
  391. COUNTRY_RS, // Serbia
  392. COUNTRY_EE, // Estonia
  393. COUNTRY_CY, // Cyprus
  394. COUNTRY_LB, // Lebanon
  395. COUNTRY_PL, // Poland
  396. COUNTRY_LU, // Luxembourg
  397. COUNTRY_FI, // Finland
  398. COUNTRY_AT, // Austria
  399. COUNTRY_PS, // Palestinian Territor
  400. COUNTRY_AZ, // Azerbaijan
  401. COUNTRY_RO, // Romania
  402. COUNTRY_TJ, // Tajikistan
  403. COUNTRY_LV, // Latvia
  404. COUNTRY_BY, // Belarus
  405. COUNTRY_IS, // Iceland
  406. COUNTRY_HU, // Hungary
  407. COUNTRY_SK, // Slovakia
  408. COUNTRY_MK, // Macedonia
  409. COUNTRY_IQ, // Iraq
  410. COUNTRY_ME, // Montenegro
  411. COUNTRY_HR, // Croatia
  412. COUNTRY_JO, // Jordan
  413. COUNTRY_YE, // Yemen
  414. COUNTRY_BA, // Bosnia and Herzegovina
  415. COUNTRY_LT, // Lithuania
  416. COUNTRY_OM, // Oman
  417. COUNTRY_BH, // Bahrain
  418. COUNTRY_GE, // Georgia
  419. COUNTRY_SY, // Syrian Arab Republic
  420. COUNTRY_SI, // Slovenia
  421. COUNTRY_MD, // Moldov
  422. COUNTRY_AM, // Armenia
  423. COUNTRY_AL, // Albania
  424. COUNTRY_PA, // Panama
  425. COUNTRY_BN, // Brunei Darussalam
  426. COUNTRY_LK, // Sri Lanka
  427. COUNTRY_KW, // Kuwait
  428. COUNTRY_AX, // Aland Islands
  429. COUNTRY_AG, // Antigua and Barbuda
  430. COUNTRY_SM, // San Marino
  431. COUNTRY_FK, // Falkland Islands (Malvinas)
  432. COUNTRY_UZ, // Uzbekistan
  433. COUNTRY_MC, // Monaco
  434. COUNTRY_HT, // Haiti
  435. COUNTRY_GU, // Guam
  436. COUNTRY_JM, // Jamaica
  437. COUNTRY_UM, // United States Minor Outlying Islands
  438. COUNTRY_FM, // Micronesi
  439. COUNTRY_EC, // Ecuador
  440. COUNTRY_CO, // Colombia
  441. COUNTRY_PE, // Peru
  442. COUNTRY_KY, // Cayman Islands
  443. COUNTRY_HN, // Honduras
  444. COUNTRY_VG, // Virgin Island
  445. COUNTRY_NI, // Nicaragua
  446. COUNTRY_DO, // Dominican Republic
  447. COUNTRY_GD, // Grenada
  448. COUNTRY_GT, // Guatemala
  449. COUNTRY_CR, // Costa Rica
  450. COUNTRY_SV, // El Salvador
  451. COUNTRY_VE, // Venezuela
  452. COUNTRY_BB, // Barbados
  453. COUNTRY_TT, // Trinidad and Tobago
  454. COUNTRY_BV, // Bouvet Island
  455. COUNTRY_MH, // Marshall Islands
  456. COUNTRY_CK, // Cook Islands
  457. COUNTRY_GI, // Gibraltar
  458. COUNTRY_PY, // Paraguay
  459. COUNTRY_A1, // Anonymous Proxy
  460. COUNTRY_WS, // Samoa
  461. COUNTRY_KN, // Saint Kitts and Nevis
  462. COUNTRY_UY, // Uruguay
  463. COUNTRY_MP, // Northern Mariana Islands
  464. COUNTRY_PW, // Palau
  465. COUNTRY_QA, // Qatar
  466. COUNTRY_AS, // American Samoa
  467. COUNTRY_TC, // Turks and Caicos Islands
  468. COUNTRY_LC, // Saint Lucia
  469. COUNTRY_VA, // Holy See (Vatican City State)
  470. COUNTRY_LA, // Lao People's Democratic Republic
  471. COUNTRY_AW, // Aruba
  472. COUNTRY_GY, // Guyana
  473. COUNTRY_SR, // Suriname
  474. COUNTRY_IM, // Isle of Man
  475. COUNTRY_VU, // Vanuatu
  476. COUNTRY_KP, // Kore
  477. COUNTRY_AI, // Anguilla
  478. COUNTRY_MS, // Montserrat
  479. COUNTRY_PM, // Saint Pierre and Miquelon
  480. COUNTRY_GP, // Guadeloupe
  481. COUNTRY_MF, // Saint Martin
  482. COUNTRY_GG, // Guernsey
  483. COUNTRY_BI, // Burundi
  484. COUNTRY_TM, // Turkmenistan
  485. COUNTRY_KG, // Kyrgyzstan
  486. COUNTRY_MM, // Myanmar
  487. COUNTRY_BT, // Bhutan
  488. COUNTRY_LI, // Liechtenstein
  489. COUNTRY_FO, // Faroe Islands
  490. COUNTRY_ET, // Ethiopia
  491. COUNTRY_MQ, // Martinique
  492. COUNTRY_JE, // Jersey
  493. COUNTRY_AD, // Andorra
  494. COUNTRY_AQ, // Antarctica
  495. COUNTRY_IO, // British Indian Ocean Territory
  496. COUNTRY_ER, // Eritrea
  497. COUNTRY_GL, // Greenland
  498. COUNTRY_GW, // Guinea-Bissau
  499. COUNTRY_PF, // French Polynesia
  500. COUNTRY_CU, // Cuba
  501. COUNTRY_TO, // Tonga
  502. COUNTRY_TL, // Timor-Leste
  503. COUNTRY_ST, // Sao Tome and Principe
  504. COUNTRY_GF, // French Guiana
  505. COUNTRY_SB, // Solomon Islands
  506. COUNTRY_TV, // Tuvalu
  507. COUNTRY_KI, // Kiribati
  508. COUNTRY_NU, // Niue
  509. COUNTRY_NF, // Norfolk Island
  510. COUNTRY_NR, // Nauru
  511. COUNTRY_YT // Mayotte
  512. };
  513.  
  514. #pragma pack 0
  515.  
  516. forward OnGeoipUpdate( playerid );
  517.  
  518. stock GetPlayerCountryName( iPlayer )
  519. {
  520. new
  521. iCountryIndex = CallRemoteFunction( "GetPlayerCountryIndex", "i", iPlayer ),
  522. szCountryName[ MAX_COUNTRY_NAME ]
  523. ;
  524.  
  525. strunpack( szCountryName, g_aszCountryInfo[ iCountryIndex ][ e_szCountryName ] );
  526.  
  527. return szCountryName;
  528. }
  529.  
  530. stock bool:GetPlayerCountryNameEx( iPlayer, szCountryName[ ], iSize = sizeof( szCountryName ) )
  531. {
  532. new
  533. iCountryIndex = CallRemoteFunction( "GetPlayerCountryIndex", "i", iPlayer )
  534. ;
  535.  
  536. strunpack( szCountryName, g_aszCountryInfo[ iCountryIndex ][ e_szCountryName ], iSize );
  537.  
  538. return ( iCountryIndex == 0 ) ? ( false ) : ( true );
  539. }
  540.  
  541. stock GetPlayerCountryCode( iPlayer )
  542. {
  543. new
  544. iCountryIndex = CallRemoteFunction( "GetPlayerCountryIndex", "i", iPlayer ),
  545. szCountryCode[ MAX_COUNTRY_CODE ]
  546. ;
  547.  
  548. strunpack( szCountryCode, g_aszCountryInfo[ iCountryIndex ][ e_szCountryCode ] );
  549.  
  550. return szCountryCode;
  551. }
  552.  
  553. stock bool:GetPlayerCountryCodeEx( iPlayer, szCountryCode[ ], iSize = sizeof( szCountryCode ) )
  554. {
  555. new
  556. iCountryIndex = CallRemoteFunction( "GetPlayerCountryIndex", "i", iPlayer )
  557. ;
  558.  
  559. strunpack( szCountryCode, g_aszCountryInfo[ iCountryIndex ][ e_szCountryCode ], iSize );
  560.  
  561. return ( iCountryIndex == 0 ) ? ( false ) : ( true );
  562. }
  563.  
  564. #define GetPlayerCountryIndex(%0) CallRemoteFunction( "GetPlayerCountryIndex", "i", ( %0 ) )
RAW Paste Data