03.08.2012, 06:55
Hey guys,
I have some trubble with this command I just made real fast.
Cant really figure out what the problem is, but some how it doesn't deattach the trailr :S
-Regards,
Tony
I have some trubble with this command I just made real fast.
Cant really figure out what the problem is, but some how it doesn't deattach the trailr :S
pawn Код:
if(strcmp(cmd, "/releasetrailer", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new tmpcar = GetPlayerVehicleID(playerid);
if(IsTrailerAttachedToVehicle(tmpcar))
{
DetachTrailerFromVehicle(GetVehicleTrailer(GetPlayerVehicleID(playerid)));
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " You'r not having any Trailer attached to your Truck.");
return 1;
}
}
return 1;
}
Tony