Map icon
#1

Hello, I want to have an icon on the map where the jobs is.
But i have 22 jobs, so i don't wanna write all the 22 jobs coordinates down, so
how can i make it like

SetMarker(jobplace);

This is my 22 jobs

pawn Код:
if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,359.5408,206.7693,1008.3828))
                {
              SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are about to become a Detective, and get a 5 hour Contract.");
                  SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have to forfill this Contract first, if you want to Quit the job later.");
                  SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Detective, type /accept job.");
                  GettingJob[playerid] = 1;
                }
                if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,347.7374,193.7241,1014.1875))
                {
                  SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are about to become a Lawyer, and get a 5 hour Contract.");
                  SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have to forfill this Contract first, if you want to Quit the job later.");
                  SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Lawyer, type /accept job.");
                  GettingJob[playerid] = 2;
                }
            else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,369.0977,-114.5807,1001.4995))
            {
          SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are about to become a Pizza Boy, and get a 5 hour Contract.");
                SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have to forfill this Contract first, if you want to Quit the job later.");
                SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Pizza Boy, type /accept job.");
                GettingJob[playerid] = 21;
            }
                else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,1215.1304,-11.8431,1000.9219))
                {
              SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are about to become a Whore, and get a 5 hour Contract.");
                  SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have to forfill this Contract first, if you want to Quit the job later.");
                  SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Whore, type /accept job.");
                  GettingJob[playerid] = 3;
                }
                else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,1865.0968,-1392.6681,13.4909))
                {
              SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are about to become a Stunter, and get a 5 hour Contract.");
                  SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have to forfill this Contract first, if you want to Quit the job later.");
                  SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Stunter, type /accept job.");
                  GettingJob[playerid] = 17;
                }
                else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,2166.3772,-1675.3829,15.0859))
                {
              SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are about to become a Drugs Dealer, and get a 5 hour Contract.");
          SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have to forfill this Contract first, if you want to Quit the job later.");
                  SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Drugs Dealer, type /accept job.");
                  GettingJob[playerid] = 4;
                }
                else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,1109.3318,-1796.3042,16.5938))
                {
                  SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are about to become a Car Jacker, and get a 5 hour Contract.");
                  SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have to forfill this Contract first, if you want to Quit the job later.");
                  SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Car Jacker, type /accept job.");
                  GettingJob[playerid] = 5;
                }
                else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,1035.4103,-1025.9380,32.1016))
                {
          SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are about to become a Car Mechanic, and get a 5 hour Contract.");
                  SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have to forfill this Contract first, if you want to Quit the job later.");
                  SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Car Mechanic, type /accept job.");
                  GettingJob[playerid] = 7;
                }
                else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,2226.1716,-1718.1792,13.5165))
                {
              SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are about to become a Bodyguard, and get a 5 hour Contract.");
                  SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have to forfill this Contract first, if you want to Quit the job later.");
                  SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Bodyguard, type /accept job.");
                  GettingJob[playerid] = 8;
                }
                else if (GetPlayerState(playerid) == 1 && PlayerToPoint(4.0, playerid,1566.1425,23.2887,24.1641))
                {
              SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are about to become a Arms Dealer, and get a 5 hour Contract.");
              SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have to forfill this Contract first, if you want to Quit the job later.");
                  SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Arms Dealer, type /accept job.");
                  GettingJob[playerid] = 9;
                }
                else if (GetPlayerState(playerid) == 1 && PlayerToPoint(4.0, playerid,2037.0332,-1404.7368,17.2517))
                {
              SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are about to become a Paramedic, and get a 5 hour Contract.");
                  SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have to forfill this Contract first, if you want to Quit the job later.");
                  SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Bodyguard, type /accept job.");
                  GettingJob[playerid] = 11;
                }
                else if (GetPlayerState(playerid) == 1 && PlayerToPoint(4.0, playerid,1172.9993,-1361.3694,13.9601))
                {
              SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are about to become a Paramedic, and get a 5 hour Contract.");
                  SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have to forfill this Contract first, if you want to Quit the job later.");
                  SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Bodyguard, type /accept job.");
                  GettingJob[playerid] = 11;
                }
                else if (GetPlayerState(playerid) == 1 && PlayerToPoint(4.0, playerid,860.9663,-985.2528,34.6266))
                {
              SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are about to become a Hobo, and a Hobo is for life.");
              SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Taking this, means you will stink and your friends will hate you.");
                  SendClientMessage(playerid, COLOR_LIGHTBLUE, "* However, you can bother people for CHANGE, type /accept job.");
                  GettingJob[playerid] = 19;
                }
                else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,531.7930,-1292.4044,17.2422))
                {
                  SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are about to become a Car Salesmen, and get a 5 hour Contract.");
                  SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have to forfill this Contract first, if you want to Quit the job later.");
                  SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Car Salesmen, type /accept job.");
                  GettingJob[playerid] = 10;
                }
                else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,766.0804,14.5133,1000.7004))
                {
              SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are about to become a Boxer, and get a 5 hour Contract.");
                  SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have to forfill this Contract first, if you want to Quit the job later.");
                  SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Boxer, type /accept job.");
                  GettingJob[playerid] = 12;
                }
                else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,1743.0942,-1863.2853,13.5753))
                {
              SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are about to become a Bus Driver, and get a 5 hour Contract.");
                  SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have to forfill this Contract first, if you want to Quit the job later.");
                  SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Bus Driver, type /accept job.");
                  GettingJob[playerid] = 14;
                }
                else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,1580.5704,-1339.6008,16.4844))
                {
              SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are about to become a Paper Boy, and get a 5 hour Contract.");
                  SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have to forfill this Contract first, if you want to Quit the job later.");
                  SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Paper Boy, type /accept job.");
                  GettingJob[playerid] = 15;
                }
                else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,-77.7288,-1136.3896,1.0781))
                {
              SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are about to become a Trucker, and get a 5 hour Contract.");
                  SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have to forfill this Contract first, if you want to Quit the job later.");
                  SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Trucker, type /accept job.");
                  GettingJob[playerid] = 16;
                }
                else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,1733.3934,-1929.8572,13.5714))
                {
                  SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are about to be employed by the Yellow Cab and Transportation Co. as a driver.");
                  SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure you wanna become a Cab Driver/Chauffeur, type /accept job.");
                  GettingJob[playerid] = 20;
                }
                else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,1733.4137,-1920.9989,13.5671))
                {
                    SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are about to become a bus driver for the Canny Bus Group.");
                  SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure you wanna become a bus driver, type /accept job.");
                  GettingJob[playerid] = 22;
                }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)