Advertisement
Guest User

Untitled

a guest
Jul 4th, 2016
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.68 KB | None | 0 0
  1. case 120:
  2. {
  3. if(IsPlayerInCheckpointEx(playerid, cpid))
  4. {
  5. VerificaSecundeCheckpoint(playerid);
  6. JobInterval[playerid] = GetTickCount();
  7. if(JobStage[playerid] == 1)
  8. {
  9. JobStage[playerid] = 2;
  10. new Float: X[4];
  11. GetPlayerPos(playerid, X[0], X[1],X[2]);
  12. new string[256];
  13. SetPlayerCheckpointEx(playerid, 120, 2178.8142,-2255.2375,14.7734, 8);
  14. return 1;
  15. }
  16. if(JobStage[playerid] == 2)
  17. {
  18. PayJob(playerid, 2);
  19. new string[256];
  20. JobStage[playerid] = 1;
  21. SetPlayerCheckpointEx(playerid, 120, 2188.8704,-2225.4451,15.1711, 8);
  22. return 1;
  23. }
  24. }
  25. }
  26.  
  27. case 100: //la asta, 1
  28. {
  29. if(IsPlayerInCheckpointEx(playerid, cpid) && GetPlayerVehicleID(playerid) == MasinaJob[playerid])
  30. {
  31. VerificaSecundeCheckpoint(playerid);
  32. JobInterval[playerid] = GetTickCount();
  33. if(JobStage[playerid] == 1)
  34. {
  35. Gas[MasinaJob[playerid]] = 100;
  36. JobStage[playerid] = 2;
  37. new Float: X[4];
  38. GetPlayerPos(playerid, X[0], X[1],X[2]);
  39. new string[256];
  40. SetPlayerCheckpointEx(playerid, 100, 1887.1255,-2493.8069,13.5391, 8);
  41. return 1;
  42. }
  43. if(JobStage[playerid] == 2)
  44. {
  45. PayJob(playerid, 2);
  46. new string[256];
  47. Gas[MasinaJob[playerid]] = 100;
  48. JobStage[playerid] = 1;
  49. SetPlayerCheckpointEx(playerid, 100, -1345.8219,146.5918,14.1484, 8);
  50. return 1;
  51. }
  52. }
  53. }
  54.  
  55. case 41: //asta merge, celelalte sunt facute dupa modelul asta, cu mici modificari
  56. {
  57. if(IsPlayerInCheckpointEx(playerid, cpid) && GetPlayerVehicleID(playerid) == MasinaJob[playerid])
  58. {
  59. VerificaSecundeCheckpoint(playerid);
  60. JobInterval[playerid] = GetTickCount();
  61. if(JobStage[playerid] == 1)
  62. {
  63. Gas[MasinaJob[playerid]] = 100;
  64. JobStage[playerid] = 2;
  65. new Float: X[4];
  66. GetPlayerPos(playerid, X[0], X[1],X[2]);
  67. TrailerJob[playerid] = CreateVehicle(426, X[0],X[1],X[2],0, -1, -1 , 99999);
  68. SetTimerEx("AttachTrailer", 100, false, "i", playerid);
  69. SetVehicleParamsVeh(TrailerJob[playerid], 0, lights, alarm,1, bonnet, boot, objective);
  70. new string[256];
  71. PlayerTextDrawSetString(playerid, JobHint[playerid], string);
  72. SetPlayerCheckpointEx(playerid, 41, 2528.3462,-1941.2601,13.5391, 8);
  73. return 1;
  74. }
  75. if(JobStage[playerid] == 2)
  76. {
  77. PayJob(playerid, 2);
  78. if(TrailerJob[playerid])
  79. {
  80. DestroyVehicle(TrailerJob[playerid]);
  81. TrailerJob[playerid] = 0;
  82. }
  83. new string[256];
  84. Gas[MasinaJob[playerid]] = 100;
  85. JobStage[playerid] = 1;
  86. SetPlayerCheckpointEx(playerid, 41, 2527.4663,-881.8802,88.0752, 8);
  87. return 1;
  88. }
  89. }
  90. }
  91.  
  92. Jobs
  93.  
  94. if(job == 2) // asta e cu case 41
  95. {
  96. if (PlayerToPoint(3.0, playerid,2489.1348,-1957.4084,13.5925) && myjob == 2)
  97. {
  98. if(IsPlayerInAnyVehicle(playerid)) return SCM(playerid, COLOR_FADE1, "Nu poti incepe munca dintr-un vehicul!");
  99. if(statusSlujba2 == 0) return SCM(playerid,COLOR_FADE1,"{9999ff}[Probleme Tehnice]: Din pacate acest job este in mentenanta tehnica!");
  100. IsWorking[playerid] = 1;
  101. MasinaJob[playerid] = CreateVehicle(525,2530.9448,-1946.3097,13.4243,0.3858, 5,5, 99999);
  102. PutPlayerInVehicle(playerid, MasinaJob[playerid], 0);
  103. DisableRemoteVehicleCollisions(playerid, 0);
  104. SetVehicleParamsVeh(MasinaJob[playerid], 0, lights, alarm,1, bonnet, boot, objective);
  105. Gas[MasinaJob[playerid]] = 100;
  106. JobStage[playerid] = 1;
  107. SetPlayerCheckpointEx(playerid, 41, 2527.4663,-881.8802,88.0752, 8);
  108. JobInterval[playerid] = GetTickCount();
  109. return 1;
  110. }
  111.  
  112. if(job == 9) //case 100
  113. {
  114. if (PlayerToPoint(3.0, playerid,1891.9258,-2328.5146,13.5469) && myjob == 9)
  115. {
  116. if(IsPlayerInAnyVehicle(playerid)) return SCM(playerid, COLOR_FADE1, "Nu poti incepe munca dintr-un vehicul!");
  117. if(statusSlujba9 == 0) return SCM(playerid,COLOR_FADE1,"{9999ff}[Probleme Tehnice]: Din pacate acest job este in mentenanta tehnica!");
  118. IsWorking[playerid] = 1;
  119. format(string, sizeof(string), "Du-te in San Fierro!");
  120. PlayerTextDrawSetString(playerid, JobHint[playerid], string);
  121. PlayerTextDrawShow(playerid, JobHint[playerid]);
  122. MasinaJob[playerid] = CreateVehicle(411,1887.1255,-2493.8069,13.5391,92.2980, 1,1, 99999); //551
  123. PutPlayerInVehicle(playerid, MasinaJob[playerid], 0);
  124. DisableRemoteVehicleCollisions(playerid, 0);
  125. SetVehicleParamsVeh(MasinaJob[playerid], 0, lights, alarm,1, bonnet, boot, objective);
  126. Gas[MasinaJob[playerid]] = 100;
  127. JobStage[playerid] = 1;
  128. pCPID[playerid] = 100;
  129. SetPlayerCheckpointEx(playerid, 100, -1345.8219,146.5918,14.1484, 8);
  130. SCM(playerid, COLOR_LIGHTRED, "{FF784E}[JOB]: Ai inceput munca, du-te pe aeroport SF.");
  131. SCM(playerid, COLOR_LIGHTRED, "{FF784E}[JOB]: (/stopwork) - atunci cand doresti sa te opresti din munca.");
  132. JobInterval[playerid] = GetTickCount();
  133. return 1;
  134. }
  135. else return SCM(playerid, COLOR_FADE1,"Tasteaza /locatework pentru a gasi locatia de unde poti incepe munca.");
  136. }
  137.  
  138. if(job == 10) //case 120
  139. {
  140. if (PlayerToPoint(3.0, playerid,2178.8142,-2255.2375,14.7734) && myjob == 10)
  141. {
  142. if(IsPlayerInAnyVehicle(playerid)) return SCM(playerid, COLOR_FADE1, "Nu poti incepe munca dintr-un vehicul!");
  143. IsWorking[playerid] = 1;
  144. pCPID[playerid] = 120;
  145. format(string, sizeof(string), "Descarca camionul.");
  146. PlayerTextDrawSetString(playerid, JobHint[playerid], string);
  147. PlayerTextDrawShow(playerid, JobHint[playerid]);
  148. JobStage[playerid] = 1;
  149. SetPlayerCheckpointEx(playerid, 120, 2188.8704,-2225.4451,15.1711, 8);
  150. JobInterval[playerid] = GetTickCount();
  151. return 1;
  152. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement