Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- else if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 515 && InJobS[playerid][Trucker] != 1)
- {
- if(pTeam[playerid] != NO_GANG)
- {
- if(pTeam[playerid])
- {
- gTeamCount[pTeam[playerid]]--;
- UpdateTeamLabel(pTeam[playerid]);
- }
- pTeam[playerid] = NO_GANG;
- format(PlayerColor[playerid][0], 16, "0xFFFFFFFF");
- format(PlayerColor[playerid][1], 16, "FFFFFF");
- ChangePlayerColor(playerid);
- for(new i; i < sizeof(g_Turf); i++) {
- GangZoneHideForPlayer(playerid, g_Turf[i][turfId]);
- TextDrawHideForPlayer(playerid, CountDownAttack[i]);
- }
- }
- new randomLocation2 = random(sizeof(TrailerLocations));
- TrailerT[playerid] = randomLocation2;
- InJobS[playerid][Trucker] = 1;
- ShowInfoBox(playerid, 0x00000088, 5, "Stand on the checkpoint to attach the trailer");
- TrailerCP[playerid] = CreateDynamicCP(TrailerLocations[randomLocation2][0], TrailerLocations[randomLocation2][1], TrailerLocations[randomLocation2][2], 5.0, 0, 0, playerid, 10000000.0);
- TrailerCP[playerid] = -1;
- }
- if(checkpointid == TrailerCP[playerid])
- {
- if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 515)
- {
- if(InJobS[playerid][Trucker] == 1)
- {
- TogglePlayerControllable(playerid, 0);
- LoadingTrailer[playerid] = SetTimerEx("LoadingT", 5000 , 0, "d", playerid);
- GameTextForPlayer(playerid, "~g~Loading The Trailer Please wait!!", 5000, 5);
- }
- }
- }
- public LoadingT(playerid)
- {
- new id = TruckT[playerid];
- DestroyDynamicCP(TrailerCP[playerid]);
- TruckerCP[playerid] = CreateDynamicCP(TruckerLocations[id][0], TruckerLocations[id][1], TruckerLocations[id][2], 1.0, 0, 0, playerid, 10000000.0);
- TruckerCP[playerid] = -1;
- TruckTime[playerid] = 5*10;
- TruckTimer[playerid] = SetTimerEx("TrailerDelivery", 1000 , true, "i",playerid);
- AttachTrailerToVehicle(403,515);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement