Advertisement
Guest User

Skylord

a guest
Nov 22nd, 2009
632
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 33.33 KB | None | 0 0
  1. /*
  2. * In-Game Map Icon Creater by Compton's_Eazy_E
  3. * Credits -
  4. * DragoBlue - dudb
  5. * Ecko - Testing
  6. * Report Bugs!
  7. */
  8.  
  9. /*
  10. How To use this:
  11. 1: Use /createmapicon
  12. 2: Then make the one you want
  13. 3: When done, goto script files and it will be there
  14. NOTE: if your going to make more than 32 map icons, I suggest using a streamer!
  15. */
  16.  
  17. #include <a_samp>
  18. #include <dudb>
  19.  
  20. #pragma unused ret_memcpy
  21.  
  22. #define COLOR_WHITE 0xFFFFFFAA
  23. new Float:mx, Float:my, Float:mz;
  24.  
  25. public OnFilterScriptInit()
  26. {
  27. print("\n--------------------------------------");
  28. print(" In Game Icon Creator ");
  29. print(" Made by Skylord ");
  30. print("--------------------------------------\n");
  31. return 1;
  32. }
  33.  
  34. public OnFilterScriptExit()
  35. {
  36. return 1;
  37. }
  38.  
  39. public OnGameModeInit()
  40. {
  41. return 1;
  42. }
  43.  
  44. public OnGameModeExit()
  45. {
  46. return 1;
  47. }
  48.  
  49. public OnPlayerRequestClass(playerid, classid)
  50. {
  51. SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  52. SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  53. SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  54. return 1;
  55. }
  56.  
  57. public OnPlayerConnect(playerid)
  58. {
  59. return 1;
  60. }
  61.  
  62. public OnPlayerDisconnect(playerid, reason)
  63. {
  64. return 1;
  65. }
  66.  
  67. public OnPlayerSpawn(playerid)
  68. {
  69. return 1;
  70. }
  71.  
  72. public OnPlayerDeath(playerid, killerid, reason)
  73. {
  74. return 1;
  75. }
  76.  
  77. public OnVehicleSpawn(vehicleid)
  78. {
  79. return 1;
  80. }
  81.  
  82. public OnVehicleDeath(vehicleid, killerid)
  83. {
  84. return 1;
  85. }
  86.  
  87. public OnPlayerText(playerid, text[])
  88. {
  89. return 1;
  90. }
  91.  
  92. public OnPlayerCommandText(playerid, cmdtext[])
  93. {
  94. new cmd[256], idx;
  95. new string[256];
  96. cmd = strtok(cmdtext, idx);
  97. if(strcmp(cmd, "/createmapicon", true) == 0)
  98. {
  99. if(IsPlayerConnected(playerid))
  100. {
  101. new x_nr[256];
  102. x_nr = strtok(cmdtext, idx);
  103. if(!strlen(x_nr))
  104. {
  105. SendClientMessage(playerid, COLOR_WHITE, " --------USAGE: /createmapicon [IconName]-------- ");
  106. SendClientMessage(playerid, COLOR_WHITE, " PLANE, GUN, BARBER, BS(Burger Shot), BOAT, SMOKE ");
  107. SendClientMessage(playerid, COLOR_WHITE, " QUARRY, CATALINA, CESAR, CB(Cluckin' Bell), CJ ");
  108. SendClientMessage(playerid, COLOR_WHITE, " CRASH(Cops), MILKSHAKE, FLAG, FIRE, HEART, HOSPITAL ");
  109. SendClientMessage(playerid, COLOR_WHITE, " SKULL, MD(Madd Dogg), DICE, MC(OG Loc), TOOL, OG(OG Loc) ");
  110. SendClientMessage(playerid, COLOR_WHITE, " PIZZA, POLICE, GP(Green Property). RP(Red Property) ");
  111. SendClientMessage(playerid, COLOR_WHITE, " CUP(Trophee), RYDER, DISK(Save Disk), SCHOOL, UNKNOWN, SWEET ");
  112. SendClientMessage(playerid, COLOR_WHITE, " TATTO, TRUTH, TORENO, RT(Red Triads) YT(Yellow Triads) ");
  113. SendClientMessage(playerid, COLOR_WHITE, " CLOTHES, WOOZIE, ZERO, BULLEYE, BAR, RESTAURANT, TRUCK ");
  114. SendClientMessage(playerid, COLOR_WHITE, " MONEY, RACE, GYM, CAR, LIGHT, 3D(3Dots), VLA (Varrios Los Aztecas) ");
  115. SendClientMessage(playerid, COLOR_WHITE, " BALLAS, LSV(Los Santos Vagos), SFR(San Fierro Rifas) ");
  116. SendClientMessage(playerid, COLOR_WHITE, " GS(Grove Street), PNS(Pay 'n' Spray ");
  117. SendClientMessage(playerid, COLOR_WHITE, " ------------------------------------------------- ");
  118. return 1;
  119. }
  120. if(strcmp(x_nr,"PLANE",true) == 0)
  121. {
  122. GetPlayerPos(playerid, mx, my, mz);
  123. SetPlayerMapIcon( playerid, 1, mx, my, mz, 5, 0 );
  124. new File:pos = fopen("mapicons.txt", io_append);
  125. format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 5, 0); // Plane ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
  126. fwrite(pos, string);
  127. fclose(pos);
  128. SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
  129. return 1;
  130. }
  131. else if(strcmp(x_nr,"GUN",true) == 0)
  132. {
  133. GetPlayerPos(playerid, mx, my, mz);
  134. SetPlayerMapIcon( playerid, 2, mx, my, mz, 6, 0 );
  135. new File:pos = fopen("mapicons.txt", io_append);
  136. format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 6, 0); // Gun Shop ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
  137. fwrite(pos, string);
  138. fclose(pos);
  139. SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
  140. return 1;
  141. }
  142. else if(strcmp(x_nr,"BARBER",true) == 0)
  143. {
  144. GetPlayerPos(playerid, mx, my, mz);
  145. SetPlayerMapIcon( playerid, 3, mx, my, mz, 7, 0 );
  146. new File:pos = fopen("mapicons.txt", io_append);
  147. format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 7, 0); // Barber ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
  148. fwrite(pos, string);
  149. fclose(pos);
  150. SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
  151. return 1;
  152. }
  153. else if(strcmp(x_nr,"SMOKE",true) == 0)
  154. {
  155. GetPlayerPos(playerid, mx, my, mz);
  156. SetPlayerMapIcon( playerid, 4, mx, my, mz, 8, 0 );
  157. new File:pos = fopen("mapicons.txt", io_append);
  158. format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 8, 0); // Big Smoke ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
  159. fwrite(pos, string);
  160. fclose(pos);
  161. SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
  162. return 1;
  163. }
  164. else if(strcmp(x_nr,"BOAT",true) == 0)
  165. {
  166. GetPlayerPos(playerid, mx, my, mz);
  167. SetPlayerMapIcon( playerid, 5, mx, my, mz, 9, 0 );
  168. new File:pos = fopen("mapicons.txt", io_append);
  169. format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 9, 0); // Boat Yard ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
  170. fwrite(pos, string);
  171. fclose(pos);
  172. SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
  173. return 1;
  174. }
  175. else if(strcmp(x_nr,"BS",true) == 0)
  176. {
  177. GetPlayerPos(playerid, mx, my, mz);
  178. SetPlayerMapIcon( playerid, 6, mx, my, mz, 10, 0 );
  179. new File:pos = fopen("mapicons.txt", io_append);
  180. format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 10, 0); // Burger Shot ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
  181. fwrite(pos, string);
  182. fclose(pos);
  183. SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
  184. return 1;
  185. }
  186. else if(strcmp(x_nr,"Quarry",true) == 0)
  187. {
  188. GetPlayerPos(playerid, mx, my, mz);
  189. SetPlayerMapIcon( playerid, 7, mx, my, mz, 11, 0 );
  190. new File:pos = fopen("mapicons.txt", io_append);
  191. format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 11, 0); // Quarry ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
  192. fwrite(pos, string);
  193. fclose(pos);
  194. SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
  195. return 1;
  196. }
  197. else if(strcmp(x_nr,"CATALINA",true) == 0)
  198. {
  199. GetPlayerPos(playerid, mx, my, mz);
  200. SetPlayerMapIcon( playerid, 8, mx, my, mz, 12, 0 );
  201. new File:pos = fopen("mapicons.txt", io_append);
  202. format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 12, 0); // Catalina ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
  203. fwrite(pos, string);
  204. fclose(pos);
  205. SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
  206. return 1;
  207. }
  208. else if(strcmp(x_nr,"CESAR",true) == 0)
  209. {
  210. GetPlayerPos(playerid, mx, my, mz);
  211. SetPlayerMapIcon( playerid, 9, mx, my, mz, 13, 0 );
  212. new File:pos = fopen("mapicons.txt", io_append);
  213. format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 13, 0); // Cesar ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
  214. fwrite(pos, string);
  215. fclose(pos);
  216. SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
  217. return 1;
  218. }
  219. else if(strcmp(x_nr,"CB",true) == 0)
  220. {
  221. GetPlayerPos(playerid, mx, my, mz);
  222. SetPlayerMapIcon( playerid, 10, mx, my, mz, 14, 0 );
  223. new File:pos = fopen("mapicons.txt", io_append);
  224. format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 14, 0); // Cluckin' Bell ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
  225. fwrite(pos, string);
  226. fclose(pos);
  227. SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
  228. return 1;
  229. }
  230. else if(strcmp(x_nr,"CJ",true) == 0)
  231. {
  232. GetPlayerPos(playerid, mx, my, mz);
  233. SetPlayerMapIcon( playerid, 11, mx, my, mz, 15, 0 );
  234. new File:pos = fopen("mapicons.txt", io_append);
  235. format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 15, 0); // Carl Johnson ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
  236. fwrite(pos, string);
  237. fclose(pos);
  238. SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
  239. return 1;
  240. }
  241. else if(strcmp(x_nr,"CRASH",true) == 0)
  242. {
  243. GetPlayerPos(playerid, mx, my, mz);
  244. SetPlayerMapIcon( playerid, 12, mx, my, mz, 16, 0 );
  245. new File:pos = fopen("mapicons.txt", io_append);
  246. format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 16, 0); // C.R.A.S.H ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
  247. fwrite(pos, string);
  248. fclose(pos);
  249. SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
  250. return 1;
  251. }
  252. else if(strcmp(x_nr,"MILKSHAKE",true) == 0)
  253. {
  254. GetPlayerPos(playerid, mx, my, mz);
  255. SetPlayerMapIcon( playerid, 13, mx, my, mz, 17, 0 );
  256. new File:pos = fopen("mapicons.txt", io_append);
  257. format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 17, 0); // MilkShake ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
  258. fwrite(pos, string);
  259. fclose(pos);
  260. SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
  261. return 1;
  262. }
  263. else if(strcmp(x_nr,"FLAG",true) == 0)
  264. {
  265. GetPlayerPos(playerid, mx, my, mz);
  266. SetPlayerMapIcon( playerid, 14, mx, my, mz, 19, 0 );
  267. new File:pos = fopen("mapicons.txt", io_append);
  268. format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 19, 0); // Red Flag ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
  269. fwrite(pos, string);
  270. fclose(pos);
  271. SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
  272. return 1;
  273. }
  274. else if(strcmp(x_nr,"FIRE",true) == 0)
  275. {
  276. GetPlayerPos(playerid, mx, my, mz);
  277. SetPlayerMapIcon( playerid, 15, mx, my, mz, 20, 0 );
  278. new File:pos = fopen("mapicons.txt", io_append);
  279. format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 20, 0); // Fire Department ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
  280. fwrite(pos, string);
  281. fclose(pos);
  282. SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
  283. return 1;
  284. }
  285. else if(strcmp(x_nr,"HEART",true) == 0)
  286. {
  287. GetPlayerPos(playerid, mx, my, mz);
  288. SetPlayerMapIcon( playerid, 16, mx, my, mz, 21, 0 );
  289. new File:pos = fopen("mapicons.txt", io_append);
  290. format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 21, 0); // Heart ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
  291. fwrite(pos, string);
  292. fclose(pos);
  293. SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
  294. return 1;
  295. }
  296. else if(strcmp(x_nr,"HOSPITAL",true) == 0)
  297. {
  298. GetPlayerPos(playerid, mx, my, mz);
  299. SetPlayerMapIcon( playerid, 17, mx, my, mz, 22, 0 );
  300. new File:pos = fopen("mapicons.txt", io_append);
  301. format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 22, 0); // Hospital ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
  302. fwrite(pos, string);
  303. fclose(pos);
  304. SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
  305. return 1;
  306. }
  307. else if(strcmp(x_nr,"SKULL",true) == 0)
  308. {
  309. GetPlayerPos(playerid, mx, my, mz);
  310. SetPlayerMapIcon( playerid, 18, mx, my, mz, 23, 0 );
  311. new File:pos = fopen("mapicons.txt", io_append);
  312. format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 23, 0); // Skull ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
  313. fwrite(pos, string);
  314. fclose(pos);
  315. SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
  316. return 1;
  317. }
  318. else if(strcmp(x_nr,"MD",true) == 0)
  319. {
  320. GetPlayerPos(playerid, mx, my, mz);
  321. SetPlayerMapIcon( playerid, 19, mx, my, mz, 24, 0 );
  322. new File:pos = fopen("mapicons.txt", io_append);
  323. format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 24, 0); // Madd Dogg ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
  324. fwrite(pos, string);
  325. fclose(pos);
  326. SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
  327. return 1;
  328. }
  329. else if(strcmp(x_nr,"DICE",true) == 0)
  330. {
  331. GetPlayerPos(playerid, mx, my, mz);
  332. SetPlayerMapIcon( playerid, 20, mx, my, mz, 25, 0 );
  333. new File:pos = fopen("mapicons.txt", io_append);
  334. format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 25, 0); // Dice ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
  335. fwrite(pos, string);
  336. fclose(pos);
  337. SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
  338. return 1;
  339. }
  340. else if(strcmp(x_nr,"MC",true) == 0)
  341. {
  342. GetPlayerPos(playerid, mx, my, mz);
  343. SetPlayerMapIcon( playerid, 21, mx, my, mz, 26, 0 );
  344. new File:pos = fopen("mapicons.txt", io_append);
  345. format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 26, 0); // MC OG Loc ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
  346. fwrite(pos, string);
  347. fclose(pos);
  348. SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
  349. return 1;
  350. }
  351. else if(strcmp(x_nr,"TOOL",true) == 0)
  352. {
  353. GetPlayerPos(playerid, mx, my, mz);
  354. SetPlayerMapIcon( playerid, 22, mx, my, mz, 27, 0 );
  355. new File:pos = fopen("mapicons.txt", io_append);
  356. format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 27, 0); // Red Tool ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
  357. fwrite(pos, string);
  358. fclose(pos);
  359. SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
  360. return 1;
  361. }
  362. else if(strcmp(x_nr,"OG",true) == 0)
  363. {
  364. GetPlayerPos(playerid, mx, my, mz);
  365. SetPlayerMapIcon( playerid, 23, mx, my, mz, 28, 0 );
  366. new File:pos = fopen("mapicons.txt", io_append);
  367. format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 28, 0); // OG Loc ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
  368. fwrite(pos, string);
  369. fclose(pos);
  370. SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
  371. return 1;
  372. }
  373. else if(strcmp(x_nr,"PIZZA",true) == 0)
  374. {
  375. GetPlayerPos(playerid, mx, my, mz);
  376. SetPlayerMapIcon( playerid, 24, mx, my, mz, 29, 0 );
  377. new File:pos = fopen("mapicons.txt", io_append);
  378. format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 29, 0); // Pizza ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
  379. fwrite(pos, string);
  380. fclose(pos);
  381. SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
  382. return 1;
  383. }
  384. else if(strcmp(x_nr,"POLICE",true) == 0)
  385. {
  386. GetPlayerPos(playerid, mx, my, mz);
  387. SetPlayerMapIcon( playerid, 25, mx, my, mz, 30, 0 );
  388. new File:pos = fopen("mapicons.txt", io_append);
  389. format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 30, 0); // Police ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
  390. fwrite(pos, string);
  391. fclose(pos);
  392. SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
  393. return 1;
  394. }
  395. else if(strcmp(x_nr,"GP",true) == 0)
  396. {
  397. GetPlayerPos(playerid, mx, my, mz);
  398. SetPlayerMapIcon( playerid, 26, mx, my, mz, 31, 0 );
  399. new File:pos = fopen("mapicons.txt", io_append);
  400. format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 31, 0); // Green Property ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
  401. fwrite(pos, string);
  402. fclose(pos);
  403. SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
  404. return 1;
  405. }
  406. else if(strcmp(x_nr,"RP",true) == 0)
  407. {
  408. GetPlayerPos(playerid, mx, my, mz);
  409. SetPlayerMapIcon( playerid, 27, mx, my, mz, 32, 0 );
  410. new File:pos = fopen("mapicons.txt", io_append);
  411. format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 32, 0); // Red Property ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
  412. fwrite(pos, string);
  413. fclose(pos);
  414. SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
  415. return 1;
  416. }
  417. else if(strcmp(x_nr,"CUP",true) == 0)
  418. {
  419. GetPlayerPos(playerid, mx, my, mz);
  420. SetPlayerMapIcon( playerid, 28, mx, my, mz, 33, 0 );
  421. new File:pos = fopen("mapicons.txt", io_append);
  422. format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 33, 0); // Cup ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
  423. fwrite(pos, string);
  424. fclose(pos);
  425. SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
  426. return 1;
  427. }
  428. else if(strcmp(x_nr,"RYDER",true) == 0)
  429. {
  430. GetPlayerPos(playerid, mx, my, mz);
  431. SetPlayerMapIcon( playerid, 29, mx, my, mz, 34, 0 );
  432. new File:pos = fopen("mapicons.txt", io_append);
  433. format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 34, 0); // Ryder ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
  434. fwrite(pos, string);
  435. fclose(pos);
  436. SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
  437. return 1;
  438. }
  439. else if(strcmp(x_nr,"DISK",true) == 0)
  440. {
  441. GetPlayerPos(playerid, mx, my, mz);
  442. SetPlayerMapIcon( playerid, 30, mx, my, mz, 35, 0 );
  443. new File:pos = fopen("mapicons.txt", io_append);
  444. format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 35, 0); // Save Disk ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
  445. fwrite(pos, string);
  446. fclose(pos);
  447. SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
  448. return 1;
  449. }
  450. else if(strcmp(x_nr,"SCHOOL",true) == 0)
  451. {
  452. GetPlayerPos(playerid, mx, my, mz);
  453. SetPlayerMapIcon( playerid, 31, mx, my, mz, 36, 0 );
  454. new File:pos = fopen("mapicons.txt", io_append);
  455. format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 36, 0); // School ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
  456. fwrite(pos, string);
  457. fclose(pos);
  458. SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
  459. return 1;
  460. }
  461. else if(strcmp(x_nr,"UNKNOWN",true) == 0)
  462. {
  463. GetPlayerPos(playerid, mx, my, mz);
  464. SetPlayerMapIcon( playerid, 32, mx, my, mz, 37, 0 );
  465. new File:pos = fopen("mapicons.txt", io_append);
  466. format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 37, 0); // UnKnown ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
  467. fwrite(pos, string);
  468. fclose(pos);
  469. SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
  470. return 1;
  471. }
  472. else if(strcmp(x_nr,"SWEET",true) == 0)
  473. {
  474. GetPlayerPos(playerid, mx, my, mz);
  475. SetPlayerMapIcon( playerid, 33, mx, my, mz, 38, 0 );
  476. new File:pos = fopen("mapicons.txt", io_append);
  477. format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 38, 0); // Sweet ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
  478. fwrite(pos, string);
  479. fclose(pos);
  480. SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
  481. return 1;
  482. }
  483. else if(strcmp(x_nr,"TATTOO",true) == 0)
  484. {
  485. GetPlayerPos(playerid, mx, my, mz);
  486. SetPlayerMapIcon( playerid, 34, mx, my, mz, 39, 0 );
  487. new File:pos = fopen("mapicons.txt", io_append);
  488. format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 39, 0); // Tattoo ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
  489. fwrite(pos, string);
  490. fclose(pos);
  491. SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
  492. return 1;
  493. }
  494. else if(strcmp(x_nr,"TRUTH",true) == 0)
  495. {
  496. GetPlayerPos(playerid, mx, my, mz);
  497. SetPlayerMapIcon( playerid, 35, mx, my, mz, 40, 0 );
  498. new File:pos = fopen("mapicons.txt", io_append);
  499. format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 40, 0); // The Truth ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
  500. fwrite(pos, string);
  501. fclose(pos);
  502. SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
  503. return 1;
  504. }
  505. else if(strcmp(x_nr,"TORENO",true) == 0)
  506. {
  507. GetPlayerPos(playerid, mx, my, mz);
  508. SetPlayerMapIcon( playerid, 36, mx, my, mz, 42, 0 );
  509. new File:pos = fopen("mapicons.txt", io_append);
  510. format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 42, 0); // Toreno ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
  511. fwrite(pos, string);
  512. fclose(pos);
  513. SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
  514. return 1;
  515. }
  516. else if(strcmp(x_nr,"RT",true) == 0)
  517. {
  518. GetPlayerPos(playerid, mx, my, mz);
  519. SetPlayerMapIcon( playerid, 37, mx, my, mz, 43, 0 );
  520. new File:pos = fopen("mapicons.txt", io_append);
  521. format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 43, 0); // Red Triads ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
  522. fwrite(pos, string);
  523. fclose(pos);
  524. SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
  525. return 1;
  526. }
  527. else if(strcmp(x_nr,"YT",true) == 0)
  528. {
  529. GetPlayerPos(playerid, mx, my, mz);
  530. SetPlayerMapIcon( playerid, 38, mx, my, mz, 44, 0 );
  531. new File:pos = fopen("mapicons.txt", io_append);
  532. format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 44, 0); // Yellow Triads ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
  533. fwrite(pos, string);
  534. fclose(pos);
  535. SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
  536. return 1;
  537. }
  538. else if(strcmp(x_nr,"CLOTHES",true) == 0)
  539. {
  540. GetPlayerPos(playerid, mx, my, mz);
  541. SetPlayerMapIcon( playerid, 39, mx, my, mz, 45, 0 );
  542. new File:pos = fopen("mapicons.txt", io_append);
  543. format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 45, 0); // Clothes ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
  544. fwrite(pos, string);
  545. fclose(pos);
  546. SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
  547. return 1;
  548. }
  549. else if(strcmp(x_nr,"WOOZIE",true) == 0)
  550. {
  551. GetPlayerPos(playerid, mx, my, mz);
  552. SetPlayerMapIcon( playerid, 40, mx, my, mz, 46, 0 );
  553. new File:pos = fopen("mapicons.txt", io_append);
  554. format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 46, 0); // Woozie ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
  555. fwrite(pos, string);
  556. fclose(pos);
  557. SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
  558. return 1;
  559. }
  560. else if(strcmp(x_nr,"ZERO",true) == 0)
  561. {
  562. GetPlayerPos(playerid, mx, my, mz);
  563. SetPlayerMapIcon( playerid, 41, mx, my, mz, 47, 0 );
  564. new File:pos = fopen("mapicons.txt", io_append);
  565. format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 47, 0); // Zero ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
  566. fwrite(pos, string);
  567. fclose(pos);
  568. SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
  569. return 1;
  570. }
  571. else if(strcmp(x_nr,"BULLEYE",true) == 0)
  572. {
  573. GetPlayerPos(playerid, mx, my, mz);
  574. SetPlayerMapIcon( playerid, 42, mx, my, mz, 48, 0 );
  575. new File:pos = fopen("mapicons.txt", io_append);
  576. format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 48, 0); // Bulls eye ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
  577. fwrite(pos, string);
  578. fclose(pos);
  579. SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
  580. return 1;
  581. }
  582. else if(strcmp(x_nr,"BAR",true) == 0)
  583. {
  584. GetPlayerPos(playerid, mx, my, mz);
  585. SetPlayerMapIcon( playerid, 43, mx, my, mz, 49, 0 );
  586. new File:pos = fopen("mapicons.txt", io_append);
  587. format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 49, 0); // Bar ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
  588. fwrite(pos, string);
  589. fclose(pos);
  590. SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
  591. return 1;
  592. }
  593. else if(strcmp(x_nr,"RESTAURANT",true) == 0)
  594. {
  595. GetPlayerPos(playerid, mx, my, mz);
  596. SetPlayerMapIcon( playerid, 44, mx, my, mz, 50, 0 );
  597. new File:pos = fopen("mapicons.txt", io_append);
  598. format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 50, 0); // Restaurant ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
  599. fwrite(pos, string);
  600. fclose(pos);
  601. SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
  602. return 1;
  603. }
  604. else if(strcmp(x_nr,"TRUCK",true) == 0)
  605. {
  606. GetPlayerPos(playerid, mx, my, mz);
  607. SetPlayerMapIcon( playerid, 45, mx, my, mz, 51, 0 );
  608. new File:pos = fopen("mapicons.txt", io_append);
  609. format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 51, 0); // Truck ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
  610. fwrite(pos, string);
  611. fclose(pos);
  612. SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
  613. return 1;
  614. }
  615. else if(strcmp(x_nr,"MONEY",true) == 0)
  616. {
  617. GetPlayerPos(playerid, mx, my, mz);
  618. SetPlayerMapIcon( playerid, 46, mx, my, mz, 52, 0 );
  619. new File:pos = fopen("mapicons.txt", io_append);
  620. format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 52, 0); // Money ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
  621. fwrite(pos, string);
  622. fclose(pos);
  623. SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
  624. return 1;
  625. }
  626. else if(strcmp(x_nr,"RACE",true) == 0)
  627. {
  628. GetPlayerPos(playerid, mx, my, mz);
  629. SetPlayerMapIcon( playerid, 47, mx, my, mz, 53, 0 );
  630. new File:pos = fopen("mapicons.txt", io_append);
  631. format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 53, 0); // Race Flag ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
  632. fwrite(pos, string);
  633. fclose(pos);
  634. SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
  635. return 1;
  636. }
  637. else if(strcmp(x_nr,"GYM",true) == 0)
  638. {
  639. GetPlayerPos(playerid, mx, my, mz);
  640. SetPlayerMapIcon( playerid, 48, mx, my, mz, 54, 0 );
  641. new File:pos = fopen("mapicons.txt", io_append);
  642. format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 54, 0); // Gym ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
  643. fwrite(pos, string);
  644. fclose(pos);
  645. SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
  646. return 1;
  647. }
  648. else if(strcmp(x_nr,"CAR",true) == 0)
  649. {
  650. GetPlayerPos(playerid, mx, my, mz);
  651. SetPlayerMapIcon( playerid, 49, mx, my, mz, 55, 0 );
  652. new File:pos = fopen("mapicons.txt", io_append);
  653. format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 55, 0); // Car ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
  654. fwrite(pos, string);
  655. fclose(pos);
  656. SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
  657. return 1;
  658. }
  659. else if(strcmp(x_nr,"LIGHT",true) == 0)
  660. {
  661. GetPlayerPos(playerid, mx, my, mz);
  662. SetPlayerMapIcon( playerid, 50, mx, my, mz, 56, 0 );
  663. new File:pos = fopen("mapicons.txt", io_append);
  664. format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 56, 0); // Light ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
  665. fwrite(pos, string);
  666. fclose(pos);
  667. SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
  668. return 1;
  669. }
  670. else if(strcmp(x_nr,"3D",true) == 0)
  671. {
  672. GetPlayerPos(playerid, mx, my, mz);
  673. SetPlayerMapIcon( playerid, 51, mx, my, mz, 57, 0 );
  674. new File:pos = fopen("mapicons.txt", io_append);
  675. format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 57, 0); // 3 Dots ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
  676. fwrite(pos, string);
  677. fclose(pos);
  678. SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
  679. return 1;
  680. }
  681. else if(strcmp(x_nr,"VLA",true) == 0)
  682. {
  683. GetPlayerPos(playerid, mx, my, mz);
  684. SetPlayerMapIcon( playerid, 52, mx, my, mz, 58, 0 );
  685. new File:pos = fopen("mapicons.txt", io_append);
  686. format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 58, 0); // Varrios Los Aztecas ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
  687. fwrite(pos, string);
  688. fclose(pos);
  689. SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
  690. return 1;
  691. }
  692. else if(strcmp(x_nr,"BALLAS",true) == 0)
  693. {
  694. GetPlayerPos(playerid, mx, my, mz);
  695. SetPlayerMapIcon( playerid, 53, mx, my, mz, 59, 0 );
  696. new File:pos = fopen("mapicons.txt", io_append);
  697. format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 59, 0); // Ballas ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
  698. fwrite(pos, string);
  699. fclose(pos);
  700. SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
  701. return 1;
  702. }
  703. else if(strcmp(x_nr,"LSV",true) == 0)
  704. {
  705. GetPlayerPos(playerid, mx, my, mz);
  706. SetPlayerMapIcon( playerid, 54, mx, my, mz, 60, 0 );
  707. new File:pos = fopen("mapicons.txt", io_append);
  708. format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 60, 0); // Los Santos Vagos ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
  709. fwrite(pos, string);
  710. fclose(pos);
  711. SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
  712. return 1;
  713. }
  714. else if(strcmp(x_nr,"SFR",true) == 0)
  715. {
  716. GetPlayerPos(playerid, mx, my, mz);
  717. SetPlayerMapIcon( playerid, 55, mx, my, mz, 61, 0 );
  718. new File:pos = fopen("mapicons.txt", io_append);
  719. format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 61, 0); // San Fierro Rifa ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
  720. fwrite(pos, string);
  721. fclose(pos);
  722. SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
  723. return 1;
  724. }
  725. else if(strcmp(x_nr,"GS",true) == 0)
  726. {
  727. GetPlayerPos(playerid, mx, my, mz);
  728. SetPlayerMapIcon( playerid, 56, mx, my, mz, 62, 0 );
  729. new File:pos = fopen("mapicons.txt", io_append);
  730. format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 62, 0); // Grove Street ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
  731. fwrite(pos, string);
  732. fclose(pos);
  733. SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
  734. return 1;
  735. }
  736. else if(strcmp(x_nr,"PNS",true) == 0)
  737. {
  738. GetPlayerPos(playerid, mx, my, mz);
  739. SetPlayerMapIcon( playerid, 57, mx, my, mz, 63, 0 );
  740. new File:pos = fopen("mapicons.txt", io_append);
  741. format(string, sizeof string, "SetPlayerMapIcon( playerid, 1, %.2f, %.2f, %.2f, 63, 0); // Pay 'N' Spray ! Created By Comptons_Eazy_E's \r\n", mx, my, mz);
  742. fwrite(pos, string);
  743. fclose(pos);
  744. SendClientMessage(playerid, COLOR_WHITE, "Map Icon Saved To DataBase check mapicons.txt");
  745. return 1;
  746. }
  747. }
  748. return 1;
  749. }
  750. return 0;
  751. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement