Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2018
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. function Timers() {
  2. new
  3. string[180], szTD[600], anim,
  4. Float: ppHealth, Float: ppArmour,
  5. Float: x, Float: y, Float: z, Float: animpos[3], swinner[180];
  6.  
  7. foreach(Player, i) {
  8. if(IsPlayerConnected(i) && IsPlayerLogged[i] == 1) {
  9. if(JobWorking[i] == 1) WorkingTime[i] ++;
  10. if(JobLeftTime[i] > 0) {
  11. JobLeftTime[i] --;
  12. if(JobLeftTime[i] == 60) SCM(i, COLOR_YELLOW, "Mai ai la dispozitie 1 minut sa intri in vehiculul de la job.");
  13. if(JobLeftTime[i] == 0) {
  14. SendClientMessage(i, COLOR_GREY, "Job esuat! Ai parasit vehiculul.");
  15. if(playerObject[i] != 0) DestroyPlayerObject(i, playerObject[i]), playerObject[i] = 0;
  16. if(playerObject2[i] != 0) DestroyObject(playerObject2[i]), playerObject2[i] = 0;
  17. JobWorking[i] = 0;
  18. PlayerTextDrawHide(i, JobTD);
  19. if(JobVehicle[i] != 0) { DestroyVehicle(JobVehicle[i]); JobVehicle[i] = 0; }
  20. if(Trailer[i] != 0) { DestroyVehicle(Trailer[i]); Trailer[i] = 0; }
  21. PlayerTextDrawHide(i, InfosTD);
  22. DisablePlayerCheckpointEx(i);
  23. DisablePlayerRaceCheckpointEx(i);
  24. RemovePlayerAttachedObject(i, 6);
  25. RemovePlayerAttachedObject(i, 2);
  26. CP[i] = 0;
  27. JobVehicle[i] = 0;
  28. JobDeelay[i][PlayerInfo[i][pJob]] = 180;
  29. DestroyWoodObject(i);
  30. }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement