18.03.2009, 19:08
ok iv made that but now i have another problem....
if i enter in the respective checkpoint the Trailer is not Destroyed ...
how can i make it to destroy the respective trailer ?
CODE:
i want to destroy my attached trailer ....
if i enter in the respective checkpoint the Trailer is not Destroyed ...
how can i make it to destroy the respective trailer ?
CODE:
pawn Код:
else if(CP[playerid] == 23)
{
if(IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid)))
{
new trailerid = GetVehicleTrailer(playerid);
DestroyVehicle(trailerid);
GivePlayerCash(playerid, 8000);
}
else
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "You don't have a Trailer attached");
return 1;
}
}