System Trucking
#1

How to make such a system? Semi-trailer with the inscription "Point: Los Santos Hospital" and when I have a truck and connect a semi-trailer it pops up a dialogue wants to transport to the hospital. I would like to ask for an example. Two trailers and two checkpoints
https://imgur.com/a/krpZpIC
Reply
#2

https://sampforum.blast.hk/showthread.php?tid=646048
Reply
#3

Thanks for the script. Will be usefull.
I wanted such a script that there are two semi-trailers and there is a 3d text in them, for example: Point: Los Santos Hospital and Point: Bar Dillimore. How do I have a truck and I want to choose a semi-trailer, eg. Point: Bar Dillimore, I connect a semi-trailer, it pops up a dialogue. Do you want to take a transport to Bar Dillimore if yes this is the checkpoint where I have to unload.
Reply
#4

Does anyone know? I want to use IsTrailerAttachedToVehicle and I want to make a dialogue without spam after connecting the trailer. For each semi-trailer create a dialog msgbox Point, money and checkpoint. https://imgur.com/a/krpZpIC
Reply
#5

Help !
Reply
#6

After connecting the semi-trailer, spam messages start. How to solve?
Код:
public OnPlayerUpdate(playerid)
{
    new vID = GetPlayerVehicleID(playerid); 
    if(GetVehicleModel(vID)== 403 || GetVehicleModel(vID)== 515 || GetVehicleModel(vID) == 514)
    {
         if(IsTrailerAttachedToVehicle(vID))
         {
              SendClientMessage(playerid, -1, "Test...");
         }
    }
    return 1;
}
Reply
#7

I want to give a mission for each trailer but I do not know how.
Код:
public OnPlayerUpdate(playerid)
{
              new vID = GetPlayerVehicleID(playerid); 
	if(GetVehicleModel(vID)== 403 || GetVehicleModel(vID)== 515 || GetVehicleModel(vID) == 514)
	{
		if(IsTrailerAttachedToVehicle(vID))
	{
			ShowPlayerDialog(playerid, DIALOG_MISSIONS_1, DIALOG_STYLE_MSGBOX, "INFO", "Point: Los Santos Hospital\nStatus: Legal\nPrize: 5000 $", "Yes", "No");

			ShowPlayerDialog(playerid, DIALOG_MISSIONS_2, DIALOG_STYLE_MSGBOX, "INFO", "Point: San Fierro Shop\nStatus: Legal\nPrize: 7500 $", "Yes", "No");
		}
	}
	return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	if(dialogid == DIALOG_MISSIONS_1)
	{
		if(response == 1)
		{
			SetPlayerCheckpoint(playerid, Unloading_LS, 5);
			SendClientMessage(playerid, COLOR_GREY, "Drive to the place marked on the map.");
			cp_missions1[playerid]++;
		}
		else
		{
			SendClientMessage(playerid, COLOR_WHITE, "{999999}Canceled");
		}
		return 1;
	}
	if(dialogid == DIALOG_MISSIONS_2)
	{
		if(response == 1)
		{
			SetPlayerCheckpoint(playerid, Unloading_SF, 5);
			SendClientMessage(playerid, COLOR_GREY, "Drive to the place marked on the map.");
			cp_missions2[playerid]++;
		}
		else
		{
			SendClientMessage(playerid, COLOR_WHITE, "{999999}Canceled");
		}
		return 1;
	}
	return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
	DisablePlayerCheckpoint(playerid);
	switch(cp_missions1[playerid])
	{
		case 1:
		{
		    DisablePlayerCheckpoint(playerid);
			TogglePlayerControllable(playerid, 0);
			SendClientMessage(playerid, COLOR_WHITE, "{FF0000}Unloading...");
			SetTimerEx("unloading", 10000, 0, "i", playerid);
		    cp_missions1[playerid] = 0;
			GivePlayerMoney(playerid, 5000);
			SendClientMessage(playerid, COLOR_WHITE, "You get $ 5,000 for unloading!");
		}
	}
	switch(cp_missions2[playerid])
	{
		case 1:
		{
			DisablePlayerCheckpoint(playerid);
			TogglePlayerControllable(playerid, 0);
			SendClientMessage(playerid, COLOR_WHITE, "{FF0000}Unloading...");
			SetTimerEx("unloading", 10000, 0, "i", playerid);
		    cp_missions2[playerid] = 0;
			GivePlayerMoney(playerid, 7500);
			SendClientMessage(playerid, COLOR_WHITE, "You get $ 7,500 for unloading!");
		}
	}
	return 1;
}
Reply
#8

How to make system?
https://imgur.com/a/krpZpIC
Reply
#9

Quote:
Originally Posted by KamilPolska
Посмотреть сообщение
How to make system?
https://imgur.com/a/krpZpIC
How to make such a system?
There is a trailer with 3d text Point: Los Santos Hospital. I have a truck and connect the trailer. After connecting the trailer, dialog msgbox pops up for me. If I accept the mission, it shows me a checkpoint where to go. When I got to the checkpoint with the trailer it gets money.
Reply
#10

@REF
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)