Guest User

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

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