Advertisement
Guest User

Problema

a guest
Dec 28th, 2018
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 17.18 KB | None | 0 0
  1. CMD:startwork(playerid, params[]) {
  2.     new Float: Pos[3], Float: CarAngle, string[256];
  3.     if(PlayerInfo[playerid][pJob] == 0) return SendClientMessage(playerid, COLOR_GREY, "Nu ai un job!");
  4.     if(JobWorking[playerid] == 1) return SendClientMessage(playerid, COLOR_WHITE, "Muncesti deja.");
  5.     if(strlen(PlayerInfo[playerid][pPin]) != 0 && PlayerInfo[playerid][pPinLogged] == 0) {
  6.          SendClientMessage(playerid, COLOR_GREY, "Nu poti folosi aceasta comanda deoarece nu te-ai autentificat cu codul de securitate.");
  7.          SendClientMessage(playerid, COLOR_GREY, "Pentru a te autentifica, foloseste comanda '/loginpin'!");
  8.          return 1;
  9.     }      
  10.     GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
  11.     if(targetfind[playerid] != -1) return ShowPlayerDialog(playerid, DIALOG_CHECKPOINT, DIALOG_STYLE_MSGBOX, "Checkpoint", "Ai deja un checkpoint activ.\nDoresti sa-l anulezi? Daca da, apasa pe 'Ok'.", "Ok", "Exit");
  12.     if(GetPlayerVirtualWorld(playerid) != 0) return 1;
  13.     if(JobDeelay[playerid][PlayerInfo[playerid][pJob]] != 0 && PlayerInfo[playerid][pAdmin] < 6) return JobTimeDeelay(playerid);
  14.     switch(PlayerInfo[playerid][pJob]) {
  15.         case 1: {
  16.             if(PlayerToPoint(7.0, playerid, -372.6979, -1456.3641, 26.4046)) {
  17.                 if(PlayerInfo[playerid][pCarLic] == 0) return SCM(playerid, COLOR_LGREEN, "Eroare: Ai nevoie de o licenta de condus pentru a putea munci la acest job!");
  18.                 JobSeconds[playerid] = 120;
  19.                 CarAngle = -184.0199;
  20.                 DisablePlayerCheckpointEx(playerid);
  21.             }
  22.             else {
  23.                 if(CP[playerid] != 0) return ShowPlayerDialog(playerid, DIALOG_CHECKPOINT, DIALOG_STYLE_MSGBOX, "Checkpoint", "Ai deja un checkpoint activ.\nDoresti sa-l anulezi? Daca da, apasa pe 'Ok'.", "Ok", "Exit");
  24.                 CP[playerid] = 53;
  25.                 SendClientMessage(playerid, COLOR_GREY, "Nu esti la locul unde poti incepe munca. Ti-am pus un checkpoint, du-te la el!");
  26.                 SetPlayerCheckpointEx(playerid, -372.6979, -1456.3641, 26.4046, 7.0);
  27.                 return 1;
  28.             }
  29.         }
  30.         case 2: {
  31.             if(PlayerToPoint(7.0, playerid, -1017.3097,-638.8459,32.0078)) {
  32.                 if(PlayerInfo[playerid][pCarLic] == 0) return SCM(playerid, COLOR_LGREEN, "Eroare: Ai nevoie de o licenta de condus pentru a putea munci la acest job!");
  33.                 CarAngle = 74.1729;
  34.                 CP[playerid] = 52;
  35.                 DisablePlayerCheckpointEx(playerid);
  36.                 new szDialog2[1024];               
  37.                 strcat(szDialog2, "Category\tType\tSkill\n");
  38.                 strcat(szDialog2, "Clothes\t{35DE1F}Legal\t1+\n");
  39.                 strcat(szDialog2, "Food\t{35DE1F}Legal\t1+\n");
  40.                 strcat(szDialog2, "Furniture\t{35DE1F}Legal\t1+\n");
  41.                 strcat(szDialog2, "Explosible\t{35DE1F}Legal\t2+\n");
  42.                 strcat(szDialog2, "Guns\t{F21313}Illegal\t3+\n");
  43.                 strcat(szDialog2, "Stolen cars\t{F21313}Illegal\t3+\n");
  44.                 ShowPlayerDialog(playerid, DIALOG_TRUCKER, DIALOG_STYLE_TABLIST_HEADERS, "Choose destination", szDialog2, "Select", "Cancel");         
  45.             }
  46.             else {
  47.                 if(CP[playerid] != 0) return ShowPlayerDialog(playerid, DIALOG_CHECKPOINT, DIALOG_STYLE_MSGBOX, "Checkpoint", "Ai deja un checkpoint activ.\nDoresti sa-l anulezi? Daca da, apasa pe 'Ok'.", "Ok", "Exit");
  48.                 CP[playerid] = 53;
  49.                 SendClientMessage(playerid, COLOR_GREY, "Nu esti la locul unde poti incepe munca. Ti-am pus un checkpoint, du-te la el!");
  50.                 SetPlayerCheckpointEx(playerid, -1017.3097,-638.8459,32.0078, 7.0);
  51.                 return 1;
  52.             }
  53.         }
  54.         case 3: {
  55.             if(PlayerToPoint(7.0, playerid, -1966.2852,-2442.2708,30.6250)) {
  56.                 if(PlayerInfo[playerid][pCarLic] == 0) return SCM(playerid, COLOR_LGREEN, "Eroare: Ai nevoie de o licenta de condus pentru a putea munci la acest job!");
  57.                 format(string, sizeof(string), "Du-te la un copac din apropiere si foloseste tasta ~b~~h~LALT~w~~h~ pentru a-l taia.");
  58.                 PlayerTextDrawSetString(playerid, InfosTD, string);
  59.                 SetTimerEx("HideTextdraw", 8000, 0, "%d", playerid);
  60.                 PlayerTextDrawShow(playerid, InfosTD)
  61.                 CarAngle = 222.7997;            }
  62.             else {
  63.                 if(CP[playerid] != 0) return ShowPlayerDialog(playerid, DIALOG_CHECKPOINT, DIALOG_STYLE_MSGBOX, "Checkpoint", "Ai deja un checkpoint activ.\nDoresti sa-l anulezi? Daca da, apasa pe 'Ok'.", "Ok", "Exit");
  64.                 CP[playerid] = 53;
  65.                 SendClientMessage(playerid, COLOR_GREY, "Nu esti la locul unde poti incepe munca. Ti-am pus un checkpoint, du-te la el!");
  66.                 SetPlayerCheckpointEx(playerid, -1966.2852,-2442.2708,30.6250, 7.0);
  67.                 return 1;
  68.             }      
  69.         }
  70.         case 4: {
  71.             if(GetPlayerSkill(playerid) == 1) PlayerTextDrawSetString(playerid, InfosTD, "~y~Car Jacker~w~~h~~n~Fura un vehicul public!");
  72.             else if(GetPlayerSkill(playerid) == 2) PlayerTextDrawSetString(playerid, InfosTD, "~y~Car Jacker~w~~h~~n~Fura un vehicul personal descuiat!");
  73.             else if(GetPlayerSkill(playerid) == 3) PlayerTextDrawSetString(playerid, InfosTD, "~y~Car Jacker~w~~h~~n~Fura un vehicul ce apartine unei mafii!");
  74.             else if(GetPlayerSkill(playerid) == 4) PlayerTextDrawSetString(playerid, InfosTD, "~y~Car Jacker~w~~h~~n~Fura un vehicul personal incuiat!");
  75.             else if(GetPlayerSkill(playerid) == 5) PlayerTextDrawSetString(playerid, InfosTD, "~y~Car Jacker~w~~h~~n~Fura un vehicul ce apartine unui departament de politie!");
  76.             PlayerTextDrawShow(playerid, InfosTD);
  77.             JobWorking[playerid] = 1;
  78.             SetTimerEx("HideTextdraw", 8000, 0, "%d", playerid);
  79.             return 1;
  80.         }
  81.         case 5: {
  82.             if(PlayerInfo[playerid][pWantedLevel] != 0) return SCM(playerid, -1, "Nu poti munci la acest job deoarece ai wanted!");
  83.             if(!PlayerToPoint(10.0, playerid, 2770.2822,-1610.9043,11.0418)) {             
  84.                 SendClientMessage(playerid, COLOR_GREY, "Nu esti la locul unde poti incepe munca. Ti-am pus un checkpoint, du-te la el!");
  85.                 SetPlayerCheckpointEx(playerid, 2770.2822,-1610.9043,11.0418, 10.0);
  86.                 CP[playerid] = 53;
  87.                 return 1;
  88.             }
  89.             if(PlayerInfo[playerid][pCarLic] == 0) return SCM(playerid, COLOR_LGREEN, "Eroare: Ai nevoie de o licenta de condus pentru a putea munci la acest job!");
  90.             CP[playerid] = 156;
  91.             new rand = random(3);          
  92.             switch(rand) {
  93.                 case 0: SetPlayerCheckpointEx(playerid, 2790.6213,-2523.6418,13.6704, 5.0);
  94.                 case 1: SetPlayerCheckpointEx(playerid, 2529.4214,-2009.4240,13.5798, 5.0);
  95.                 case 2: SetPlayerCheckpointEx(playerid, 2180.0774,-2317.1672,13.5703, 5.0);
  96.                 case 3: SetPlayerCheckpointEx(playerid, 681.2267,-442.6591,16.3633, 5.0);
  97.             }
  98.            
  99.             format(string, sizeof(string), "Du-te la checkpoint-ul de pe mapa pentru a livra materialele!");
  100.             PlayerTextDrawSetString(playerid, InfosTD, string);
  101.             SetTimerEx("HideTextdraw", 8000, 0, "%d", playerid);
  102.             PlayerTextDrawShow(playerid, InfosTD);
  103.            
  104.             CarAngle = 277.2561;
  105.             StartingWork[playerid] = 0;
  106.             CurseFacute[playerid] = 0;
  107.             MoneyEarned[playerid] = 0;     
  108.         }
  109.         case 6..8: return 1;
  110.         case 9: {
  111.             if(PlayerToPoint(7.0, playerid, 2113.9392,-1775.1980,13.3918)) {
  112.                 if(PlayerInfo[playerid][pCarLic] == 0) return SCM(playerid, COLOR_LGREEN, "Eroare: Ai nevoie de o licenta de condus pentru a putea munci la acest job!");
  113.                 CarAngle = 0;
  114.                 CP[playerid] = 155;
  115.                 new j = random(housess)+1;
  116.                 if(j == 0) j = 1;
  117.                 SetPlayerCheckpointEx(playerid, HouseInfo[j][hEntrancex],HouseInfo[j][hEntrancey],HouseInfo[j][hEntrancez], 7.0);
  118.                 format(string, sizeof(string), "Du-te la punctul ~r~~h~rosu~w~~h~ de pe mapa pentru a livra pizza.~n~Distanta: ~y~%0.1fm.", GetPlayerDistanceFromPoint(playerid, HouseInfo[j][hEntrancex],HouseInfo[j][hEntrancey],HouseInfo[j][hEntrancez]));
  119.                 PlayerTextDrawSetString(playerid, InfosTD, string);
  120.                 SetTimerEx("HideTextdraw", 8000, 0, "%d", playerid);
  121.                 PlayerTextDrawShow(playerid, InfosTD);             
  122.             }
  123.             else {
  124.                 if(CP[playerid] != 0) return ShowPlayerDialog(playerid, DIALOG_CHECKPOINT, DIALOG_STYLE_MSGBOX, "Checkpoint", "Ai deja un checkpoint activ.\nDoresti sa-l anulezi? Daca da, apasa pe 'Ok'.", "Ok", "Exit");
  125.                 CP[playerid] = 53;
  126.                 SendClientMessage(playerid, COLOR_GREY, "Nu esti la locul unde poti incepe munca. Ti-am pus un checkpoint, du-te la el!");
  127.                 SetPlayerCheckpointEx(playerid,2113.9392,-1775.1980,13.3918, 7.0);
  128.                 return 1;
  129.             }
  130.         }  
  131.         case 10: {
  132.             if(!PlayerToPoint(6.0, playerid, 844.6592,-601.3264,18.4219)) {
  133.                 SendClientMessage(playerid, COLOR_GREY, "Nu esti la locul unde poti incepe munca. Ti-am pus un checkpoint, du-te la el!");
  134.                 SetPlayerCheckpointEx(playerid, 844.6592,-601.3264,18.4219, 6.0);
  135.                 CP[playerid] = 53;
  136.                 return 1;
  137.             }
  138.             if(PlayerInfo[playerid][pCarLic] == 0) return SCM(playerid, COLOR_LGREEN, "Eroare: Ai nevoie de o licenta de condus pentru a putea munci la acest job!");
  139.             CarAngle = 0.7028;
  140.             CP[playerid] = 57;
  141.            
  142.             new rand = random(3);
  143.             if(rand == 1) SetPlayerCheckpointEx(playerid, 830.0479, -611.8955, 16.3432, 5.0);
  144.             else if(rand == 2) SetPlayerCheckpointEx(playerid, 820.7677, -612.4786, 16.3432, 5.0);
  145.             else if(rand == 3) SetPlayerCheckpointEx(playerid, 790.9538, -612.2801, 16.3432, 5.0);
  146.             else SetPlayerCheckpointEx(playerid, 830.0479, -611.8955, 16.3432, 5.0);
  147.            
  148.             PlayerTextDrawSetString(playerid, InfosTD, "Du-te la punctul ~r~rosu~w~~h~ pentru a incarca coletele!");
  149.             SetTimerEx("HideTextdraw", 8000, 0, "%d", playerid);
  150.             PlayerTextDrawShow(playerid, InfosTD)
  151.         }      
  152.         case 11: {
  153.             if(!PlayerToPoint(8.0, playerid, 842.0929,-2131.5725,1.9931)) {
  154.                 SendClientMessage(playerid, COLOR_GREY, "Nu esti la locul unde poti incepe munca. Ti-am pus un checkpoint, du-te la el!");
  155.                 SetPlayerCheckpointEx(playerid, 842.0929,-2131.5725,1.9931, 6.0);
  156.                 CP[playerid] = 53;
  157.                 return 1;
  158.             }      
  159.             if(PlayerInfo[playerid][pBoatLic] == 0) return SCM(playerid, COLOR_LGREEN, "Eroare: Ai nevoie de o licenta de navigatie pentru a putea munci la acest job!");
  160.             if(Undita[playerid] == 0) return SCM(playerid, COLOR_LGREEN, "Eroare: Nu ai o undita!");
  161.             if(Momeala[playerid] == 0) return SCM(playerid, COLOR_LGREEN, "Eroare: Nu ai momeala!");
  162.             format(string, sizeof(string), "Pentru a pescui, foloseste comanda ~y~/fish~w~~h~ in apropierea barcii!~n~Daca vrei sa abandonezi jobul, foloseste ~y~/stopwork (raman pestii)~w~~h~~n~Poti lua pana la %d kg de peste.",15*GetPlayerSkill(playerid));
  163.             PlayerTextDrawSetString(playerid, InfosTD, string);
  164.             SetTimerEx("HideTextdraw", 8000, 0, "%d", playerid);
  165.             PlayerTextDrawShow(playerid, InfosTD);             
  166.         }
  167.         case 12: {
  168.             if(!PlayerToPoint(20.0, playerid, 1947.3197,-2387.1599,13.5469)) {
  169.                 SendClientMessage(playerid, COLOR_GREY, "Nu esti la locul unde poti incepe munca. Ti-am pus un checkpoint, du-te la el!");
  170.                 SetPlayerCheckpointEx(playerid, 1947.3197,-2387.1599,13.5469, 20.0);
  171.                 CP[playerid] = 53;
  172.                 return 1;
  173.             }
  174.             if(PlayerInfo[playerid][pFlyLic] == 0) return SCM(playerid, COLOR_LGREEN, "Eroare: Ai nevoie de o licenta de zbor pentru a putea munci la acest job!");
  175.             if(PlayerInfo[playerid][pWantedLevel] != 0) return SCM(playerid, COLOR_LGREEN, "Eroare: Nu poti munci la acest job deoarece ai wanted!");          
  176.             CP[playerid] = 159;
  177.             SetPlayerRaceCheckpointEx(playerid, 3, 1897.3568,-2493.9583,14.4609,1337.7225,-2458.1738,52.1955, 5.0);
  178.             CarAngle = 90.6909;
  179.             StartingWork[playerid] = 0;
  180.             CurseFacute[playerid] = 0;
  181.             MoneyEarned[playerid] = 0;     
  182.         }
  183.         case 13: {
  184.             if(!PlayerToPoint(7.0, playerid, 2173.3965,-2265.2837,13.3579)) {
  185.                 SendClientMessage(playerid, COLOR_GREY, "Nu esti la locul unde poti incepe munca. Ti-am pus un checkpoint, du-te la el!");
  186.                 SetPlayerCheckpointEx(playerid, 2173.3965,-2265.2837,13.3579, 7.0);
  187.                 CP[playerid] = 53;
  188.                 return 1;
  189.             }  
  190.             if(PlayerInfo[playerid][pCarLic] == 0) return SCM(playerid, COLOR_LGREEN, "Eroare: Ai nevoie de o licenta de condus pentru a putea munci la acest job!");
  191.             PlayerTextDrawSetString(playerid, InfosTD, "Du-te la ~r~~h~checkpoint-ul~w~~h~ de pe mapa pentru a lua marfa!");
  192.             SetTimerEx("HideTextdraw", 8000, 0, "%d", playerid);
  193.             PlayerTextDrawShow(playerid, InfosTD);         
  194.             new rand = random(2);
  195.             DisablePlayerCheckpointEx(playerid);
  196.             switch(rand) {
  197.                 case 0: {
  198.                     playerObject[playerid] = CreatePlayerObject(playerid, 1271, 2214.87109, -2287.46167, 14.06371,   0.00000, 0.00000, 45.00000);
  199.                     SetPlayerCheckpointEx(playerid, 2214.87109, -2287.46167, 14.06371, 2.0);           
  200.                 }
  201.                 case 1: {
  202.                     playerObject[playerid] = CreatePlayerObject(playerid, 1271, 2237.34399, -2294.11938, 14.08454,   0.00000, 0.00000, 45.00000);
  203.                     SetPlayerCheckpointEx(playerid, 2237.34399, -2294.11938, 14.08454, 2.0);
  204.                 }
  205.                 case 2: {
  206.                     playerObject[playerid] = CreatePlayerObject(playerid, 1271, 2216.74878, -2210.50146, 12.86219,   0.00000, 0.00000, 45.00000);  
  207.                     SetPlayerCheckpointEx(playerid, 2216.74878, -2210.50146, 12.86219, 2.0);
  208.                 }
  209.             }
  210.             CP[playerid] = 170;
  211.             UpdateJobStats(playerid);
  212.         }
  213.         case 14: {
  214.         if(!PlayerToPoint(7.0, playerid, 1100.1071,1925.6389,10.8203)) {
  215.         SendClientMessage(playerid, COLOR_GREY, "Nu esti la locul unde poti incepe munca. Ti-am pus un checkpoint, du-te la el!");
  216.         SetPlayerCheckpointEx(playerid, 1100.1071,1925.6389,10.8203, 7.0);
  217.         CP[playerid] = 53;
  218.         return 1;
  219.                
  220.         }
  221.         CP[playerid]=350;
  222.         SetPlayerCheckpointEx(playerid,2771.5413,1971.8286,10.6734,5.0);
  223.     }
  224.   }
  225.     SetPVarInt(playerid, "Pressed", 0);
  226.     SetPVarInt(playerid, "Trees", 0);
  227.     SetPVarInt(playerid, "JobStep", 0);            
  228.     SetPVarInt(playerid, "InHand", 0);             
  229.    
  230.     MoneyEarned[playerid] = 0;
  231.     CurseFacute[playerid] = 0;
  232.     if(PlayerInfo[playerid][pShowJob] == 0 && PlayerInfo[playerid][pJob] != 5 && PlayerInfo[playerid][pLevel] < 3) SendClientMessage(playerid, COLOR_YELLOW, "Daca doresti sa vezi mai multe informatii folositoare de la job, o poti face prin comanda (/hud > Informatii job).");
  233.     new skill = GetPlayerSkill(playerid);
  234.     if(PlayerInfo[playerid][pJob] == 11) {
  235.         new rand = 1 + random(5);      
  236.         if(rand == 1) { Pos[0] = 877.5832; Pos[1] = -2126.4685; Pos[2] = 0.3231; CarAngle = -89.2800; }
  237.         if(rand == 2) { Pos[0] = 877.3463; Pos[1] = -2113.4219; Pos[2] = 0.3231; CarAngle = -89.2800; }
  238.         if(rand == 3) { Pos[0] = 796.3821; Pos[1] = -2114.0200; Pos[2] = -0.0049; CarAngle = 89.7000; }
  239.         if(rand == 4) { Pos[0] = 796.9351; Pos[1] = -2127.4446; Pos[2] = -0.0049; CarAngle = 89.7000; }
  240.         if(rand == 5) { Pos[0] = 796.1244; Pos[1] = -2100.6455; Pos[2] = -0.0049; CarAngle = 89.7000; }
  241.         if(rand == 6) { Pos[0] = 797.0450; Pos[1] = -2139.8650; Pos[2] = -0.0049; CarAngle = 89.7000; }
  242.     }
  243.     if(PlayerInfo[playerid][pJob] == 12) {
  244.         if(skill == 1) JobVehicle[playerid] = CreateVehicleEx(JobInfo[PlayerInfo[playerid][pJob]][jSkill1Veh], 1982.5657,-2493.7964,14.4719, CarAngle, -1, -1, -1);
  245.         else if(skill == 2) JobVehicle[playerid] = CreateVehicleEx(JobInfo[PlayerInfo[playerid][pJob]][jSkill2Veh], 1982.5657,-2493.7964,14.4719, CarAngle, -1, -1, -1);
  246.         else if(skill == 3) JobVehicle[playerid] = CreateVehicleEx(JobInfo[PlayerInfo[playerid][pJob]][jSkill3Veh], 1982.5657,-2493.7964,14.4719, CarAngle, -1, -1, -1);
  247.         else if(skill == 4) JobVehicle[playerid] = CreateVehicleEx(JobInfo[PlayerInfo[playerid][pJob]][jSkill4Veh], 1982.5657,-2493.7964,14.4719, CarAngle, -1, -1, -1);
  248.         else if(skill == 5) JobVehicle[playerid] = CreateVehicleEx(JobInfo[PlayerInfo[playerid][pJob]][jSkill5Veh], 1982.5657,-2493.7964,14.4719, CarAngle, -1, -1, -1);   
  249.     }
  250.     else {
  251.         if(PlayerInfo[playerid][pJob] == 3) {
  252.             if(skill == 1) JobVehicle[playerid] = CreateVehicleEx(578, Pos[0], Pos[1], Pos[2], CarAngle, random(240), random(240), -1);
  253.             else if(skill == 2) JobVehicle[playerid] = CreateVehicleEx(578, Pos[0], Pos[1], Pos[2], CarAngle, random(240), random(240), -1);
  254.             else if(skill == 3) JobVehicle[playerid] = CreateVehicleEx(578, Pos[0], Pos[1], Pos[2], CarAngle, random(240), random(240), -1);
  255.             else if(skill == 4) JobVehicle[playerid] = CreateVehicleEx(578, Pos[0], Pos[1], Pos[2], CarAngle, random(240), random(240), -1);
  256.             else if(skill == 5) JobVehicle[playerid] = CreateVehicleEx(578, Pos[0], Pos[1], Pos[2], CarAngle, random(240), random(240), -1);       
  257.         }
  258.         else {
  259.             if(skill == 1) JobVehicle[playerid] = CreateVehicleEx(JobInfo[PlayerInfo[playerid][pJob]][jSkill1Veh], Pos[0], Pos[1], Pos[2], CarAngle, -1, -1, -1);
  260.             else if(skill == 2) JobVehicle[playerid] = CreateVehicleEx(JobInfo[PlayerInfo[playerid][pJob]][jSkill2Veh], Pos[0], Pos[1], Pos[2], CarAngle, -1, -1, -1);
  261.             else if(skill == 3) JobVehicle[playerid] = CreateVehicleEx(JobInfo[PlayerInfo[playerid][pJob]][jSkill3Veh], Pos[0], Pos[1], Pos[2], CarAngle, -1, -1, -1);
  262.             else if(skill == 4) JobVehicle[playerid] = CreateVehicleEx(JobInfo[PlayerInfo[playerid][pJob]][jSkill4Veh], Pos[0], Pos[1], Pos[2], CarAngle, -1, -1, -1);
  263.             else if(skill == 5) JobVehicle[playerid] = CreateVehicleEx(JobInfo[PlayerInfo[playerid][pJob]][jSkill5Veh], Pos[0], Pos[1], Pos[2], CarAngle, -1, -1, -1);
  264.         }  
  265.     }  
  266.     PutPlayerInVehicleEx(playerid, JobVehicle[playerid], 0);
  267.     JobWorking[playerid] = 1;
  268.     if(PlayerInfo[playerid][pJob] != 2) UpdateJobStats(playerid);
  269.     Gas[JobVehicle[playerid]] = 100;
  270.     WorkingTime[playerid] = 0;
  271.     if(PlayerInfo[playerid][pJob] == 11) DisableRemoteVehicleCollisions(playerid, 1);
  272.     SetPlayerVirtualWorld(playerid, 0);
  273.  
  274.     new engine,lights,alarm,doors,bonnet,boot,objective;
  275.     vehEngine[JobVehicle[playerid]] = 1;
  276.     GetVehicleParamsEx(JobVehicle[playerid],engine,lights,alarm,doors,bonnet,boot,objective);
  277.     SetVehicleParamsEx(JobVehicle[playerid],VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);   
  278.     return 1;
  279. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement