Guest User

Untitled

a guest
Nov 16th, 2011
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 21.23 KB | None | 0 0
  1. public CustomPickups()
  2. {
  3.     new Float:oldposx, Float:oldposy, Float:oldposz;
  4.     new string[128];
  5.     for(new i = 0; i < MAX_PLAYERS; i++)
  6.     {
  7.         if(IsPlayerConnected(i))
  8.         {
  9.             GetPlayerPos(i, oldposx, oldposy, oldposz);
  10.             new tmpcar = GetPlayerVehicleID(i);
  11.             if(oldposx!=0.0 && oldposy!=0.0 && oldposz!=0.0)
  12.             {
  13.                 for(new h = 0; h < sizeof(SBizzInfo); h++)
  14.                 {
  15.                     if(IsATruck(tmpcar) && PlayerToPoint(10.0, i, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]))
  16.                     {
  17.                         format(string, sizeof(string), "~w~%s~n~~r~Products Required~w~: %d~n~~y~Price per Product: ~w~: $%d~n~~g~Funds: ~w~: $%d",SBizzInfo[h][sbMessage],(SBizzInfo[h][sbMaxProducts]-SBizzInfo[h][sbProducts]),SBizzInfo[h][sbPriceProd],SBizzInfo[h][sbTill]);
  18.                         GameTextForPlayer(i, string, 5000, 3);
  19.                         return 1;
  20.                     }
  21.                     if(PlayerToPoint(2.0, i, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]))
  22.                     {
  23.                         if(SBizzInfo[h][sbOwned] == 1)
  24.                         {
  25.                             format(string, sizeof(string), "~w~%s~n~~r~Propietario:~n~~w~%s~n~~r~Entrada:~w~%d$",SBizzInfo[h][sbMessage],SBizzInfo[h][sbOwner],SBizzInfo[h][sbEntranceCost]);
  26.                         }
  27.                         else
  28.                         {
  29.                             format(string, sizeof(string), "~w~%s~n~~r~Precio:~w~%d$~n~~r~Nivel:~w~%d",SBizzInfo[h][sbMessage],SBizzInfo[h][sbBuyPrice],SBizzInfo[h][sbLevelNeeded]);
  30.                         }
  31.                         GameTextForPlayer(i, string, 5000, 3);
  32.                         TextDrawShowForPlayer(i, HouseDraw[i]);
  33.                         TextDrawSetString(HouseDraw[i], string);
  34.                         return 1;
  35.                     }
  36.                     else
  37.                     {
  38.                     TextDrawHideForPlayer(i, HouseDraw[i]);
  39.                     }
  40.                 }
  41.                 for(new h = 0; h < sizeof(HouseInfo); h++) // SEGUIR AQUÍ
  42.                 {
  43.                     if(PlayerToPoint(2.0, i, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]))
  44.                     {
  45.                         if(HouseInfo[h][hOwned] == 1)
  46.                         {
  47.                             if(HouseInfo[h][hRentabil] == 0)
  48.                             {
  49.                                 format(string, sizeof(string), "~r~~h~Propiedad Privada~n~~y~%s",HouseInfo[h][hOwner]);
  50.                             }
  51.                             else
  52.                             {
  53.                                 format(string, sizeof(string), "~r~~h~Propiedad Privada~n~~y~---------------~r~Renta: ~w~%d~g~$~n~~r~Dueño: ~w~%s~n~~y~---------------~n~~b~~h~/rcuarto",HouseInfo[h][hRent],HouseInfo[h][hOwner]);
  54.                             }
  55.                             GameTextForPlayer(i, string, 5000, 3);
  56.                             TextDrawShowForPlayer(i, HouseDraw[i]);
  57.                             TextDrawSetString(HouseDraw[i], string);
  58.                             return 1;
  59.                         }
  60.                         else
  61.                         {
  62.                             format(string, sizeof(string), "~g~~h~Casa en Venta~n~~y~---------------~r~Precio:~w~%d~n~~r~Nivel:~w~%d~n~~y~---------------~n~~b~~h~/comprarcasa",HouseInfo[h][hValue],HouseInfo[h][hLevel]);
  63.                         }
  64.                         GameTextForPlayer(i, string, 5000, 3);
  65.                         TextDrawShowForPlayer(i, HouseDraw[i]);
  66.                         TextDrawSetString(HouseDraw[i], string);
  67.                         return 1;
  68.                     }
  69.                     else
  70.                     {
  71.                         TextDrawHideForPlayer(i, HouseDraw[i]);
  72.                     }
  73.                 }
  74.                 for(new h = 0; h < sizeof(BizzInfo); h++)
  75.                 {
  76.                     if(IsATruck(tmpcar) && PlayerToPoint(10.0, i, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]))
  77.                     {
  78.                         format(string, sizeof(string), "~w~%s~n~~r~Products Required~w~: %d~n~~y~Price per Product: ~w~: $%d~n~~g~Funds: ~w~: $%d",BizzInfo[h][bMessage],(BizzInfo[h][bMaxProducts]-BizzInfo[h][bProducts]),BizzInfo[h][bPriceProd],BizzInfo[h][bTill]);
  79.                         GameTextForPlayer(i, string, 5000, 3);
  80.                         return 1;
  81.                     }
  82.                     if(PlayerToPoint(2.0, i, BizzInfo[h][bEntranceX],BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]))
  83.                     {
  84.                         if(BizzInfo[h][bOwned] == 1)
  85.                         {
  86.                             format(string, sizeof(string), "~w~%s~n~~r~Propietario:~n~~w~%s~n~~r~Entrada:~w~%d$",BizzInfo[h][bMessage],BizzInfo[h][bOwner],BizzInfo[h][bEntranceCost]);
  87.                         }
  88.                         else
  89.                         {
  90.                             format(string, sizeof(string), "~w~%s~n~~r~Precio:~w~%d$~n~~r~Nivel:~w~%d",BizzInfo[h][bMessage],BizzInfo[h][bBuyPrice],BizzInfo[h][bLevelNeeded]);
  91.                         }
  92.                         GameTextForPlayer(i, string, 5000, 3);
  93.                         TextDrawShowForPlayer(i, HouseDraw[i]);
  94.                         TextDrawSetString(HouseDraw[i], string);
  95.                         return 1;
  96.                     }
  97.                     else
  98.                     {
  99.                     TextDrawHideForPlayer(i, HouseDraw[i]);
  100.                     }
  101.                 }
  102.             }
  103.             if (PlayerToPoint(2.0, i, 246.7753,126.0478,1003.2188))
  104.             {
  105.                 GameTextForPlayer(i, "~w~Equipo De policia SFPD ~b~/equipo u /duty", 5000, 3);
  106.             }
  107.             else if (PlayerToPoint(2.0, i, 259.2224,108.2240,1003.2188))
  108.             {
  109.                 GameTextForPlayer(i, "~w~Ascensor ~b~SFPD ~w~Pretona Enter", 5000, 3);
  110.             }
  111.             else if (PlayerToPoint(2.0, i, -1606.2228,672.5144,-5.2422))
  112.             {
  113.                 GameTextForPlayer(i, "~w~Ascensor ~b~SFPD ~w~Pretona Enter", 5000, 3);
  114.             }
  115.             else if (PlayerToPoint(3.0, i, 53.22926, -1526.183, 5.044313))
  116.             {
  117.                 GameTextForPlayer(i, "~w~Peaje LS/SF ~g~Costo 20$ ~p~/peaje", 5000, 3);
  118.             }
  119.             else if (PlayerToPoint(3.0, i, 49.68357, -1535.63, 5.14347))
  120.             {
  121.                 GameTextForPlayer(i, "~w~Peaje SF/LS ~g~Costo 20$ ~p~/peaje", 5000, 3);
  122.             }
  123.             else if (PlayerToPoint(3.0, i, -889.5368,-1106.9081,98.9554))
  124.             {
  125.                 GameTextForPlayer(i, "~w~Bienvenido a la ciudad de ~p~San Fierro", 5000, 3);
  126.             }
  127.             else if (PlayerToPoint(3.0, i, -1302.2960,439.8679,7.4157))
  128.             {
  129.                 GameTextForPlayer(i, "~w~Armamento Fuerzas Armadas SA. ~p~/fequipo", 5000, 3);
  130.             }
  131.             else if (PlayerToPoint(2.0, i, 1625.0872,-2150.8733,13.6528) || PlayerToPoint(2.0,i,-1504.0095,744.4131,7.3706))
  132.             {
  133.                 GameTextForPlayer(i, "~b~Uniforme de mecanico ~p~/mequipo", 5000, 3);
  134.             }
  135.             else if (PlayerToPoint(2.0, i, 308.2764,-141.2257,999.6016) || PlayerToPoint(2.0,i,312.5481,-165.7466,999.6010))
  136.             {
  137.                 GameTextForPlayer(i, "~b~Armunnation Store Of Armas ~p~/lap", 5000, 3);
  138.             }
  139.             else if (PlayerToPoint(2.0, i, 1516.8812,-1611.6029,13.7969))
  140.             {
  141.                 GameTextForPlayer(i, "~b~Binco Tienda SA ~p~/binco", 5000, 3);
  142.             }
  143.             else if (PlayerToPoint(2.0, i, 1257.1499,-790.5883,1084.0078))
  144.             {
  145.                 GameTextForPlayer(i, "~y~utiliza ~p~/beber ~w~para tomarte un trago...", 5000, 3);
  146.             }
  147.             else if (PlayerToPoint(2.0, i, 1488.6949,-1721.7136,8.2067))
  148.             {
  149.                 GameTextForPlayer(i, "~w~Black ~r~Market", 5000, 3);
  150.             }
  151.             else if (PlayerToPoint(3, i,1083.5182,-1226.3958,15.8203) || PlayerToPoint(2.0, i,2172.2944,-2263.5789,13.3339))
  152.             {
  153.                 GameTextForPlayer(i, "~g~Bienvenido,~n~~y~Use /materials deliver", 5000, 3);
  154.                 DisablePlayerCheckpoint(i);
  155.             }
  156.             else if (PlayerToPoint(2.0, i,2481.0830,-1332.0359,28.2079) || PlayerToPoint(2.0, i,1423.8865,-1319.1508,13.5547))
  157.             {
  158.                 if(PlayerInfo[i][pJob] > 0) {}
  159.                 else    {
  160.                         GameTextForPlayer(i, "~g~Bienvenido,~n~~y~Use /materials get", 5000, 3);
  161.                         SetPlayerCheckpoint(i, 1083.5182,-1226.3958,15.8203, 5.0);
  162.                         }
  163.             }
  164.             else if (PlayerToPoint(2.0, i,-2022.2184,-116.6538,1035.1719))
  165.             {
  166.                 GameTextForPlayer(i, "~r~Escuela de Conduccion~n~~w~ Type: /examen Para empezar el test de manejo~n~~g~Precio: $100", 5000, 3);
  167.             }
  168.             else if (PlayerToPoint(2.0, i,1497.9254,-1640.7958,14.0469))
  169.             {
  170.                 GameTextForPlayer(i, "~r~Yakuza ~b~BlackMarket ~n~~w~/bmbuy", 5000, 3);
  171.             }
  172.             else if (PlayerToPoint(2.0, i,-2033.0465,-117.3363,1035.1719))
  173.             {
  174.                 GameTextForPlayer(i, "~r~Tienda de Licencias~n~~w~/licencia", 5000, 3);
  175.             }
  176.             else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,1793.02,-1296.56,13.44))
  177.             {
  178.                 if(PlayerInfo[i][pMember] == 9 || PlayerInfo[i][pLeader] == 9) { GameTextForPlayer(i, "~w~Type ~r~/paper ~w~to create a newspaper",5000,3); }
  179.                 else if(PlayerInfo[i][pJob] == 15) { GameTextForPlayer(i, "~w~Type ~r~/papers ~w~to see all the made newspapers",5000, 3); }
  180.             }
  181.             else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,-2141.1472,-244.6000,36.5156))
  182.             {
  183.                 if(PlayerInfo[i][pJob] > 0) {}
  184.                 else { GameTextForPlayer(i, "~g~Bienvenido,~n~~y~Usted puede hacerse ~r~Vendedor de armas~y~ aqui ~n~~w~Escriba /empleo si desea este empleo", 5000, 3); }
  185.             }
  186.  
  187.             else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,2290.3542,-1795.9713,13.5469))
  188.             {
  189.                 if(PlayerInfo[i][pJob] > 0) {}
  190.                 else { GameTextForPlayer(i, "~g~Bienvenido,~n~~y~Usted puede hacerse ~r~Vendedor de Drogas~y~ aqui ~n~~w~Escriba /empleo si desea este empleo", 5000, 3); }
  191.             }
  192.             else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,766.0804,14.5133,1000.7004))
  193.             {
  194.                 if(PlayerInfo[i][pJob] > 0) {}
  195.                 else { GameTextForPlayer(i, "~g~Bienvenido,~n~~y~Usted puede hacerse ~r~Boxer~y~ aqui ~n~~w~Escriba /empleo si desea este empleo", 5000, 3); }
  196.             }
  197.             else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,-2109.2832,1.0447,35.3203))
  198.             {
  199.                 if(PlayerInfo[i][pJob] > 0) {}
  200.                 else { GameTextForPlayer(i, "~g~Bienvenido,~n~~y~Usted puede hacerse ~r~Ladron~y~ aqui ~n~~w~Escriba /empleo si desea este empleo", 5000, 3); }
  201.             }
  202.             else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,213.8549,-230.5761,1.7786))
  203.             {
  204.                 if(PlayerInfo[i][pJob] > 0) {}
  205.                 else { GameTextForPlayer(i, "~g~Bienvenido,~n~~y~Usted puede hacerse ~r~Materials smuggler~n~~w~Escriba /empleo si desea este empleo", 5000, 3); }
  206.             }
  207.             else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,2072.5486,-1582.8029,13.4741))
  208.             {
  209.                 if(PlayerInfo[i][pJob] > 0) {}
  210.                 else { GameTextForPlayer(i, "~g~Bienvenido,~n~~y~Usted puede hacerse ~r~Drugs Dealer~y~~n~~w~Escriba /empleo si desea este empleo", 5000, 3); }
  211.             }
  212.             else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,761.6419,5.8016,1000.7106))
  213.             {
  214.              GameTextForPlayer(i, "~p~desea mejorar su lucha? ~n~~w~/lucha", 5000, 3);
  215.             }
  216.             else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,362.6689,173.5501,1008.3828)  ||  PlayerToPoint(2.0, i,2643.1829,1216.4512,26.9233))
  217.             {
  218.              GameTextForPlayer(i, "~r~Ayuntamiento ~n~~w~Para Legalizarse ~n~~g~/legalizarme", 5000, 3);
  219.             }
  220.             else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,359.4155,184.0848,1008.3828) ||PlayerToPoint(2.0, i,2645.0654,1208.0880,26.9233))
  221.             {
  222.              GameTextForPlayer(i, "~r~Ayuntamiento ~n~~w~Para Trabajar ~n~~g~/trabajo", 5000, 3);
  223.             }
  224.             else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,-2424.4548,503.0187,30.0781))
  225.             {
  226.              GameTextForPlayer(i, "~b~Equpo FBI~n~~w~Usalo Con Cuidado~n~~g~/gequipo", 5000, 3);
  227.             }
  228.             else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,2549.2502,-1293.5389,1044.1250))
  229.             {
  230.              GameTextForPlayer(i, "~b~Fabrica de Drogas ~n~~w~/Recogerdrogas", 5000, 3);
  231.             }
  232.             else if (PlayerToPoint(2.0, i,379.1396,-114.2661,1001.4922))
  233.             {
  234.                 if (PlayerInfo[i][pJob] != 17)
  235.                 {
  236.                     SendClientMessage(i, COLOR_GREY, "You are not a pizza stack worker");
  237.                     return 1;
  238.                 }
  239.                 if (sPizza[i] != 1)
  240.                 {
  241.                     SendClientMessage(i, COLOR_WHITE, "You have picked a cooked pizza, wait for orders");
  242.                     sPizza[i] = 1;
  243.                 }
  244.             }
  245.             else if (PlayerToPoint(2.0, i,1174.9100,-1365.7330,13.9876))
  246.             {
  247.                 if(PlayerInfo[i][pMember] == 4 || PlayerInfo[i][pLeader] == 4) { SetTimerEx("elevator1", 1000, false, "i", i); }
  248.                 else { GameTextForPlayer(i, "~r~You can not use an elevator", 5000, 3); }
  249.             }
  250.             else if (PlayerToPoint(2.0, i,1161.4622,-1343.2683,26.6235))
  251.             {
  252.                 if(PlayerInfo[i][pMember] == 4 || PlayerInfo[i][pLeader] == 4) { SetTimerEx("elevator2", 1000, false, "i", i); }
  253.                 else { GameTextForPlayer(i, "~r~You can not use an elevator", 5000, 3); }
  254.             }
  255.             else if (PlayerToPoint(3.0, i,-38.8664,56.3031,3.1172))
  256.             {
  257.                 if(PlayerInfo[i][pMember] == 6 || PlayerInfo[i][pLeader] == 6 || PlayerInfo[i][pJob] == 19)
  258.                 {
  259.                     format(string, sizeof(string), "~r~Drugs ammount: %d", drugsys[DrugAmmount]);
  260.                     GameTextForPlayer(i, string, 5000, 3);
  261.                 }
  262.                 else if(PlayerInfo[i][pJob] == 4)
  263.                 {
  264.                     format(string, sizeof(string), "~w~Granja Ilegal~n~Exportacion de Drogas: Granjeros~n~Cantidad de Drogas:~r~ %d~n~~w~Puedes /importardrogas aqui", drugsys[DrugAmmount]);
  265.                     GameTextForPlayer(i, string, 5000, 3);
  266.                 }
  267.                 else
  268.                 {
  269.                     GameTextForPlayer(i, "~r~Solo Personal!", 5000, 3);
  270.                 }
  271.             }
  272.             else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,2022.1492,-1108.7837,26.2031))
  273.             {
  274.                 if(PlayerInfo[i][pJob] == 4)
  275.                 {
  276.                     GameTextForPlayer(i, "~g~Bienvenido,~n~~y~you can become ~r~Drugs Smuggler~n~~w~Escriba /empleo si desea este empleo", 5000, 3);
  277.                 }
  278.                 else
  279.                 {
  280.                     GameTextForPlayer(i, "~r~Solo Personal", 5000, 3);
  281.                 }
  282.             }
  283.             else if (GetPlayerState(i) == 1 && PlayerToPoint(1.0, i,242.7591,66.4315,1003.6406))
  284.             {
  285.                 if(PlayerInfo[i][pMember] == 1 || PlayerInfo[i][pLeader] == 1 || PlayerInfo[i][pMember] == 3 || PlayerInfo[i][pLeader] == 3)
  286.                 {
  287.                     GameTextForPlayer(i, "~g~Elevador LSPD~n~~w~Comandos: ~r~/pdup ~w~Para subir~n~ ~r~/pddown ~w~Para bajar", 5000, 3);
  288.                 }
  289.                 else
  290.                 {
  291.                     GameTextForPlayer(i, "~r~No eres miembro LSPD!", 5000, 3);
  292.                 }
  293.             }
  294.             else if (GetPlayerState(i) == 2 && PlayerToPoint(3, i,2073.2979,-1831.1228,13.5469) || GetPlayerState(i) == 2 && PlayerToPoint(3, i,1024.9756,-1030.7930,32.0257) || GetPlayerState(i) == 2 && PlayerToPoint(3, i,488.3819,-1733.0563,11.1752) || GetPlayerState(i) == 2 && PlayerToPoint(3, i,719.8940,-464.8272,16.3359))
  295.             {
  296.                 format(string, sizeof(string), "~y~Pay ~r~& ~g~Spray~w~~n~Dueno : %s~n~Costo entrada : ~g~$%d ~w~~n~Para entrar /entrar",SBizzInfo[5][sbOwner],SBizzInfo[5][sbEntranceCost]);
  297.                 GameTextForPlayer(i, string, 5000, 3);
  298.             }
  299.             else if (GetPlayerState(i) == 1 && PlayerToPoint(1.5, i, 248.4994,-33.1366,1.5781))
  300.             {
  301.                 if(PlayerInfo[i][pJob] == 22)
  302.                 {
  303.                     GameTextForPlayer(i, "~w~Materials factory~n~You can ~r~/smugglemats ~w~here", 5000, 3);
  304.                 }
  305.                 else
  306.                 {
  307.                     GameTextForPlayer(i, "~r~Solo Personal !", 5000, 3);
  308.                 }
  309.             }
  310.             else if (GetPlayerState(i) == 1 && PlayerToPoint(1.0, i, 2230.3579,-2286.2107,14.3751))
  311.             {
  312.                 if(PlayerInfo[i][pJob] == 22)
  313.                 {
  314.                     format(string, sizeof(string), "~w~Materials Bank~n~Materials ammount: ~r~%d", matssys[MatsAmmount]);
  315.                     GameTextForPlayer(i, string, 5000, 3);
  316.                 }
  317.                 else if(PlayerInfo[i][pJob] == 23)
  318.                 {
  319.                     format(string, sizeof(string), "~w~Materials Bank~n~Materials ammount: ~r~%d ~n~~w~You can ~g~/buymats ~w~here", matssys[MatsAmmount]);
  320.                     GameTextForPlayer(i, string, 5000, 3);
  321.                 }
  322.                 else
  323.                 {
  324.                     GameTextForPlayer(i, "~r~Solo Personal !", 5000, 3);
  325.                 }
  326.             }
  327.             else if(PlayerToPoint(2.0, i,1911.8004,154.1942,37.2079))
  328.             {
  329.                 if(OrderReady[i] > 0)
  330.                 {
  331.                     switch (OrderReady[i])
  332.                     {
  333.                         case 1:
  334.                         {
  335.                             JB_GivePlayerWeapon(i, 24, 50); JB_GivePlayerWeapon(i, 29, 500); JB_GivePlayerWeapon(i, 25, 50); JB_GivePlayerWeapon(i, 4, 1);
  336.                             SafeGivePlayerMoney(i, - 2000);
  337.                             SendClientMessage(i, COLOR_WHITE, "* Has Pagado y Recogido tu pedido..");
  338.                         }
  339.                         case 2:
  340.                         {
  341.                             JB_GivePlayerWeapon(i, 24, 50); JB_GivePlayerWeapon(i, 29, 500); JB_GivePlayerWeapon(i, 25, 50); JB_GivePlayerWeapon(i, 31, 500); JB_GivePlayerWeapon(i, 4, 1);
  342.                             SafeGivePlayerMoney(i, - 2000);
  343.                             SendClientMessage(i, COLOR_WHITE, "* Has Pagado y Recogido tu pedido..");
  344.                         }
  345.                         case 3:
  346.                         {
  347.                             JB_GivePlayerWeapon(i, 24, 50); JB_GivePlayerWeapon(i, 29, 500); JB_GivePlayerWeapon(i, 25, 50); JB_GivePlayerWeapon(i, 30, 500); JB_GivePlayerWeapon(i, 4, 1);
  348.                             SafeGivePlayerMoney(i, - 4000);
  349.                             SendClientMessage(i, COLOR_WHITE, "* Has Pagado y Recogido tu pedido..");
  350.                         }
  351.                         case 4:
  352.                         {
  353.                             JB_GivePlayerWeapon(i, 24, 50); JB_GivePlayerWeapon(i, 29, 500); JB_GivePlayerWeapon(i, 25, 50); JB_GivePlayerWeapon(i, 31, 500); JB_GivePlayerWeapon(i, 4, 1); JB_GivePlayerWeapon(i, 34, 20);
  354.                             SafeGivePlayerMoney(i, - 5000);
  355.                             SendClientMessage(i, COLOR_WHITE, "* Has Pagado y Recogido tu pedido..");
  356.                         }
  357.                         case 5:
  358.                         {
  359.                             JB_GivePlayerWeapon(i, 24, 50); JB_GivePlayerWeapon(i, 29, 500); JB_GivePlayerWeapon(i, 25, 50); JB_GivePlayerWeapon(i, 30, 500); JB_GivePlayerWeapon(i, 4, 1); JB_GivePlayerWeapon(i, 34, 20);
  360.                             SafeGivePlayerMoney(i, -5000);
  361.                             SendClientMessage(i, COLOR_WHITE, "* Has Pagado y Recogido tu pedido..");
  362.                         }
  363.                         case 6:
  364.                         {
  365.                             JB_GivePlayerWeapon(i, 24, 50); JB_GivePlayerWeapon(i, 29, 500); JB_GivePlayerWeapon(i, 25, 50); JB_GivePlayerWeapon(i, 31, 500); JB_GivePlayerWeapon(i, 4, 1); JB_GivePlayerWeapon(i, 34, 20);
  366.                             SafeGivePlayerMoney(i, - 5500);
  367.                             SendClientMessage(i, COLOR_WHITE, "* Has Pagado y Recogido tu pedido..");
  368.                         }
  369.                         case 7:
  370.                         {
  371.                             JB_GivePlayerWeapon(i, 24, 50); JB_GivePlayerWeapon(i, 29, 500); JB_GivePlayerWeapon(i, 25, 50); JB_GivePlayerWeapon(i, 30, 500); JB_GivePlayerWeapon(i, 4, 1); JB_GivePlayerWeapon(i, 34, 20);
  372.                             SafeGivePlayerMoney(i, - 5500);
  373.                             SendClientMessage(i, COLOR_WHITE, "* Has Pagado y Recogido tu pedido..");
  374.                         }
  375.                     }
  376.                     OrderReady[i] = 0;
  377.                 }
  378.             }
  379.             else if(PlayerOnMission[i] > 0 && PlayMission[kToggle] == 0)
  380.             {
  381.                 if(MissionCheckpoint[i] == 1 && PlayerToPoint(10.0, i,PlayMission[kCP1][0],PlayMission[kCP1][1],PlayMission[kCP1][2]))
  382.                 {
  383.                     RingTone[i] = 20;
  384.                     format(string, sizeof(string), "%s", PlayMission[kGText1]);
  385.                     GameTextForPlayer(i, string, 8000, 3);
  386.                     format(string, sizeof(string), "%s", PlayMission[kText4]);
  387.                     SendClientMessage(i, COLOR_YELLOW2, string);
  388.                     format(string, sizeof(string), "%s", PlayMission[kText5]);
  389.                     SendClientMessage(i, COLOR_YELLOW2, string);
  390.                     format(string, sizeof(string), "%s", PlayMission[kText6]);
  391.                     SendClientMessage(i, COLOR_YELLOW2, string);
  392.                     MissionCheckpoint[i] = 2;
  393.                 }
  394.                 else if(MissionCheckpoint[i] == 2 && PlayerToPoint(10.0, i,PlayMission[kCP2][0],PlayMission[kCP2][1],PlayMission[kCP2][2]))
  395.                 {
  396.                     RingTone[i] = 20;
  397.                     format(string, sizeof(string), "%s", PlayMission[kGText2]);
  398.                     GameTextForPlayer(i, string, 8000, 3);
  399.                     format(string, sizeof(string), "%s", PlayMission[kText7]);
  400.                     SendClientMessage(i, COLOR_YELLOW2, string);
  401.                     format(string, sizeof(string), "%s", PlayMission[kText8]);
  402.                     SendClientMessage(i, COLOR_YELLOW2, string);
  403.                     format(string, sizeof(string), "%s", PlayMission[kText9]);
  404.                     SendClientMessage(i, COLOR_YELLOW2, string);
  405.                     MissionCheckpoint[i] = 3;
  406.                 }
  407.                 else if(MissionCheckpoint[i] == 3 && PlayerToPoint(10.0, i,PlayMission[kCP3][0],PlayMission[kCP3][1],PlayMission[kCP3][2]))
  408.                 {
  409.                     RingTone[i] = 20;
  410.                     format(string, sizeof(string), "%s", PlayMission[kGText3]);
  411.                     GameTextForPlayer(i, string, 8000, 3);
  412.                     format(string, sizeof(string), "%s", PlayMission[kText10]);
  413.                     SendClientMessage(i, COLOR_YELLOW2, string);
  414.                     format(string, sizeof(string), "%s", PlayMission[kText11]);
  415.                     SendClientMessage(i, COLOR_YELLOW2, string);
  416.                     format(string, sizeof(string), "%s", PlayMission[kText12]);
  417.                     SendClientMessage(i, COLOR_YELLOW2, string);
  418.                     MissionCheckpoint[i] = 4;
  419.                 }
  420.                 else if(MissionCheckpoint[i] == 4 && PlayerToPoint(10.0, i,PlayMission[kCP4][0],PlayMission[kCP4][1],PlayMission[kCP4][2]))
  421.                 {
  422.                     RingTone[i] = 20;
  423.                     format(string, sizeof(string), "%s", PlayMission[kGText4]);
  424.                     GameTextForPlayer(i, string, 8000, 3);
  425.                     format(string, sizeof(string), "%s", PlayMission[kText13]);
  426.                     SendClientMessage(i, COLOR_YELLOW2, string);
  427.                     format(string, sizeof(string), "%s", PlayMission[kText14]);
  428.                     SendClientMessage(i, COLOR_YELLOW2, string);
  429.                     format(string, sizeof(string), "%s", PlayMission[kText15]);
  430.                     SendClientMessage(i, COLOR_YELLOW2, string);
  431.                     MissionCheckpoint[i] = 5;
  432.                 }
  433.                 else if(MissionCheckpoint[i] == 5 && PlayerToPoint(10.0, i,PlayMission[kCP5][0],PlayMission[kCP5][1],PlayMission[kCP5][2]))
  434.                 {
  435.                     RingTone[i] = 20;
  436.                     format(string, sizeof(string), "%s", PlayMission[kGText5]);
  437.                     GameTextForPlayer(i, string, 8000, 3);
  438.                     format(string, sizeof(string), "%s", PlayMission[kText16]);
  439.                     SendClientMessage(i, COLOR_YELLOW2, string);
  440.                     format(string, sizeof(string), "%s", PlayMission[kText17]);
  441.                     SendClientMessage(i, COLOR_YELLOW2, string);
  442.                     format(string, sizeof(string), "%s", PlayMission[kText18]);
  443.                     SendClientMessage(i, COLOR_YELLOW2, string);
  444.                     MissionCheckpoint[i] = 6;
  445.                 }
  446.                 else if(MissionCheckpoint[i] == 6 && PlayerToPoint(10.0, i,PlayMission[kCP6][0],PlayMission[kCP6][1],PlayMission[kCP6][2]))
  447.                 {
  448.                     RingTone[i] = 20;
  449.                     format(string, sizeof(string), "%s", PlayMission[kGText6]);
  450.                     GameTextForPlayer(i, string, 8000, 3);
  451.                     format(string, sizeof(string), "..:: Mission Passed : %s | Reward received: $%d ::..", PlayMission[kTitle], PlayMission[kReward]);
  452.                     SendClientMessage(i, COLOR_GREEN, string);
  453.                     SafeGivePlayerMoney(i, PlayMission[kReward]);
  454.                     PlayerInfo[i][pMissionNr] = PlayerOnMission[i];
  455.                     MissionCheckpoint[i] = 0;
  456.                     PlayerOnMission[i] = 0;
  457.                 }
  458.             }
  459.         }
  460.     }
  461.     return 1;
  462. }
  463.  
Advertisement
Add Comment
Please, Sign In to add comment