Advertisement
Guest User

Untitled

a guest
Nov 12th, 2019
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.00 KB | None | 0 0
  1. else if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 515 && InJobS[playerid][Trucker] != 1)
  2. {
  3. if(pTeam[playerid] != NO_GANG)
  4. {
  5. if(pTeam[playerid])
  6. {
  7. gTeamCount[pTeam[playerid]]--;
  8. UpdateTeamLabel(pTeam[playerid]);
  9. }
  10. pTeam[playerid] = NO_GANG;
  11. format(PlayerColor[playerid][0], 16, "0xFFFFFFFF");
  12. format(PlayerColor[playerid][1], 16, "FFFFFF");
  13.  
  14. ChangePlayerColor(playerid);
  15.  
  16. for(new i; i < sizeof(g_Turf); i++) {
  17.  
  18. GangZoneHideForPlayer(playerid, g_Turf[i][turfId]);
  19. TextDrawHideForPlayer(playerid, CountDownAttack[i]);
  20. }
  21. }
  22. new randomLocation2 = random(sizeof(TrailerLocations));
  23. TrailerT[playerid] = randomLocation2;
  24. InJobS[playerid][Trucker] = 1;
  25. ShowInfoBox(playerid, 0x00000088, 5, "Stand on the checkpoint to attach the trailer");
  26. TrailerCP[playerid] = CreateDynamicCP(TrailerLocations[randomLocation2][0], TrailerLocations[randomLocation2][1], TrailerLocations[randomLocation2][2], 5.0, 0, 0, playerid, 10000000.0);
  27. TrailerCP[playerid] = -1;
  28. }
  29.  
  30.  
  31. if(checkpointid == TrailerCP[playerid])
  32. {
  33. if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 515)
  34. {
  35. if(InJobS[playerid][Trucker] == 1)
  36. {
  37. TogglePlayerControllable(playerid, 0);
  38. LoadingTrailer[playerid] = SetTimerEx("LoadingT", 5000 , 0, "d", playerid);
  39. GameTextForPlayer(playerid, "~g~Loading The Trailer Please wait!!", 5000, 5);
  40. }
  41. }
  42. }
  43.  
  44.  
  45. public LoadingT(playerid)
  46. {
  47. new id = TruckT[playerid];
  48. DestroyDynamicCP(TrailerCP[playerid]);
  49. TruckerCP[playerid] = CreateDynamicCP(TruckerLocations[id][0], TruckerLocations[id][1], TruckerLocations[id][2], 1.0, 0, 0, playerid, 10000000.0);
  50. TruckerCP[playerid] = -1;
  51. TruckTime[playerid] = 5*10;
  52. TruckTimer[playerid] = SetTimerEx("TrailerDelivery", 1000 , true, "i",playerid);
  53. AttachTrailerToVehicle(403,515);
  54. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement