Advertisement
Banditul

Untitled

Feb 8th, 2019
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. else if(strcmp(x_job,"Uber",true) == 0)
  2. {
  3. if(UberCall[playerid] == playerid)
  4. {
  5. if(TransportDuty[playerid] == 1 && UberCallTime[playerid] > 0)
  6. return SCM(playerid,COLOR_WHITE,"{FFB870}You are not the current caller.");
  7.  
  8. UberAccepted[playerid] = 999;
  9. SCM(playerid,COLOR_LIGHTBLUE,"You have canceled the call.");
  10. UberCallTime[playerid] = 0;
  11. DisablePlayerCheckpoint(playerid);
  12. UberCall[playerid] = -1;
  13.  
  14.  
  15. if(IsPlayerConnected(UberCall[playerid]))
  16. {
  17. if(UberCall[playerid] == playerid)
  18. {
  19. UberCall[playerid] = -1;
  20. }
  21. }
  22.  
  23. foreach(Player,i)
  24. {
  25. if(UberAccepted[i] < 999)
  26. {
  27. if(UberAccepted[i] == playerid)
  28. {
  29. UberAccepted[i] = 999;
  30. SCM(i,COLOR_LIGHTBLUE,"Uber caller canceled the call.");
  31. UberCallTime[i] = 0;
  32. DisablePlayerCheckpoint(i);
  33. }
  34. }
  35. }
  36. }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement