[help] DetachTrailerFromVehicle
#2

pawn Код:
if(strcmp(cmd, "/releasetrailer", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            new tmpcar = GetPlayerVehicleID(playerid);
            if(IsTrailerAttachedToVehicle(tmpcar))
            {
                DetachTrailerFromVehicle(tmpcar);
                return 1;
            }
            else
            {
                SendClientMessage(playerid, COLOR_GRAD1, "   You're not having any Trailer attached to your Truck.");
                return 1;
            }
        }
        return 1;
    }
Try it...
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)