Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Timers() {
- new
- string[180], szTD[600], anim,
- Float: ppHealth, Float: ppArmour,
- Float: x, Float: y, Float: z, Float: animpos[3], swinner[180];
- foreach(Player, i) {
- if(IsPlayerConnected(i) && IsPlayerLogged[i] == 1) {
- if(JobWorking[i] == 1) WorkingTime[i] ++;
- if(JobLeftTime[i] > 0) {
- JobLeftTime[i] --;
- if(JobLeftTime[i] == 60) SCM(i, COLOR_YELLOW, "Mai ai la dispozitie 1 minut sa intri in vehiculul de la job.");
- if(JobLeftTime[i] == 0) {
- SendClientMessage(i, COLOR_GREY, "Job esuat! Ai parasit vehiculul.");
- if(playerObject[i] != 0) DestroyPlayerObject(i, playerObject[i]), playerObject[i] = 0;
- if(playerObject2[i] != 0) DestroyObject(playerObject2[i]), playerObject2[i] = 0;
- JobWorking[i] = 0;
- PlayerTextDrawHide(i, JobTD);
- if(JobVehicle[i] != 0) { DestroyVehicle(JobVehicle[i]); JobVehicle[i] = 0; }
- if(Trailer[i] != 0) { DestroyVehicle(Trailer[i]); Trailer[i] = 0; }
- PlayerTextDrawHide(i, InfosTD);
- DisablePlayerCheckpointEx(i);
- DisablePlayerRaceCheckpointEx(i);
- RemovePlayerAttachedObject(i, 6);
- RemovePlayerAttachedObject(i, 2);
- CP[i] = 0;
- JobVehicle[i] = 0;
- JobDeelay[i][PlayerInfo[i][pJob]] = 180;
- DestroyWoodObject(i);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement