SHARE
TWEET

Untitled

a guest Feb 16th, 2020 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. new Float:zones_points_0[] = {
  2.     634.0,-909.0,916.0,-631.0,938.0,-765.0,962.0,-1137.0,932.0,-1393.0,634.0,-1395.0,634.0,-909.0
  3. }; //(AREA) VineWood
  4. new Float:zones_points_1[] = {
  5.     628.0,-921.0,634.0,-1185.0,364.0,-1347.0,238.0,-1415.0,154.0,-1543.0,76.0,-1517.0,216.0,-1091.0,628.0,-921.0
  6. }; //(AREA) Richman
  7. new Float:zones_points_2[] = {
  8.     630.0,-1195.0,632.0,-1725.0,136.0,-1733.0,158.0,-1551.0,244.0,-1419.0,450.0,-1309.0,630.0,-1195.0
  9. }; //(AREA) Rodeo
  10. new Float:zones_points_3[] = {
  11.     136.0,-1739.0,134.0,-2031.0,966.0,-2109.0,1024.0,-2063.0,1036.0,-1831.0,998.0,-1811.0,864.0,-1787.0,690.0,-1775.0,604.0,-1747.0,440.0,-1729.0,
  12.     136.0,-1739.0
  13. }; //(AREA) Verona Beach
  14. new Float:zones_points_4[] = {
  15.     636.0,-1401.0,644.0,-1747.0,1022.0,-1807.0,1058.0,-1849.0,1324.0,-1853.0,1392.0,-1869.0,1678.0,-1865.0,1696.0,-1435.0,1412.0,-1443.0,1414.0,-1395.0,
  16.     636.0,-1401.0
  17. }; //(AREA) Center
  18. new Float:zones_points_5[] = {
  19.     1846.0,-1459.0,1694.0,-1431.0,1426.0,-1437.0,1422.0,-1391.0,1352.0,-1385.0,1362.0,-1035.0,1532.0,-1043.0,1828.0,-1073.0,1846.0,-1459.0
  20. }; //(AREA) Downtown
  21. new Float:zones_points_6[] = {
  22.     1836.0,-921.0,1850.0,-1343.0,2070.0,-1341.0,2066.0,-921.0,1836.0,-921.0
  23. }; //(AREA) Glen
  24. new Float:zones_points_7[] = {
  25.     2070.0,-923.0,2082.0,-1097.0,2282.0,-1151.0,2914.0,-1145.0,2910.0,-937.0,2070.0,-923.0
  26. }; //(AREA) Las Colinas
  27. new Float:zones_points_8[] = {
  28.     2076.0,-1105.0,2076.0,-1349.0,1846.0,-1351.0,1858.0,-1459.0,2112.0,-1463.0,2116.0,-1497.0,2212.0,-1499.0,2332.0,-1481.0,2340.0,-1385.0,2292.0,-1385.0,
  29.     2280.0,-1157.0,2076.0,-1105.0
  30. }; //(AREA) Jefferson
  31. new Float:zones_points_9[] = {
  32.     2288.0,-1157.0,2298.0,-1377.0,2352.0,-1379.0,2342.0,-1489.0,2346.0,-1553.0,2428.0,-1549.0,2944.0,-1549.0,2922.0,-1151.0,2288.0,-1157.0
  33. }; //(AREA) East LS
  34.  
  35.  
  36.  
  37. new zones[10];
  38.  
  39.  
  40.  
  41. public OnGameModeInit()
  42. {
  43.     zones[0] = CreateDynamicPolygon(zones_points_0);
  44.     zones[1] = CreateDynamicPolygon(zones_points_1);
  45.     zones[2] = CreateDynamicPolygon(zones_points_2);
  46.     zones[3] = CreateDynamicPolygon(zones_points_3);
  47.     zones[4] = CreateDynamicPolygon(zones_points_4);
  48.     zones[5] = CreateDynamicPolygon(zones_points_5);
  49.     zones[6] = CreateDynamicPolygon(zones_points_6);
  50.     zones[7] = CreateDynamicPolygon(zones_points_7);
  51.     zones[8] = CreateDynamicPolygon(zones_points_8);
  52.     zones[9] = CreateDynamicPolygon(zones_points_9);
  53.     return 1;
  54. }
  55.  
  56.  
  57. public OnPlayerEnterDynamicArea(playerid, areaid)
  58. {
  59.     if(areaid == zones[0]) GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~w~VineWood", 3000, 3);
  60.     else if(areaid == zones[1]) GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~w~Richman", 3000, 3);
  61.     else if(areaid == zones[2]) GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~w~Rodeo", 3000, 3);
  62.     else if(areaid == zones[3]) GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~w~Verona Beach", 3000, 3);
  63.     else if(areaid == zones[4]) GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~w~Center", 3000, 3);
  64.     else if(areaid == zones[5]) GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~w~Downtown", 3000, 3);
  65.     else if(areaid == zones[6]) GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~w~Glen Park", 3000, 3);
  66.     else if(areaid == zones[7]) GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~w~Las Colinas", 3000, 3);
  67.     else if(areaid == zones[8]) GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~w~Jefferson", 3000, 3);
  68.     else if(areaid == zones[9]) GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~w~East Los Santos", 3000, 3);
  69.     return 1;
  70. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top