#1

Код:
else if(PlayerInfo[playerid][pJob] == 8)
		{
			new vehj = GetPlayerVehicleID(playerid);
			if(!IsPlayerInAnyVehicle(playerid) && vehj != 525) return SS(playerid, COLOR_LIGHTGREEN3, "Nu esti in masina de mecanici!", "You are not in a tow truck!");
		    if(IsTrailerAttachedToVehicle(vehj)) return DetachTrailerFromVehicle(vehj),DisablePlayerCheckpoint(playerid),gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE, SCM(playerid, -1, "test");        
		    new trailer = GetClosestVehicle(playerid, 0);
		    if(!CanBeTowed(trailer)) return SCM(playerid, -1, "Nu poti tracta acest tip de vehicul."); 
		    if(IsAnOwnableCar(trailer)) return SCM(playerid,COLOR_WHITE,"Nu ai voie sa tractezi masini personale."); 
		    if(TowAcc[playerid] == 1) return SendClientMessage(playerid, COLOR_GREY, "Nu poti tracta atat de repede o masina, trebuie sa astepti 2 minute.");           
		    AttachTrailerToVehicle(trailer, vehj); 
		    new rand = random(sizeof(TowCarCk)); 
		    SetPlayerCheckpoint(playerid, TowCarCk[rand][0],TowCarCk[rand][1],TowCarCk[rand][2], 6); 
		    CP[playerid] = 34; 
		}
Not work,not tow any vehicle.
Reply


Messages In This Thread
/tow - by Longover - 28.02.2019, 11:49
Re: /tow - by Kaliber - 28.02.2019, 12:12

Forum Jump:


Users browsing this thread: 1 Guest(s)