24.04.2018, 14:55
(
Последний раз редактировалось KamilPolska; 24.04.2018 в 17:04.
)
How can I give ID_trailer for a trailer with a mission?
For:
Code:
How can I use? For a trailer with ID_trailer?
For:
Код:
CreateVehicle(591, -2105.3228, -124.2982, 37.2531, 0.0, 1, 1, -1);
Код:
enum MisLocationsEnum
{
ID_trailer,
Status[128],
MissionName[128],
Float:UnloadX,
Float:UnloadY,
Float:UnloadZ,
Pay
}
new MisLocations[TRAILERS][MisLocationsEnum] =
{
{0, "Legal", "Shop SF", -2177.2544, 107.1364, 35.3203, 10000},
{1, "Illegal", "Gun Shop SF", -2273.9893, 1.2645, 35.3203, 5000}
};
Код:
public OnPlayerUpdate(playerid)
{
new vID = GetPlayerVehicleID(playerid);
if(GetVehicleModel(vID)== 403 || GetVehicleModel(vID)== 515 || GetVehicleModel(vID) == 514)
{
if(IsTrailerAttachedToVehicle(vID))
{
ShowPlayerDialog(playerid, /*MISSION_1*/999, DIALOG_STYLE_MSGBOX, "INFO", "Point: Shop SF\nPrize: 5000$", "Yes", "No");
}
else
{
SendClientMessage(playerid, COLOR_RED, "You need a trailer!");
}
}
else
{
SendClientMessage(playerid, COLOR_RED, "You must be in a Truck to perform this!");
}
return 1;
}

