Advertisement
Guest User

public w/ cases

a guest
Jan 31st, 2013
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 23.77 KB | None | 0 0
  1. public OnPlayerSelectedMenuRow(playerid, row)
  2. {
  3.     new Menu:Current = GetPlayerMenu(playerid);
  4.     new Float:PlayerHealth;
  5.     new Health = GetPlayerHealth(playerid, PlayerHealth);
  6.     if(Current == BurgerShot)
  7.     {
  8.         switch(row)
  9.         {
  10.             case 0:
  11.             {
  12.                 SafeGivePlayerMoney(playerid, -3);
  13.                 if(Health <= 74.9)
  14.                 {
  15.                     SetPlayerHealth(playerid, PlayerHealth+25);
  16.                 }
  17.                 else
  18.                 {
  19.                     SetPlayerHealth(playerid, 100.0);
  20.                 }
  21.                 SendClientMessage(playerid, 0xFFC801C8, "Burger Shot: Thank you for buying the Baby Burger, have a nice meal and good afternoon!");
  22.                 PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  23.                 TogglePlayerControllable(playerid, 1);
  24.                 SetTimerEx("CanDriveThruAgain", 7000, 0, "i", playerid);
  25.                 return 1;
  26.             }
  27.             case 1:
  28.             {
  29.                 SafeGivePlayerMoney(playerid, -6);
  30.                 if(Health <= 49.9)
  31.                 {
  32.                     SetPlayerHealth(playerid, PlayerHealth+50);
  33.                 }
  34.                 else
  35.                 {
  36.                     SetPlayerHealth(playerid, 100.0);
  37.                 }
  38.                 SendClientMessage(playerid, 0xFFC801C8, "Burger Shot: Thank you for buying the Double Cheese, have a Cheesy meal and good afternoon!");
  39.                 PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  40.                 TogglePlayerControllable(playerid, 1);
  41.                 SetTimerEx("CanDriveThruAgain", 7000, 0, "i", playerid);
  42.                 return 1;
  43.             }
  44.             case 2:
  45.             {
  46.                 SafeGivePlayerMoney(playerid, -9);
  47.                 SetPlayerHealth(playerid, 100);
  48.                 SendClientMessage(playerid, 0xFFC801C8, "Burger Shot: Thank you for buying the Tripple Whopper, have a nice feast and good afternoon!");
  49.                 PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  50.                 TogglePlayerControllable(playerid, 1);
  51.                 SetTimerEx("CanDriveThruAgain", 7000, 0, "i", playerid);
  52.                 return 1;
  53.             }
  54.             case 3:
  55.             {
  56.                 if(PlayerTied[playerid] != 1 || PlayerCuffed[playerid] != 1)
  57.                 {
  58.                     TogglePlayerControllable(playerid, 1);
  59.  
  60.                 }
  61.                 SetTimerEx("CanDriveThruAgain", 7000, 0, "i", playerid);
  62.                 return 1;
  63.             }
  64.         }
  65.     }
  66.     if(Current == CluckinBell)
  67.     {
  68.         switch(row)
  69.         {
  70.             case 0:
  71.             {
  72.                 SafeGivePlayerMoney(playerid, -3);
  73.                 if(Health <= 74.9)
  74.                 {
  75.                     SetPlayerHealth(playerid, PlayerHealth+25);
  76.                 }
  77.                 else
  78.                 {
  79.                     SetPlayerHealth(playerid, 100.0);
  80.                 }
  81.                 SendClientMessage(playerid, 0xFFC801C8, "Cluckin' Bell: Thank you for your interest in our food, good afternoon!");
  82.                 PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  83.                 TogglePlayerControllable(playerid, 1);
  84.                 SetTimerEx("CanDriveThruAgain", 7000, 0, "i", playerid);
  85.                 return 1;
  86.             }
  87.             case 1:
  88.             {
  89.                 SafeGivePlayerMoney(playerid, -6);
  90.                 if(Health <= 49.9)
  91.                 {
  92.                     SetPlayerHealth(playerid, PlayerHealth+50);
  93.                 }
  94.                 else
  95.                 {
  96.                     SetPlayerHealth(playerid, 100.0);
  97.                 }
  98.                 SendClientMessage(playerid, 0xFFC801C8, "Cluckin' Bell: we thank you and hope you enjoy your chicken wings, have a good day!");
  99.                 PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  100.                 TogglePlayerControllable(playerid, 1);
  101.                 SetTimerEx("CanDriveThruAgain", 7000, 0, "i", playerid);
  102.                 return 1;
  103.             }
  104.             case 2:
  105.             {
  106.                 SafeGivePlayerMoney(playerid, -9);
  107.                 SetPlayerHealth(playerid, 100);
  108.                 SendClientMessage(playerid, 0xFFC801C8, "Cluckin' Bell: We hope you eat it all, have a nice day!");
  109.                 PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
  110.                 TogglePlayerControllable(playerid, 1);
  111.                 SetTimerEx("CanDriveThruAgain", 7000, 0, "i", playerid);
  112.                 return 1;
  113.             }
  114.             case 3:
  115.             {
  116.                 if(PlayerTied[playerid] != 1 || PlayerCuffed[playerid] != 1)
  117.                 {
  118.                     TogglePlayerControllable(playerid, 1);
  119.  
  120.                 }
  121.                 SetTimerEx("CanDriveThruAgain", 7000, 0, "i", playerid);
  122.                 return 1;
  123.             }
  124.         }
  125.     }
  126.     if(Current == burgermenu || Current == chickenmenu || Current == pizzamenu || Current == donutshop)
  127.     {
  128.         TogglePlayerControllable(playerid, 1);
  129.         if (row != 10) // 10 = Leave
  130.         {
  131.             if (GetPlayerMoney(playerid) <= 0)
  132.             {
  133.                 GameTextForPlayer(playerid, "~r~Not Enough Cash", 5000, 1);
  134.                 return 1;
  135.             }
  136.             new actstring[128];
  137.             new sendername[64];
  138.             new Float:health;
  139.             GetPlayerName(playerid, sendername, sizeof(sendername));
  140.             GetPlayerHealth(playerid, health);
  141.             if (row == 7 || row == 8) // Drink
  142.             {
  143.                 format(actstring, sizeof(actstring), "* %s drinks from their cup.", sendername);
  144.                 SafeGivePlayerMoney(playerid, -1);
  145.                 SetPlayerHealth(playerid, health + 10);
  146.                 ApplyAnimation(playerid,"VENDING","VEND_Drink_P",4.1,0,1,1,0,1);
  147.             }
  148.             else // Meal
  149.             {
  150.                 switch (row)
  151.                 {
  152.                     case 1:
  153.                     {
  154.                         if(Current == donutshop) format(actstring, sizeof(actstring), "* %s eats a little donut and plays with the little toy that came with it.", sendername);
  155.                         else format(actstring, sizeof(actstring), "* %s eats their kids meal and plays with the little toy that came with it.", sendername);
  156.                         SafeGivePlayerMoney(playerid, -2);
  157.                         SetPlayerHealth(playerid, health + 20);
  158.                     }
  159.                     case 2:
  160.                     {
  161.                         if (Current == chickenmenu) format(actstring, sizeof(actstring), "* %s eats the nuggets from their cup.", sendername);
  162.                         else if (Current == pizzamenu) format(actstring, sizeof(actstring), "* %s eats their personal pan pizza.", sendername);
  163.                         else if (Current == donutshop) format(actstring, sizeof(actstring), "* %s eats their regular size donut.", sendername);
  164.                         else format(actstring, sizeof(actstring), "* %s eats their cheeseburger.", sendername);
  165.                         SafeGivePlayerMoney(playerid, -4);
  166.                         SetPlayerHealth(playerid, health + 50);
  167.                     }
  168.                     case 3:
  169.                     {
  170.                         if (Current == pizzamenu) format(actstring, sizeof(actstring), "* %s eats their greasy sheet pizza.", sendername);
  171.                         else if (Current == donutshop) format(actstring, sizeof(actstring), "* %s eats their extra large chief donut.", sendername);
  172.                         else format(actstring, sizeof(actstring), "* %s eats their greasy sandwich.", sendername);
  173.                         SafeGivePlayerMoney(playerid, -5);
  174.                         SetPlayerHealth(playerid, health + 80);
  175.                     }
  176.                     case 4:
  177.                     {
  178.                         if (Current == donutshop) format(actstring, sizeof(actstring), "* %s eats their extra large donut.", sendername);
  179.                         else format(actstring, sizeof(actstring), "* %s eats the freshly tossed salad from the bowl (with a fork of course).", sendername);
  180.                         SafeGivePlayerMoney(playerid, -3);
  181.                         SetPlayerHealth(playerid, health + 35);
  182.                     }
  183.                 }
  184.                 if (Current == burgermenu) ApplyAnimation(playerid,"FOOD","EAT_Burger",4.1,0,1,1,0,1);
  185.                 else if (Current == chickenmenu) ApplyAnimation(playerid,"FOOD","EAT_Chicken",4.1,0,1,1,0,1);
  186.                 else if (Current == pizzamenu) ApplyAnimation(playerid,"FOOD","EAT_Pizza",4.1,0,1,1,0,1);
  187.                 else if (Current == donutshop) ApplyAnimation(playerid,"FOOD","EAT_Pizza",4.1,0,1,1,0,1);
  188.                 if (GetPlayerMoney(playerid) > 100) SetPlayerHealth(playerid, 100);
  189.             }
  190.             ProxDetector(30.0, playerid, actstring, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
  191.         }
  192.     }
  193.     if(Current == Licenses)
  194.     {
  195.         switch(row)
  196.         {
  197.             case 0:
  198.             {
  199.                 SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Welcome to the licenses center. If you wish to buy driving licenses Type: /buydriving *");
  200.                 SendClientMessage(playerid, COLOR_LIGHTBLUE, "* We hope you'll be carefull in Los Santos traffic roads! Please drive carefully! *");
  201.                 SendClientMessage(playerid, COLOR_LIGHTRED, "* [Driving Licenses Costs 3,500$] *");
  202.                 TogglePlayerControllable(playerid,1);
  203.             }
  204.             case 1:
  205.             {
  206.                 SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Welcome to the licenses center. If you wish to buy flying licenses Type: /buyflying *");
  207.                 SendClientMessage(playerid, COLOR_LIGHTBLUE, "* We hope you'll be carefull in Los Santos air traffic! Please fly carefully! *");
  208.                 SendClientMessage(playerid, COLOR_LIGHTRED, "* [Flying Licenses Costs 10,500$] *");
  209.                 TogglePlayerControllable(playerid,1);
  210.             }
  211.             case 2:
  212.             {
  213.                 SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Welcome to the licenses center. If you wish to buy sailing licenses Type: /buysailing *");
  214.                 SendClientMessage(playerid, COLOR_LIGHTBLUE, "* We hope you'll be carefull in Los Santos sea traffic! Please sail carefully! *");
  215.                 SendClientMessage(playerid, COLOR_LIGHTRED, "* [Driving Licenses Costs 5,500$] *");
  216.                 TogglePlayerControllable(playerid,1);
  217.             }
  218.             case 3:
  219.             {
  220.                 HideMenuForPlayer(Licenses, playerid);
  221.                 TogglePlayerControllable(playerid,1);
  222.             }
  223.         }
  224.     }
  225.     if(Current == LegalJobs)
  226.     {
  227.         switch(row)
  228.         {
  229.             case 0:
  230.             {
  231.                 SendClientMessage(playerid, COLOR_WHITE, "* You are about to become a Detective, and get a 5 hour Contract.");
  232.                 SendClientMessage(playerid, COLOR_WHITE, "* You have to forfill this Contract first, if you want to Quit the job later.");
  233.                 SendClientMessage(playerid, COLOR_WHITE, "* If you are sure to become a Detective, type /accept job.");
  234.                 GettingJob[playerid] = 1;
  235.                 TogglePlayerControllable(playerid,1);
  236.             }
  237.             case 1:
  238.             {
  239.                 SendClientMessage(playerid, COLOR_WHITE, "* You are about to become a Lawyer, and get a 5 hour Contract.");
  240.                 SendClientMessage(playerid, COLOR_WHITE, "* You have to forfill this Contract first, if you want to Quit the job later.");
  241.                 SendClientMessage(playerid, COLOR_WHITE, "* If you are sure to become a Lawyer, type /accept job.");
  242.                 GettingJob[playerid] = 2;
  243.                 TogglePlayerControllable(playerid,1);
  244.             }
  245.             case 2:
  246.             {
  247.                 SendClientMessage(playerid, COLOR_WHITE, "* You are about to become a Waiter, and get a 5 hour Contract.");
  248.                 SendClientMessage(playerid, COLOR_WHITE, "* You have to forfill this Contract first, if you want to Quit the job later.");
  249.                 SendClientMessage(playerid, COLOR_WHITE, "* If you are sure to become a Waiter, type /accept job.");
  250.                 GettingJob[playerid] = 6;
  251.                 TogglePlayerControllable(playerid,1);
  252.             }
  253.             case 3:
  254.             {
  255.                 SendClientMessage(playerid, COLOR_WHITE, "* You are about to become a Boxer, and get a 5 hour Contract.");
  256.                 SendClientMessage(playerid, COLOR_WHITE, "* You have to forfill this Contract first, if you want to Quit the job later.");
  257.                 SendClientMessage(playerid, COLOR_WHITE, "* If you are sure to become a Boxer, type /accept job.");
  258.                 GettingJob[playerid] = 12;
  259.                 TogglePlayerControllable(playerid,1);
  260.             }
  261.             case 4:
  262.             {
  263.                 SendClientMessage(playerid, COLOR_WHITE, "* You are about to become a Trucker, and get a 5 hour Contract.");
  264.                 SendClientMessage(playerid, COLOR_WHITE, "* You have to forfill this Contract first, if you want to Quit the job later.");
  265.                 SendClientMessage(playerid, COLOR_WHITE, "* If you are sure to become a Trucker, type /accept job.");
  266.                 GettingJob[playerid] = 16;
  267.                 TogglePlayerControllable(playerid,1);
  268.             }
  269.             case 5:
  270.             {
  271.                 SendClientMessage(playerid, COLOR_WHITE, "* You are about to become a Farmer, and get a 5 hour Contract.");
  272.                 SendClientMessage(playerid, COLOR_WHITE, "* You have to forfill this Contract first, if you want to Quit the job later.");
  273.                 SendClientMessage(playerid, COLOR_WHITE, "* If you are sure to become a Farmer, type /accept job.");
  274.                 GettingJob[playerid] = 18;
  275.                 TogglePlayerControllable(playerid,1);
  276.             }
  277.             case 6:
  278.             {
  279.                 SendClientMessage(playerid, COLOR_WHITE, "* You are about to become a Stuntman, and get a 5 hour Contract.");
  280.                 SendClientMessage(playerid, COLOR_WHITE, "* You have to forfill this Contract first, if you want to Quit the job later.");
  281.                 SendClientMessage(playerid, COLOR_WHITE, "* If you are sure to become a Stuntman, type /accept job.");
  282.                 GettingJob[playerid] = 11;
  283.                 TogglePlayerControllable(playerid,1);
  284.             }
  285.             case 7:
  286.             {
  287.                 HideMenuForPlayer(LegalJobs, playerid);
  288.                 ShowMenuForPlayer(LegalJobs2, playerid);
  289.             }
  290.             case 8:
  291.             {
  292.                 HideMenuForPlayer(LegalJobs, playerid);
  293.                 TogglePlayerControllable(playerid,1);
  294.             }
  295.         }
  296.     }
  297.     if(Current == LegalJobs2)
  298.     {
  299.         switch(row)
  300.         {
  301.             case 0:
  302.             {
  303.                 SendClientMessage(playerid, COLOR_WHITE, "* You are about to become a Taxi Driver, and get a 5 hour Contract.");
  304.                 SendClientMessage(playerid, COLOR_WHITE, "* You have to forfill this Contract first, if you want to Quit the job later.");
  305.                 SendClientMessage(playerid, COLOR_WHITE, "* If you are sure to become a Taxi Driver, type /accept job.");
  306.                 GettingJob[playerid] = 13;
  307.                 TogglePlayerControllable(playerid,1);
  308.             }
  309.             case 1:
  310.             {
  311.                 SendClientMessage(playerid, COLOR_WHITE, "* You are about to become a Bus Driver, and get a 5 hour Contract.");
  312.                 SendClientMessage(playerid, COLOR_WHITE, "* You have to forfill this Contract first, if you want to Quit the job later.");
  313.                 SendClientMessage(playerid, COLOR_WHITE, "* If you are sure to become a Bus Driver, type /accept job.");
  314.                 GettingJob[playerid] = 14;
  315.                 TogglePlayerControllable(playerid,1);
  316.             }
  317.             case 2:
  318.             {
  319.                 SendClientMessage(playerid, COLOR_WHITE, "* You are about to become a Paper Boy, and get a 5 hour Contract.");
  320.                 SendClientMessage(playerid, COLOR_WHITE, "* You have to forfill this Contract first, if you want to Quit the job later.");
  321.                 SendClientMessage(playerid, COLOR_WHITE, "* If you are sure to become a Paper Boy, type /accept job.");
  322.                 GettingJob[playerid] = 15;
  323.                 TogglePlayerControllable(playerid,1);
  324.             }
  325.             case 3:
  326.             {
  327.                 SendClientMessage(playerid, COLOR_WHITE, "* You are about to become a Pizza Boy, and get a 5 hour Contract.");
  328.                 SendClientMessage(playerid, COLOR_WHITE, "* You have to forfill this Contract first, if you want to Quit the job later.");
  329.                 SendClientMessage(playerid, COLOR_WHITE, "* If you are sure to become a Pizza Boy, type /accept job.");
  330.                 GettingJob[playerid] = 17;
  331.                 TogglePlayerControllable(playerid,1);
  332.             }
  333.             case 4:
  334.             {
  335.                 SendClientMessage(playerid, COLOR_WHITE, "* You are about to become a Street Sweeper, and get a 5 hour Contract.");
  336.                 SendClientMessage(playerid, COLOR_WHITE, "* You have to forfill this Contract first, if you want to Quit the job later.");
  337.                 SendClientMessage(playerid, COLOR_WHITE, "* If you are sure to become a Street Sweeper, type /accept job.");
  338.                 GettingJob[playerid] = 21;
  339.                 TogglePlayerControllable(playerid,1);
  340.             }
  341.             case 5:
  342.             {
  343.                 SendClientMessage(playerid, COLOR_WHITE, "* You are about to become a Car Mechanic, and get a 5 hour Contract.");
  344.                 SendClientMessage(playerid, COLOR_WHITE, "* You have to forfill this Contract first, if you want to Quit the job later.");
  345.                 SendClientMessage(playerid, COLOR_WHITE, "* If you are sure to become a Car Mechanic, type /accept job.");
  346.                 GettingJob[playerid] = 7;
  347.                 TogglePlayerControllable(playerid,1);
  348.             }
  349.             case 6:
  350.             {
  351.                 SendClientMessage(playerid, COLOR_WHITE, "* You are about to become a Body Guard, and get a 5 hour Contract.");
  352.                 SendClientMessage(playerid, COLOR_WHITE, "* You have to forfill this Contract first, if you want to Quit the job later.");
  353.                 SendClientMessage(playerid, COLOR_WHITE, "* If you are sure to become a Body Guard, type /accept job.");
  354.                 GettingJob[playerid] = 8;
  355.                 TogglePlayerControllable(playerid,1);
  356.             }
  357.             case 7:
  358.             {
  359.                 HideMenuForPlayer(LegalJobs2, playerid);
  360.                 ShowMenuForPlayer(LegalJobs, playerid);
  361.             }
  362.             case 8:
  363.             {
  364.                 HideMenuForPlayer(LegalJobs2, playerid);
  365.                 TogglePlayerControllable(playerid,1);
  366.             }
  367.         }
  368.     }
  369.     if(Current == Guide)
  370.     {
  371.         switch(row)
  372.         {
  373.             case 0:
  374.             {
  375.                 SendClientMessage(playerid, COLOR_GREEN, "______________Game rules_______________");
  376.                 SendClientMessage(playerid, COLOR_GRAD5, "* Always RP");
  377.                 SendClientMessage(playerid, COLOR_GRAD5, "* Do not DM (this is RP server)");
  378.                 SendClientMessage(playerid, COLOR_GRAD5, "* Only English (in IC) allowed in this server");
  379.                 SendClientMessage(playerid, COLOR_GRAD5, "* Don't use cheats or abuse bugs (use /report)");
  380.                 SendClientMessage(playerid, COLOR_GRAD5, "* Drive-by is not allowed (except for cops and passengers)");
  381.                 SendClientMessage(playerid, COLOR_GRAD5, "* Don't use smiles In Character");
  382.                 SendClientMessage(playerid, COLOR_GRAD5, "* Don't use bunnyhop, it's just not allowed");
  383.                 SendClientMessage(playerid, COLOR_GREEN, "_______________________________________");
  384.                 TogglePlayerControllable(playerid,1);
  385.             }
  386.             case 1:
  387.             {
  388.                 HideMenuForPlayer(Guide, playerid);
  389.                 ShowMenuForPlayer(JobLocations, playerid);
  390.             }
  391.             case 2:
  392.             {
  393.                 SendClientMessage(playerid, COLOR_GREEN, "License center is marked (red) on a map.");
  394.                 SendClientMessage(playerid, COLOR_WHITE, "TIP: type /licensers for a list of licensers online");
  395.                 SetPlayerCheckpoint(playerid,2048.352,-1900.153,13.5538,5.0);
  396.                 TogglePlayerControllable(playerid,1);
  397.             }
  398.             case 3:
  399.             {
  400.                 SendClientMessage(playerid, COLOR_GREEN, "Car rental is marked (red) on a map.");
  401.                 SetPlayerCheckpoint(playerid,1696.5543,-1053.4685,23.9063,5.0);
  402.                 TogglePlayerControllable(playerid,1);
  403.             }
  404.             case 4:
  405.             {
  406.                 SendClientMessage(playerid, COLOR_GREEN, "Binco clothes shop is marked (red) on a map.");
  407.                 SendClientMessage(playerid, COLOR_WHITE, "TIP: Type /clothes when you're inside clothes shop.");
  408.                 SetPlayerCheckpoint(playerid,2244.3423,-1665.5542,15.4766,5.0);
  409.                 TogglePlayerControllable(playerid,1);
  410.             }
  411.             case 5:
  412.             {
  413.                 HideMenuForPlayer(Guide, playerid);
  414.                 TogglePlayerControllable(playerid,1);
  415.             }
  416.         }
  417.     }
  418.     if(Current == JobLocations)
  419.     {
  420.         switch(row)
  421.         {
  422.             case 0:
  423.             {
  424.                 SendClientMessage(playerid, COLOR_LIGHTRED, "Detective job is marked (red) on a map.");
  425.                 SetPlayerCheckpoint(playerid,1481.0206,-1771.1138,18.7958,5.0);
  426.                 TogglePlayerControllable(playerid,1);
  427.             }
  428.             case 1:
  429.             {
  430.                 SendClientMessage(playerid, COLOR_LIGHTRED, "Lawyer job is marked (red) on a map.");
  431.                 SetPlayerCheckpoint(playerid,1481.0206,-1771.1138,18.7958,5.0);
  432.                 TogglePlayerControllable(playerid,1);
  433.             }
  434.             case 2:
  435.             {
  436.                 SendClientMessage(playerid, COLOR_LIGHTRED, "Waiter job is marked (red) on a map.");
  437.                 SetPlayerCheckpoint(playerid,1498.2079,-1581.2236,13.5498,5.0);
  438.                 TogglePlayerControllable(playerid,1);
  439.             }
  440.             case 3:
  441.             {
  442.                 SendClientMessage(playerid, COLOR_LIGHTRED, "Boxer job is marked (red) on a map.");
  443.                 SetPlayerCheckpoint(playerid,2229.9011,-1721.2582,13.5613,5.0);
  444.                 TogglePlayerControllable(playerid,1);
  445.             }
  446.             case 4:
  447.             {
  448.                 SendClientMessage(playerid, COLOR_LIGHTRED, "Trucker job is marked (red) on a map.");
  449.                 SetPlayerCheckpoint(playerid,2439.7710,-2120.9285,13.5469,5.0);
  450.                 TogglePlayerControllable(playerid,1);
  451.             }
  452.             case 5:
  453.             {
  454.                 SendClientMessage(playerid, COLOR_LIGHTRED, "Farmer job is marked (red) on a map.");
  455.                 SetPlayerCheckpoint(playerid,-382.6660,-1426.5121,26.2410,5.0);
  456.                 TogglePlayerControllable(playerid,1);
  457.             }
  458.             case 6:
  459.             {
  460.                 SendClientMessage(playerid, COLOR_LIGHTRED, "Taxi Driver job is marked (red) on a map.");
  461.                 SetPlayerCheckpoint(playerid,1791.5248,-1900.1350,13.3978,5.0);
  462.                 TogglePlayerControllable(playerid,1);
  463.             }
  464.             case 7:
  465.             {
  466.                 SendClientMessage(playerid, COLOR_LIGHTRED, "Bus Driver job is marked (red) on a map.");
  467.                 SetPlayerCheckpoint(playerid,1154.2208,-1770.8203,16.5992,5.0);
  468.                 TogglePlayerControllable(playerid,1);
  469.             }
  470.             case 8:
  471.             {
  472.                 HideMenuForPlayer(JobLocations, playerid);
  473.                 ShowMenuForPlayer(JobLocations2, playerid);
  474.             }
  475.             case 9:
  476.             {
  477.                 HideMenuForPlayer(JobLocations, playerid);
  478.                 ShowMenuForPlayer(Guide, playerid);
  479.             }
  480.         }
  481.     }
  482.     if(Current == JobLocations2)
  483.     {
  484.         switch(row)
  485.         {
  486.             case 0:
  487.             {
  488.                 SendClientMessage(playerid, COLOR_LIGHTRED, "Paper Boy job is marked (red) on a map.");
  489.                 SetPlayerCheckpoint(playerid,1788.9150,-1292.7264,13.5861,5.0);
  490.                 TogglePlayerControllable(playerid,1);
  491.             }
  492.             case 1:
  493.             {
  494.                 SendClientMessage(playerid, COLOR_LIGHTRED, "Pizza Boy job is marked (red) on a map.");
  495.                 SetPlayerCheckpoint(playerid,2101.7620,-1812.5922,13.5547,5.0);
  496.                 TogglePlayerControllable(playerid,1);
  497.             }
  498.             case 2:
  499.             {
  500.                 SendClientMessage(playerid, COLOR_LIGHTRED, "Street Sweeper job is marked (red) on a map.");
  501.                 SetPlayerCheckpoint(playerid,1611.5129,-1893.6997,13.5469,5.0);
  502.                 TogglePlayerControllable(playerid,1);
  503.             }
  504.             case 3:
  505.             {
  506.                 SendClientMessage(playerid, COLOR_LIGHTRED, "Car Mechanic job is marked (red) on a map.");
  507.                 SetPlayerCheckpoint(playerid,2077.52,-2013.56,13.54,5.0);
  508.                 TogglePlayerControllable(playerid,1);
  509.             }
  510.             case 4:
  511.             {
  512.                 SendClientMessage(playerid, COLOR_LIGHTRED, "Body Guard job is marked (red) on a map.");
  513.                 SetPlayerCheckpoint(playerid,1481.0206,-1771.1138,18.7958,5.0);
  514.                 TogglePlayerControllable(playerid,1);
  515.             }
  516.             case 5:
  517.             {
  518.                 SendClientMessage(playerid, COLOR_LIGHTRED, "Stuntman job is marked (red) on a map.");
  519.                 SetPlayerCheckpoint(playerid,2695.4043,-1704.3582,11.8438,5.0);
  520.                 TogglePlayerControllable(playerid,1);
  521.             }
  522.             case 6:
  523.             {
  524.                 SendClientMessage(playerid, COLOR_LIGHTRED, "Whore job is marked (red) on a map.");
  525.                 SetPlayerCheckpoint(playerid,2421.4998,-1219.2438,25.5617,5.0);
  526.                 TogglePlayerControllable(playerid,1);
  527.             }
  528.             case 7:
  529.             {
  530.                 HideMenuForPlayer(JobLocations2, playerid);
  531.                 ShowMenuForPlayer(JobLocations3, playerid);
  532.             }
  533.             case 8:
  534.             {
  535.                 HideMenuForPlayer(JobLocations2, playerid);
  536.                 ShowMenuForPlayer(JobLocations, playerid);
  537.             }
  538.             case 9:
  539.             {
  540.                 HideMenuForPlayer(JobLocations2, playerid);
  541.                 ShowMenuForPlayer(Guide, playerid);
  542.             }
  543.         }
  544.     }
  545.     if(Current == JobLocations3)
  546.     {
  547.         switch(row)
  548.         {
  549.             case 0:
  550.             {
  551.                 SendClientMessage(playerid, COLOR_LIGHTRED, "Drugs Dealer job is marked (red) on a map.");
  552.                 SetPlayerCheckpoint(playerid,2072.5486,-1582.8029,13.4741,5.0);
  553.                 TogglePlayerControllable(playerid,1);
  554.             }
  555.             case 1:
  556.             {
  557.                 SendClientMessage(playerid, COLOR_LIGHTRED, "Drugs Farmer job is marked (red) on a map.");
  558.                 SetPlayerCheckpoint(playerid,-69.0584,-20.6116,3.1172,5.0);
  559.                 TogglePlayerControllable(playerid,1);
  560.             }
  561.             case 2:
  562.             {
  563.                 SendClientMessage(playerid, COLOR_LIGHTRED, "Drugs Smuggler job is marked (red) on a map.");
  564.                 SetPlayerCheckpoint(playerid,2022.1492,-1108.7837,26.2031,5.0);
  565.                 TogglePlayerControllable(playerid,1);
  566.             }
  567.             case 3:
  568.             {
  569.                 SendClientMessage(playerid, COLOR_LIGHTRED, "Materials Smuggler job is marked (red) on a map.");
  570.                 SetPlayerCheckpoint(playerid,213.8549,-230.5761,1.7786,5.0);
  571.                 TogglePlayerControllable(playerid,1);
  572.             }
  573.             case 4:
  574.             {
  575.                 SendClientMessage(playerid, COLOR_LIGHTRED, "Gun Maker job is marked (red) on a map.");
  576.                 SetPlayerCheckpoint(playerid,2137.6624,-2282.3455,20.6719,5.0);
  577.                 TogglePlayerControllable(playerid,1);
  578.             }
  579.             case 5:
  580.             {
  581.                 HideMenuForPlayer(JobLocations3, playerid);
  582.                 ShowMenuForPlayer(JobLocations2, playerid);
  583.             }
  584.             case 6:
  585.             {
  586.                 HideMenuForPlayer(JobLocations3, playerid);
  587.                 ShowMenuForPlayer(Guide, playerid);
  588.             }
  589.         }
  590.     }
  591.     return 1;
  592. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement