Guest User

Shadow's In-Game Map Icon Generator (ZCMD)

a guest
Jan 8th, 2012
1,585
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 24.38 KB | None | 0 0
  1. /* Shadow's Map-Icon Generator
  2. * Version 2 */
  3.  
  4. #define FILTERSCRIPT
  5.  
  6. #include <a_samp>
  7. #include <zcmd>
  8.  
  9. #define RED 0xE60000FF
  10.  
  11. new Float:x, Float:y, Float:z;
  12.  
  13. main()
  14. {
  15.     print("\n----------------------------------");
  16.     print("Shadows - Map Icon Generator");
  17.     print("Last Edited: 8th January 2012 (22:52 GMT+0)");
  18.     print("Thanks for using Shadow's Map Icon Generator");
  19.     print("----------------------------------\n");
  20. }
  21.  
  22. COMMAND:createicon(playerid, params[])
  23. {
  24.     ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Click the icon you wish to create", "White Square\nPlayer Position\nPlayer (MapMenu)\nNorth\nAir Yard\nAmmunation\nBarber\nBig Smoke\nBoat Yard\nBurger Shot\nQuarry\nCatalina\nCesar\nCluckin'Bell\nCarl Johnson\nC.R.A.S.H\nDiner\nEmmet\nEnemy Attack\nFire\nGirlfriend\nHospital\nLoco\nMadd Dogg\nCaligulas\nOG Loc\n\nMod Shop\nOG\nWell Stacked Pizza Co'\nPolice\nProperty(green)\nProperty(red)\nRace\nRyder\nSave Gave\nSchool\nUnknown", "Select", "Cancel");
  25.     SendClientMessage(playerid, RED, "If you cannot find the icon you're looking for try, /createicon2");
  26.     return 1;
  27. }
  28.  
  29. COMMAND:createicon2(playerid, params[])
  30. {
  31.     ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Click the icon you wish to create", "Sweet\nTatto\nThe Truth\nWaypoint\nToreno\nTraids\nTriads Casino\nClothes\nWoozie\nZero\nDisco\nBar\nRestaurant\nTruck\nRobbery\nRace\nGym\nCar\nLight\nClosest Airport\nVarrio Los Aztecas\nBallas\nLos Santos Vagos\nSan Fierro Rifa\nGrove Street\nPay'N'Spray", "Select", "Cancel");
  32.     return 1;
  33. }
  34.  
  35. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  36. {
  37.     new string[256];
  38.     if(dialogid == 1 && response)
  39.     {
  40.         switch(listitem)
  41.         {
  42.             case 0:
  43.             {
  44.                 GetPlayerPos(playerid, x, y, z);
  45.                 SetPlayerMapIcon(playerid, 1, x, y, z, 1, 1);
  46.                 new File:map = fopen("shadowicon.txt", io_append);
  47.                 format(string, sizeof string, "SetPlayerMapIcon(playerid, 1, %.2f, %.2f, %.2f, 1, 1); // Map icon Created by Shadow\r\n", x, y, z);
  48.                 fwrite(map, string);
  49.                 fclose(map);
  50.             }
  51.             case 1:
  52.             {
  53.                 GetPlayerPos(playerid, x, y, z);
  54.                 SetPlayerMapIcon(playerid, 2, x, y, z, 2, 0);
  55.                 new File:map = fopen("shadowicon.txt", io_append);
  56.                 format(string, sizeof string, "SetPlayerMapIcon(playerid, 2, %.2f, %.2f, %.2f, 2, 0); // Map icon Created by Shadow\r\n", x, y, z);
  57.                 fwrite(map, string);
  58.                 fclose(map);
  59.             }
  60.             case 2:
  61.             {
  62.                 GetPlayerPos(playerid, x, y, z);
  63.                 SetPlayerMapIcon(playerid, 3, x, y, z, 3, 0);
  64.                 new File:map = fopen("shadowicon.txt", io_append);
  65.                 format(string, sizeof string, "SetPlayerMapIcon(playerid, 3, %.2f, %.2f, %.2f, 4, 0); // Map icon Created by Shadow\r\n", x, y, z);
  66.                 fwrite(map, string);
  67.                 fclose(map);
  68.             }
  69.             case 3:
  70.             {
  71.                 GetPlayerPos(playerid, x, y, z);
  72.                 SetPlayerMapIcon(playerid, 4, x, y, z, 4, 0);
  73.                 new File:map = fopen("shadowicon.txt", io_append);
  74.                 format(string, sizeof string, "SetPlayerMapIcon(playerid, 4, %.2f, %.2f, %.2f, 4, 0); // Map icon Created by Shadow\r\n", x, y, z);
  75.                 fwrite(map, string);
  76.                 fclose(map);
  77.             }
  78.             case 4:
  79.             {
  80.                 GetPlayerPos(playerid, x, y, z);
  81.                 SetPlayerMapIcon(playerid, 5, x, y, z, 5, 0);
  82.                 new File:map = fopen("shadowicon.txt", io_append);
  83.                 format(string, sizeof string, "SetPlayerMapIcon(playerid, 5, %.2f, %.2f, %.2f, 5, 0); // Map icon Created by Shadow\r\n", x, y, z);
  84.                 fwrite(map, string);
  85.                 fclose(map);
  86.             }
  87.             case 5:
  88.             {
  89.                 GetPlayerPos(playerid, x, y, z);
  90.                 SetPlayerMapIcon(playerid, 6, x, y, z, 6, 0);
  91.                 new File:map = fopen("shadowicon.txt", io_append);
  92.                 format(string, sizeof string, "SetPlayerMapIcon(playerid, 6, %.2f, %.2f, %.2f, 6, 0); // Map icon Created by Shadow\r\n", x, y, z);
  93.                 fwrite(map, string);
  94.                 fclose(map);
  95.             }
  96.             case 6:
  97.             {
  98.                 GetPlayerPos(playerid, x, y, z);
  99.                 SetPlayerMapIcon(playerid, 7, x, y, z, 7, 0);
  100.                 new File:map = fopen("shadowicon.txt", io_append);
  101.                 format(string, sizeof string, "SetPlayerMapIcon(playerid, 7, %.2f, %.2f, %.2f, 7, 0); // Map icon Created by Shadow\r\n", x, y, z);
  102.                 fwrite(map, string);
  103.                 fclose(map);
  104.             }
  105.             case 7:
  106.             {
  107.                 GetPlayerPos(playerid, x, y, z);
  108.                 SetPlayerMapIcon(playerid, 8, x, y, z, 8, 0);
  109.                 new File:map = fopen("shadowicon.txt", io_append);
  110.                 format(string, sizeof string, "SetPlayerMapIcon(playerid, 8, %.2f, %.2f, %.2f, 8, 0); // Map icon Created by Shadow\r\n", x, y, z);
  111.                 fwrite(map, string);
  112.                 fclose(map);
  113.             }
  114.             case 8:
  115.             {
  116.                 GetPlayerPos(playerid, x, y, z);
  117.                 SetPlayerMapIcon(playerid, 9, x, y, z, 9, 0);
  118.                 new File:map = fopen("shadowicon.txt", io_append);
  119.                 format(string, sizeof string, "SetPlayerMapIcon(playerid, 9, %.2f, %.2f, %.2f, 9, 0); // Map icon Created by Shadow\r\n", x, y, z);
  120.                 fwrite(map, string);
  121.                 fclose(map);
  122.             }
  123.             case 9:
  124.             {
  125.                 GetPlayerPos(playerid, x, y, z);
  126.                 SetPlayerMapIcon(playerid, 10, x, y, z, 10, 0);
  127.                 new File:map = fopen("shadowicon.txt", io_append);
  128.                 format(string, sizeof string, "SetPlayerMapIcon(playerid, 10, %.2f, %.2f, %.2f, 10, 0); // Map icon Created by Shadow\r\n", x, y, z);
  129.                 fwrite(map, string);
  130.                 fclose(map);
  131.             }
  132.             case 10:
  133.             {
  134.                 GetPlayerPos(playerid, x, y, z);
  135.                 SetPlayerMapIcon(playerid, 11, x, y, z, 11, 0);
  136.                 new File:map = fopen("shadowicon.txt", io_append);
  137.                 format(string, sizeof string, "SetPlayerMapIcon(playerid, 11, %.2f, %.2f, %.2f, 11, 0); // Map icon Created by Shadow\r\n", x, y, z);
  138.                 fwrite(map, string);
  139.                 fclose(map);
  140.             }
  141.             case 11:
  142.             {
  143.                 GetPlayerPos(playerid, x, y, z);
  144.                 SetPlayerMapIcon(playerid, 12, x, y, z, 12, 0);
  145.                 new File:map = fopen("shadowicon.txt", io_append);
  146.                 format(string, sizeof string, "SetPlayerMapIcon(playerid, 12, %.2f, %.2f, %.2f, 12, 0); // Map icon Created by Shadow\r\n", x, y, z);
  147.                 fwrite(map, string);
  148.                 fclose(map);
  149.             }
  150.             case 12:
  151.             {
  152.                 GetPlayerPos(playerid, x, y, z);
  153.                 SetPlayerMapIcon(playerid, 13, x, y, z, 13, 0);
  154.                 new File:map = fopen("shadowicon.txt", io_append);
  155.                 format(string, sizeof string, "SetPlayerMapIcon(playerid, 13, %.2f, %.2f, %.2f, 13, 0); // Map icon Created by Shadow\r\n", x, y, z);
  156.                 fwrite(map, string);
  157.                 fclose(map);
  158.             }
  159.             case 13:
  160.             {
  161.                 GetPlayerPos(playerid, x, y, z);
  162.                 SetPlayerMapIcon(playerid, 14, x, y, z, 14, 0);
  163.                 new File:map = fopen("shadowicon.txt", io_append);
  164.                 format(string, sizeof string, "SetPlayerMapIcon(playerid, 14, %.2f, %.2f, %.2f, 14, 0); // Map icon Created by Shadow\r\n", x, y, z);
  165.                 fwrite(map, string);
  166.                 fclose(map);
  167.             }
  168.             case 14:
  169.             {
  170.                 GetPlayerPos(playerid, x, y, z);
  171.                 SetPlayerMapIcon(playerid, 15, x, y, z, 15, 0);
  172.                 new File:map = fopen("shadowicon.txt", io_append);
  173.                 format(string, sizeof string, "SetPlayerMapIcon(playerid, 15, %.2f, %.2f, %.2f, 15, 0); // Map icon Created by Shadow\r\n", x, y, z);
  174.                 fwrite(map, string);
  175.                 fclose(map);
  176.             }
  177.             case 15:
  178.             {
  179.                 GetPlayerPos(playerid, x, y, z);
  180.                 SetPlayerMapIcon(playerid, 16, x, y, z, 16, 0);
  181.                 new File:map = fopen("shadowicon.txt", io_append);
  182.                 format(string, sizeof string, "SetPlayerMapIcon(playerid, 16, %.2f, %.2f, %.2f, 16, 0); // Map icon Created by Shadow\r\n", x, y, z);
  183.                 fwrite(map, string);
  184.                 fclose(map);
  185.             }
  186.             case 16:
  187.             {
  188.                 GetPlayerPos(playerid, x, y, z);
  189.                 SetPlayerMapIcon(playerid, 17, x, y, z, 17, 0);
  190.                 new File:map = fopen("shadowicon.txt", io_append);
  191.                 format(string, sizeof string, "SetPlayerMapIcon(playerid, 17, %.2f, %.2f, %.2f, 17, 0); // Map icon Created by Shadow\r\n", x, y, z);
  192.                 fwrite(map, string);
  193.                 fclose(map);
  194.             }
  195.             case 17:
  196.             {
  197.                 GetPlayerPos(playerid, x, y, z);
  198.                 SetPlayerMapIcon(playerid, 18, x, y, z, 18, 0);
  199.                 new File:map = fopen("shadowicon.txt", io_append);
  200.                 format(string, sizeof string, "SetPlayerMapIcon(playerid, 18, %.2f, %.2f, %.2f, 18, 0); // Map icon Created by Shadow\r\n", x, y, z);
  201.                 fwrite(map, string);
  202.                 fclose(map);
  203.             }
  204.             case 18:
  205.             {
  206.                 GetPlayerPos(playerid, x, y, z);
  207.                 SetPlayerMapIcon(playerid, 19, x, y, z, 19, 0);
  208.                 new File:map = fopen("shadowicon.txt", io_append);
  209.                 format(string, sizeof string, "SetPlayerMapIcon(playerid, 19, %.2f, %.2f, %.2f, 19, 0); // Map icon Created by Shadow\r\n", x, y, z);
  210.                 fwrite(map, string);
  211.                 fclose(map);
  212.             }
  213.             case 19:
  214.             {
  215.                 GetPlayerPos(playerid, x, y, z);
  216.                 SetPlayerMapIcon(playerid, 20, x, y, z, 20, 0);
  217.                 new File:map = fopen("shadowicon.txt", io_append);
  218.                 format(string, sizeof string, "SetPlayerMapIcon(playerid, 20, %.2f, %.2f, %.2f, 20, 0); // Map icon Created by Shadow\r\n", x, y, z);
  219.                 fwrite(map, string);
  220.                 fclose(map);
  221.             }
  222.             case 20:
  223.             {
  224.                 GetPlayerPos(playerid, x, y, z);
  225.                 SetPlayerMapIcon(playerid, 21, x, y, z, 21, 0);
  226.                 new File:map = fopen("shadowicon.txt", io_append);
  227.                 format(string, sizeof string, "SetPlayerMapIcon(playerid, 21, %.2f, %.2f, %.2f, 21, 0); // Map icon Created by Shadow\r\n", x, y, z);
  228.                 fwrite(map, string);
  229.                 fclose(map);
  230.             }
  231.             case 21:
  232.             {
  233.                 GetPlayerPos(playerid, x, y, z);
  234.                 SetPlayerMapIcon(playerid, 22, x, y, z, 22, 0);
  235.                 new File:map = fopen("shadowicon.txt", io_append);
  236.                 format(string, sizeof string, "SetPlayerMapIcon(playerid, 22, %.2f, %.2f, %.2f, 22, 0); // Map icon Created by Shadow\r\n", x, y, z);
  237.                 fwrite(map, string);
  238.                 fclose(map);
  239.             }
  240.             case 22:
  241.             {
  242.                 GetPlayerPos(playerid, x, y, z);
  243.                 SetPlayerMapIcon(playerid, 23, x, y, z, 23, 0);
  244.                 new File:map = fopen("shadowicon.txt", io_append);
  245.                 format(string, sizeof string, "SetPlayerMapIcon(playerid, 23, %.2f, %.2f, %.2f, 23, 0); // Map icon Created by Shadow\r\n", x, y, z);
  246.                 fwrite(map, string);
  247.                 fclose(map);
  248.             }
  249.             case 23:
  250.             {
  251.                 GetPlayerPos(playerid, x, y, z);
  252.                 SetPlayerMapIcon(playerid, 24, x, y, z, 24, 0);
  253.                 new File:map = fopen("shadowicon.txt", io_append);
  254.                 format(string, sizeof string, "SetPlayerMapIcon(playerid, 24, %.2f, %.2f, %.2f, 24, 0); // Map icon Created by Shadow\r\n", x, y, z);
  255.                 fwrite(map, string);
  256.                 fclose(map);
  257.             }
  258.             case 24:
  259.             {
  260.                 GetPlayerPos(playerid, x, y, z);
  261.                 SetPlayerMapIcon(playerid, 25, x, y, z, 25, 0);
  262.                 new File:map = fopen("shadowicon.txt", io_append);
  263.                 format(string, sizeof string, "SetPlayerMapIcon(playerid, 25, %.2f, %.2f, %.2f, 25, 0); // Map icon Created by Shadow\r\n", x, y, z);
  264.                 fwrite(map, string);
  265.                 fclose(map);
  266.             }
  267.             case 25:
  268.             {
  269.                 GetPlayerPos(playerid, x, y, z);
  270.                 SetPlayerMapIcon(playerid, 26, x, y, z, 26, 0);
  271.                 new File:map = fopen("shadowicon.txt", io_append);
  272.                 format(string, sizeof string, "SetPlayerMapIcon(playerid, 26, %.2f, %.2f, %.2f, 26, 0); // Map icon Created by Shadow\r\n", x, y, z);
  273.                 fwrite(map, string);
  274.                 fclose(map);
  275.             }
  276.             case 26:
  277.             {
  278.                 GetPlayerPos(playerid, x, y, z);
  279.                 SetPlayerMapIcon(playerid, 27, x, y, z, 27, 0);
  280.                 new File:map = fopen("shadowicon.txt", io_append);
  281.                 format(string, sizeof string, "SetPlayerMapIcon(playerid, 27, %.2f, %.2f, %.2f, 27, 0); // Map icon Created by Shadow\r\n", x, y, z);
  282.                 fwrite(map, string);
  283.                 fclose(map);
  284.             }
  285.             case 27:
  286.             {
  287.                 GetPlayerPos(playerid, x, y, z);
  288.                 SetPlayerMapIcon(playerid, 28, x, y, z, 28, 0);
  289.                 new File:map = fopen("shadowicon.txt", io_append);
  290.                 format(string, sizeof string, "SetPlayerMapIcon(playerid, 28, %.2f, %.2f, %.2f, 28, 0); // Map icon Created by Shadow\r\n", x, y, z);
  291.                 fwrite(map, string);
  292.                 fclose(map);
  293.             }
  294.             case 28:
  295.             {
  296.                 GetPlayerPos(playerid, x, y, z);
  297.                 SetPlayerMapIcon(playerid, 29, x, y, z, 29, 0);
  298.                 new File:map = fopen("shadowicon.txt", io_append);
  299.                 format(string, sizeof string, "SetPlayerMapIcon(playerid, 29, %.2f, %.2f, %.2f, 29, 0); // Map icon Created by Shadow\r\n", x, y, z);
  300.                 fwrite(map, string);
  301.                 fclose(map);
  302.             }
  303.             case 29:
  304.             {
  305.                 GetPlayerPos(playerid, x, y, z);
  306.                 SetPlayerMapIcon(playerid, 30, x, y, z, 30, 0);
  307.                 new File:map = fopen("shadowicon.txt", io_append);
  308.                 format(string, sizeof string, "SetPlayerMapIcon(playerid, 30, %.2f, %.2f, %.2f, 30, 0); // Map icon Created by Shadow\r\n", x, y, z);
  309.                 fwrite(map, string);
  310.                 fclose(map);
  311.             }
  312.             case 30:
  313.             {
  314.                 GetPlayerPos(playerid, x, y, z);
  315.                 SetPlayerMapIcon(playerid, 31, x, y, z, 31, 0);
  316.                 new File:map = fopen("shadowicon.txt", io_append);
  317.                 format(string, sizeof string, "SetPlayerMapIcon(playerid, 31, %.2f, %.2f, %.2f, 31, 0); // Map icon Created by Shadow\r\n", x, y, z);
  318.                 fwrite(map, string);
  319.                 fclose(map);
  320.             }
  321.             case 31:
  322.             {
  323.                 GetPlayerPos(playerid, x, y, z);
  324.                 SetPlayerMapIcon(playerid, 32, x, y, z, 32, 0);
  325.                 new File:map = fopen("shadowicon.txt", io_append);
  326.                 format(string, sizeof string, "SetPlayerMapIcon(playerid, 32, %.2f, %.2f, %.2f, 32, 0); // Map icon Created by Shadow\r\n", x, y, z);
  327.                 fwrite(map, string);
  328.                 fclose(map);
  329.             }
  330.             case 32:
  331.             {
  332.                 GetPlayerPos(playerid, x, y, z);
  333.                 SetPlayerMapIcon(playerid, 33, x, y, z, 33, 0);
  334.                 new File:map = fopen("shadowicon.txt", io_append);
  335.                 format(string, sizeof string, "SetPlayerMapIcon(playerid, 33, %.2f, %.2f, %.2f, 33, 0); // Map icon Created by Shadow\r\n", x, y, z);
  336.                 fwrite(map, string);
  337.                 fclose(map);
  338.             }
  339.             case 33:
  340.             {
  341.                 GetPlayerPos(playerid, x, y, z);
  342.                 SetPlayerMapIcon(playerid, 34, x, y, z, 34, 0);
  343.                 new File:map = fopen("shadowicon.txt", io_append);
  344.                 format(string, sizeof string, "SetPlayerMapIcon(playerid, 34, %.2f, %.2f, %.2f, 34, 0); // Map icon Created by Shadow\r\n", x, y, z);
  345.                 fwrite(map, string);
  346.                 fclose(map);
  347.             }
  348.             case 34:
  349.             {
  350.                 GetPlayerPos(playerid, x, y, z);
  351.                 SetPlayerMapIcon(playerid, 35, x, y, z, 35, 0);
  352.                 new File:map = fopen("shadowicon.txt", io_append);
  353.                 format(string, sizeof string, "SetPlayerMapIcon(playerid, 35, %.2f, %.2f, %.2f, 35, 0); // Map icon Created by Shadow\r\n", x, y, z);
  354.                 fwrite(map, string);
  355.                 fclose(map);
  356.             }
  357.             case 35:
  358.             {
  359.                 GetPlayerPos(playerid, x, y, z);
  360.                 SetPlayerMapIcon(playerid, 36, x, y, z, 36, 0);
  361.                 new File:map = fopen("shadowicon.txt", io_append);
  362.                 format(string, sizeof string, "SetPlayerMapIcon(playerid, 36, %.2f, %.2f, %.2f, 36, 0); // Map icon Created by Shadow\r\n", x, y, z);
  363.                 fwrite(map, string);
  364.                 fclose(map);
  365.             }
  366.             case 36:
  367.             {
  368.                 GetPlayerPos(playerid, x, y, z);
  369.                 SetPlayerMapIcon(playerid, 37, x, y, z, 37, 0);
  370.                 new File:map = fopen("shadowicon.txt", io_append);
  371.                 format(string, sizeof string, "SetPlayerMapIcon(playerid, 37, %.2f, %.2f, %.2f, 37, 0); // Map icon Created by Shadow\r\n", x, y, z);
  372.                 fwrite(map, string);
  373.                 fclose(map);
  374.             }
  375.         }
  376.     }
  377.     if(dialogid == 2 && response)
  378.     {
  379.         switch(listitem)
  380.         {
  381.             case 0:
  382.             {
  383.                 GetPlayerPos(playerid, x, y, z);
  384.                 SetPlayerMapIcon(playerid, 38, x, y, z, 38, 0);
  385.                 new File:map = fopen("shadowicon.txt", io_append);
  386.                 format(string, sizeof string, "SetPlayerMapIcon(playerid, 38, %.2f, %.2f, %.2f, 38, 0); // Map icon Created by Shadow\r\n", x, y, z);
  387.                 fwrite(map, string);
  388.                 fclose(map);
  389.             }
  390.             case 1:
  391.             {
  392.                 GetPlayerPos(playerid, x, y, z);
  393.                 SetPlayerMapIcon(playerid, 39, x, y, z, 39, 0);
  394.                 new File:map = fopen("shadowicon.txt", io_append);
  395.                 format(string, sizeof string, "SetPlayerMapIcon(playerid, 39, %.2f, %.2f, %.2f, 39, 0); // Map icon Created by Shadow\r\n", x, y, z);
  396.                 fwrite(map, string);
  397.                 fclose(map);
  398.             }
  399.             case 2:
  400.             {
  401.                 GetPlayerPos(playerid, x, y, z);
  402.                 SetPlayerMapIcon(playerid, 40, x, y, z, 40, 0);
  403.                 new File:map = fopen("shadowicon.txt", io_append);
  404.                 format(string, sizeof string, "SetPlayerMapIcon(playerid, 40, %.2f, %.2f, %.2f, 40, 0); // Map icon Created by Shadow\r\n", x, y, z);
  405.                 fwrite(map, string);
  406.                 fclose(map);
  407.             }
  408.             case 3:
  409.             {
  410.                 GetPlayerPos(playerid, x, y, z);
  411.                 SetPlayerMapIcon(playerid, 41, x, y, z, 41, 0);
  412.                 new File:map = fopen("shadowicon.txt", io_append);
  413.                 format(string, sizeof string, "SetPlayerMapIcon(playerid, 41, %.2f, %.2f, %.2f, 41, 0); // Map icon Created by Shadow\r\n", x, y, z);
  414.                 fwrite(map, string);
  415.                 fclose(map);
  416.             }
  417.             case 4:
  418.             {
  419.                 GetPlayerPos(playerid, x, y, z);
  420.                 SetPlayerMapIcon(playerid, 42, x, y, z, 42, 0);
  421.                 new File:map = fopen("shadowicon.txt", io_append);
  422.                 format(string, sizeof string, "SetPlayerMapIcon(playerid, 42, %.2f, %.2f, %.2f, 42, 0); // Map icon Created by Shadow\r\n", x, y, z);
  423.                 fwrite(map, string);
  424.                 fclose(map);
  425.             }
  426.             case 5:
  427.             {
  428.                 GetPlayerPos(playerid, x, y, z);
  429.                 SetPlayerMapIcon(playerid, 43, x, y, z, 43, 0);
  430.                 new File:map = fopen("shadowicon.txt", io_append);
  431.                 format(string, sizeof string, "SetPlayerMapIcon(playerid, 43, %.2f, %.2f, %.2f, 43, 0); // Map icon Created by Shadow\r\n", x, y, z);
  432.                 fwrite(map, string);
  433.                 fclose(map);
  434.             }
  435.             case 6:
  436.             {
  437.                 GetPlayerPos(playerid, x, y, z);
  438.                 SetPlayerMapIcon(playerid, 44, x, y, z, 44, 0);
  439.                 new File:map = fopen("shadowicon.txt", io_append);
  440.                 format(string, sizeof string, "SetPlayerMapIcon(playerid, 44, %.2f, %.2f, %.2f, 44, 0); // Map icon Created by Shadow\r\n", x, y, z);
  441.                 fwrite(map, string);
  442.                 fclose(map);
  443.             }
  444.             case 7:
  445.             {
  446.                 GetPlayerPos(playerid, x, y, z);
  447.                 SetPlayerMapIcon(playerid, 45, x, y, z, 45, 0);
  448.                 new File:map = fopen("shadowicon.txt", io_append);
  449.                 format(string, sizeof string, "SetPlayerMapIcon(playerid, 45, %.2f, %.2f, %.2f, 45, 0); // Map icon Created by Shadow\r\n", x, y, z);
  450.                 fwrite(map, string);
  451.                 fclose(map);
  452.             }
  453.             case 8:
  454.             {
  455.                 GetPlayerPos(playerid, x, y, z);
  456.                 SetPlayerMapIcon(playerid, 46, x, y, z, 46, 0);
  457.                 new File:map = fopen("shadowicon.txt", io_append);
  458.                 format(string, sizeof string, "SetPlayerMapIcon(playerid, 46, %.2f, %.2f, %.2f, 46, 0); // Map icon Created by Shadow\r\n", x, y, z);
  459.                 fwrite(map, string);
  460.                 fclose(map);
  461.             }
  462.             case 9:
  463.             {
  464.                 GetPlayerPos(playerid, x, y, z);
  465.                 SetPlayerMapIcon(playerid, 47, x, y, z, 47, 0);
  466.                 new File:map = fopen("shadowicon.txt", io_append);
  467.                 format(string, sizeof string, "SetPlayerMapIcon(playerid, 47, %.2f, %.2f, %.2f, 47, 0); // Map icon Created by Shadow\r\n", x, y, z);
  468.                 fwrite(map, string);
  469.                 fclose(map);
  470.             }
  471.             case 10:
  472.             {
  473.                 GetPlayerPos(playerid, x, y, z);
  474.                 SetPlayerMapIcon(playerid, 48, x, y, z, 48, 0);
  475.                 new File:map = fopen("shadowicon.txt", io_append);
  476.                 format(string, sizeof string, "SetPlayerMapIcon(playerid, 48, %.2f, %.2f, %.2f, 48, 0); // Map icon Created by Shadow\r\n", x, y, z);
  477.                 fwrite(map, string);
  478.                 fclose(map);
  479.             }
  480.             case 11:
  481.             {
  482.                 GetPlayerPos(playerid, x, y, z);
  483.                 SetPlayerMapIcon(playerid, 49, x, y, z, 49, 0);
  484.                 new File:map = fopen("shadowicon.txt", io_append);
  485.                 format(string, sizeof string, "SetPlayerMapIcon(playerid, 49, %.2f, %.2f, %.2f, 49, 0); // Map icon Created by Shadow\r\n", x, y, z);
  486.                 fwrite(map, string);
  487.                 fclose(map);
  488.             }
  489.             case 12:
  490.             {
  491.                 GetPlayerPos(playerid, x, y, z);
  492.                 SetPlayerMapIcon(playerid, 50, x, y, z, 50, 0);
  493.                 new File:map = fopen("shadowicon.txt", io_append);
  494.                 format(string, sizeof string, "SetPlayerMapIcon(playerid, 50, %.2f, %.2f, %.2f, 50, 0); // Map icon Created by Shadow\r\n", x, y, z);
  495.                 fwrite(map, string);
  496.                 fclose(map);
  497.             }
  498.             case 13:
  499.             {
  500.                 GetPlayerPos(playerid, x, y, z);
  501.                 SetPlayerMapIcon(playerid, 51, x, y, z, 51, 0);
  502.                 new File:map = fopen("shadowicon.txt", io_append);
  503.                 format(string, sizeof string, "SetPlayerMapIcon(playerid, 51, %.2f, %.2f, %.2f, 51, 0); // Map icon Created by Shadow\r\n", x, y, z);
  504.                 fwrite(map, string);
  505.                 fclose(map);
  506.             }
  507.             case 14:
  508.             {
  509.                 GetPlayerPos(playerid, x, y, z);
  510.                 SetPlayerMapIcon(playerid, 52, x, y, z, 52, 0);
  511.                 new File:map = fopen("shadowicon.txt", io_append);
  512.                 format(string, sizeof string, "SetPlayerMapIcon(playerid, 52, %.2f, %.2f, %.2f, 52, 0); // Map icon Created by Shadow\r\n", x, y, z);
  513.                 fwrite(map, string);
  514.                 fclose(map);
  515.             }
  516.             case 15:
  517.             {
  518.                 GetPlayerPos(playerid, x, y, z);
  519.                 SetPlayerMapIcon(playerid, 53, x, y, z, 53, 0);
  520.                 new File:map = fopen("shadowicon.txt", io_append);
  521.                 format(string, sizeof string, "SetPlayerMapIcon(playerid, 53, %.2f, %.2f, %.2f, 53, 0); // Map icon Created by Shadow\r\n", x, y, z);
  522.                 fwrite(map, string);
  523.                 fclose(map);
  524.             }
  525.             case 16:
  526.             {
  527.                 GetPlayerPos(playerid, x, y, z);
  528.                 SetPlayerMapIcon(playerid, 54, x, y, z, 54, 0);
  529.                 new File:map = fopen("shadowicon.txt", io_append);
  530.                 format(string, sizeof string, "SetPlayerMapIcon(playerid, 54, %.2f, %.2f, %.2f, 54, 0); // Map icon Created by Shadow\r\n", x, y, z);
  531.                 fwrite(map, string);
  532.                 fclose(map);
  533.             }
  534.             case 17:
  535.             {
  536.                 GetPlayerPos(playerid, x, y, z);
  537.                 SetPlayerMapIcon(playerid, 55, x, y, z, 55, 0);
  538.                 new File:map = fopen("shadowicon.txt", io_append);
  539.                 format(string, sizeof string, "SetPlayerMapIcon(playerid, 55, %.2f, %.2f, %.2f, 55, 0); // Map icon Created by Shadow\r\n", x, y, z);
  540.                 fwrite(map, string);
  541.                 fclose(map);
  542.             }
  543.             case 18:
  544.             {
  545.                 GetPlayerPos(playerid, x, y, z);
  546.                 SetPlayerMapIcon(playerid, 56, x, y, z, 56, 0);
  547.                 new File:map = fopen("shadowicon.txt", io_append);
  548.                 format(string, sizeof string, "SetPlayerMapIcon(playerid, 56, %.2f, %.2f, %.2f, 56, 0); // Map icon Created by Shadow\r\n", x, y, z);
  549.                 fwrite(map, string);
  550.                 fclose(map);
  551.             }
  552.             case 19:
  553.             {
  554.                 GetPlayerPos(playerid, x, y, z);
  555.                 SetPlayerMapIcon(playerid, 57, x, y, z, 57, 0);
  556.                 new File:map = fopen("shadowicon.txt", io_append);
  557.                 format(string, sizeof string, "SetPlayerMapIcon(playerid, 57, %.2f, %.2f, %.2f, 57, 0); // Map icon Created by Shadow\r\n", x, y, z);
  558.                 fwrite(map, string);
  559.                 fclose(map);
  560.             }
  561.             case 20:
  562.             {
  563.                 GetPlayerPos(playerid, x, y, z);
  564.                 SetPlayerMapIcon(playerid, 58, x, y, z, 58, 0);
  565.                 new File:map = fopen("shadowicon.txt", io_append);
  566.                 format(string, sizeof string, "SetPlayerMapIcon(playerid, 58, %.2f, %.2f, %.2f, 58, 0); // Map icon Created by Shadow\r\n", x, y, z);
  567.                 fwrite(map, string);
  568.                 fclose(map);
  569.             }
  570.             case 21:
  571.             {
  572.                 GetPlayerPos(playerid, x, y, z);
  573.                 SetPlayerMapIcon(playerid, 59, x, y, z, 59, 0);
  574.                 new File:map = fopen("shadowicon.txt", io_append);
  575.                 format(string, sizeof string, "SetPlayerMapIcon(playerid, 59, %.2f, %.2f, %.2f, 59, 0); // Map icon Created by Shadow\r\n", x, y, z);
  576.                 fwrite(map, string);
  577.                 fclose(map);
  578.             }
  579.             case 22:
  580.             {
  581.                 GetPlayerPos(playerid, x, y, z);
  582.                 SetPlayerMapIcon(playerid, 60, x, y, z, 60, 0);
  583.                 new File:map = fopen("shadowicon.txt", io_append);
  584.                 format(string, sizeof string, "SetPlayerMapIcon(playerid, 60, %.2f, %.2f, %.2f, 60, 0); // Map icon Created by Shadow\r\n", x, y, z);
  585.                 fwrite(map, string);
  586.                 fclose(map);
  587.             }
  588.             case 23:
  589.             {
  590.                 GetPlayerPos(playerid, x, y, z);
  591.                 SetPlayerMapIcon(playerid, 61, x, y, z, 61, 0);
  592.                 new File:map = fopen("shadowicon.txt", io_append);
  593.                 format(string, sizeof string, "SetPlayerMapIcon(playerid, 61, %.2f, %.2f, %.2f, 61, 0); // Map icon Created by Shadow\r\n", x, y, z);
  594.                 fwrite(map, string);
  595.                 fclose(map);
  596.             }
  597.             case 24:
  598.             {
  599.                 GetPlayerPos(playerid, x, y, z);
  600.                 SetPlayerMapIcon(playerid, 62, x, y, z, 62, 0);
  601.                 new File:map = fopen("shadowicon.txt", io_append);
  602.                 format(string, sizeof string, "SetPlayerMapIcon(playerid, 62, %.2f, %.2f, %.2f, 62, 0); // Map icon Created by Shadow\r\n", x, y, z);
  603.                 fwrite(map, string);
  604.                 fclose(map);
  605.             }
  606.             case 25:
  607.             {
  608.                 GetPlayerPos(playerid, x, y, z);
  609.                 SetPlayerMapIcon(playerid, 63, x, y, z, 63, 0);
  610.                 new File:map = fopen("shadowicon.txt", io_append);
  611.                 format(string, sizeof string, "SetPlayerMapIcon(playerid, 63, %.2f, %.2f, %.2f, 63, 0); // Map icon Created by Shadow\r\n", x, y, z);
  612.                 fwrite(map, string);
  613.                 fclose(map);
  614.             }
  615.         }
  616.     }
  617.     return 1;
  618. }
Advertisement
Add Comment
Please, Sign In to add comment