09.06.2017, 20:45
You need to use else if statements or use returns. The IsTrailerAttachedToVehicle function also uses vehicle IDs, not vehicle models. Example:
Or method 2:
pawn Код:
if(IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid))
{
// put code here
}
else SendClientMessage(playerid, -1, "You do not have a trailer attached!");
pawn Код:
if(IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid))
{
// put code here
return 1;
}
SendClientMessage(playerid, -1, "You do not have a trailer attached.");
return 1;
}

