mapicons.pwn 2.8 KB

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