Advertisement
Guest User

Untitled

a guest
Dec 16th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. timer examtimerr[1000](playerid) {
  2. if(examCP[playerid] > 0) {
  3. format(szSmallString, 56, "~w~CHECKPOINTS: %d/10~n~time left: %s", examCP[playerid]-1, calculateTime(dmvtime[playerid]));
  4. PlayerTextDrawSetString(playerid, DMV, szSmallString);
  5. PlayerTextDrawShow(playerid, DMV);
  6. }
  7. if(dmvtime[playerid] > 0) dmvtime[playerid] --;
  8. else if(dmvtime[playerid] == 0) {
  9. dmvtime[playerid] = -1;
  10. examCP[playerid] = 0, playerExam[playerid] = false, DestroyVehicle(playerExamCar[playerid]), playerExamCar[playerid] = 0;
  11. SS(playerid, COLOR_LIGHTRED, "(Driving School): {FFFFFF}You failed the driving test.", "(Driving School): {FFFFFF}Ai picat testul de condus.");
  12. PlayerTextDrawHide(playerid, DMV), PlayerTextDrawHide(playerid, DMV2), DisableRemoteVehicleCollisions(playerid, 0);
  13. DisablePlayerRaceCheckpoint(playerid);
  14. }
  15. if(examCP[playerid] == 0) stop examtimerrr[playerid];
  16. return 1;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement