[help] DetachTrailerFromVehicle
#1

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

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;
    }
-Regards,
Tony
Reply


Messages In This Thread
[help] DetachTrailerFromVehicle - by tony_fitto - 03.08.2012, 06:55
Re: [help] DetachTrailerFromVehicle - by Cjgogo - 03.08.2012, 07:00
Re: [help] DetachTrailerFromVehicle - by tony_fitto - 03.08.2012, 07:04
Re: [help] DetachTrailerFromVehicle - by [MM]RoXoR[FS] - 03.08.2012, 07:07

Forum Jump:


Users browsing this thread: 1 Guest(s)