Advertisement
Guest User

Default Map Icons

a guest
Dec 9th, 2010
1,986
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 2.92 KB | None | 0 0
  1. /**********************\
  2.  * Default map icons  *
  3.  *  by wups           *
  4. \**********************/
  5.  
  6.  
  7. #include <a_samp>
  8.  
  9. // comment these if you do not want to use them.
  10. #define PAY_SPRAY
  11. #define BARBER
  12. #define PIZZA
  13. #define BURGER
  14. #define CLUCKIN
  15. #define TATTOO
  16. #define CLOTHES
  17. #define AMMUNATION
  18.  
  19. enum Chars
  20. {
  21.     ID,
  22.     Float:X,
  23.     Float:Y,
  24.     Float:Z
  25. }
  26.  
  27. new const Coords[][ Chars ] = {
  28.  
  29. #if defined PAY_SPRAY
  30.     {63,2067.4,-1831.2,13.5},
  31.     {63,488.0,-1734.0,34.4},
  32.     {63,720.016,-454.625,15.328},
  33.     {63,-1420.547,2583.945,58.031},
  34.     {63,1966.532,2162.65,10.995},
  35.     {63,-2425.46,1020.83,49.39},
  36.     {63,1021.8,-1018.7,30.9},
  37.     {63,-1908.9,292.3,40.0},
  38.     {63,-103.6,1112.4,18.7},
  39. #endif
  40.  
  41. #if defined BARBER
  42.     {7,822.6,-1590.3,13.5},
  43.     {7,-2570.1,245.4,10.3},
  44.     {7,2726.6,-2026.4,17.5},
  45.     {7,2080.3,2119.0,10.8},
  46.     {7,675.7,-496.6,16.8},
  47. #endif
  48.  
  49. #if defined PIZZA
  50.     {29,-1805.7,943.2,24.8},
  51.     {29,2750.9,2470.9,11.0},
  52.     {29,2351.8,2529.0,10.8},
  53.     {29,2635.5,1847.4,11.0},
  54.     {29,2083.4,2221.0,11.0},
  55.     {29,-1719.1,1359.4,8.6},
  56.     {29,2330.2,75.2,31.0},
  57.     {29,203.2,-200.4,6.5},
  58. #endif
  59.  
  60. #if defined BURGER
  61.     {10,812.9,-1616.1,13.6},
  62.     {10,1199.1,-924.0,43.3},
  63.     {10,2362.2,2069.9,10.8},
  64.     {10,2469.5,2033.8,10.8},
  65.     {10,2172.9,2795.7,10.8},
  66.     {10,1875.3,2072.0,10.8},
  67.     {10,1161.5,2072.0,10.8},
  68.     {10,-2356.0,1009.0,49.0},
  69.     {10,-1913.3,826.2,36.9},
  70.     {10,-2335.6,-165.6,39.5},
  71. #endif
  72.  
  73. #if defined CLUCKIN
  74.     {14,2397.8,-1895.6,13.7},
  75.     {14,2421.6,-1509.6,24.1},
  76.     {14,-2671.6,257.4,4.6},
  77.     {14,2392.4,2046.5,10.8},
  78.     {14,2844.5,2401.1,11.0},
  79.     {14,2635.5,1674.3,11.0},
  80.     {14,2105.7,2228.7,11.0},
  81.     {14,-2154.0,-2461.2,30.8},
  82.     {14,-1816.2,620.8,37.5},
  83.     {14,-1216.0,1831.4,45.3},
  84.     {14,172.73,1176.76,13.7},
  85.     {14,932.0,-1353.0,14.0},
  86. #endif
  87.  
  88. #if defined TATTOO
  89.     {39,1971.7,-2036.6,13.5},
  90.     {39,2071.6,-1779.9,13.5},
  91.     {39,2094.6,2119.0,10.8},
  92.     {39,-2490.5,-40.1,39.3},
  93. #endif
  94.  
  95. #if defined CLOTHES
  96.     {45,-2376.4,909.2,45.4},
  97.     {45,1654.0,1733.4,11.0},
  98.     {45,2105.7,2257.4,11.0},
  99.     {45,-2371.1,910.2,47.2},
  100.     {45,501.7,-1358.5,16.4},
  101.     {45,2818.6,2401.5,11.0},
  102.     {45,2112.8,-1214.7,23.9},
  103.     {45,2772.0,2447.6,11.0},
  104.     {45,-2489.0,-26.9,32.6},
  105. #endif
  106.  
  107. #if defined TUNE
  108.     {27,2644.252,-2028.246,12.5547},
  109.     {27,1043.4,-1025.3,34.4},
  110. #endif
  111.  
  112. #if defined AMMUNATION
  113.     {6,1372.9,-1278.8,12.5},
  114.     {6,-2626.6,209.4,4.9},
  115.     {6,2535.9,2083.5,10.8},
  116.     {6,2156.5,943.2,10.8},
  117.     {6,779.7,1874.3,4.9},
  118.     {6,-2092.7,-2463.8,30.6},
  119.     {6,240.0,-178.2,2.0},
  120.     {6,-1509.4,2611.8,58.5},
  121.     {6,-315.67,829.87,13.43},
  122.     {6,2332.9,63.6,31.0},
  123. #endif
  124.  
  125.     {18,2447.364,-1974.496,12.5469}
  126.  
  127. };
  128.  
  129. public OnFilterScriptInit()
  130. {
  131.     print("|**********************|");
  132.     print(" * Default map icons  *");
  133.     print(" *  by wups           *");
  134.     print("|**********************|");
  135.     return 1;
  136. }
  137. public OnPlayerConnect(playerid)
  138. {
  139.     for(new i;i<sizeof(Coords);i++) SetPlayerMapIcon(playerid,i,Coords[i][X],Coords[i][Y],Coords[i][Z],Coords[i][ID],0,MAPICON_LOCAL);
  140.     return 1;
  141. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement