Help with the trailer
#1

Greetings, I would like to know how I could do so that when a trailer is attached to a trailer, try to do this but it does not work:

Code:
forward OnPlayerAttachTrailer(playerid, vehicleid, trailerid);

public OnPlayerAttachTrailer(playerid, vehicleid, trailerid)
{
	if(!IsTrailerAttachedToVehicle(vehicleid))
	{
	}
	if(pInfo[playerid][pLevel] > 2)
 	{
			if(GetPVarInt(playerid, "TRUCK_MERCH") == 1)
			{
				new Tipe[20];
				switch(GetVehicleModel(trailerid))
				{
			    	case 435: Tipe = "Cereal";
				}
				SetPlayerCheckpoint(playerid, -2457.8601,2291.7852,5.0990, 7);
				SetPVarInt(playerid, "TRUCK_MERCH", 2);
				DeletePVar(playerid, "TRUCK_GO");
			        c_clvl2_e1_b = false;
				SendClientMessage(playerid, -1, "Go to the checkpoint");
				RemovePlayerMapIcon(playerid, CEREAL_DEPOSIT);
   				SetPVarInt(playerid, "TRUCK_GOING", 2);
			}
	}
	return 1;
}
Reply


Messages In This Thread
Help with the trailer - by zZzTGTzZz - 16.11.2018, 18:15
Re: Help with the trailer - by Mencent - 16.11.2018, 20:46
Re: Help with the trailer - by KinderClans - 16.11.2018, 20:48
Re: Help with the trailer - by zZzTGTzZz - 16.11.2018, 21:08
Re: Help with the trailer - by Mencent - 17.11.2018, 05:45
Re: Help with the trailer - by zZzTGTzZz - 17.11.2018, 13:21

Forum Jump:


Users browsing this thread: 2 Guest(s)