Tow question
#3

pawn Код:
COMMAND:tow(playerid,params[])
{
    #pragma unused params

    if(StateDriver[playerid])
    {
        new vehicleid=GetPlayerVehicleID(playerid);
        if(IsTrailerAttachedToVehicle(vehicleid))
            DetachTrailerFromVehicle(vehicleid);
        else
        {
            new trailerid=GetClosestVehicle(playerid,vehicleid);
            if(trailerid!=vehicleid && IsPlayerInRangeOfVehicle(playerid,10.0,trailerid))
                AttachTrailerToVehicle(trailerid,vehicleid);
        }
    }
    else
               SendClientMessage(playerid,0xAA3333AA,"You must be in vehicle to Tow.");
    return 1;
}
Reply


Messages In This Thread
Tow question - by Tanush123 - 12.05.2013, 04:36
Re: Tow question - by freddy smyth - 12.05.2013, 07:37
Re: Tow question - by jotan. - 12.05.2013, 08:16
Re: Tow question - by Tanush123 - 12.05.2013, 12:07
Re: Tow question - by freddy smyth - 12.05.2013, 12:12
AW: Tow question - by ulbi1990 - 12.05.2013, 13:44
Re: Tow question - by RajatPawar - 12.05.2013, 14:52
Re: Tow question - by MP2 - 12.05.2013, 22:48
Re: Tow question - by Tanush123 - 12.05.2013, 22:55
Re: Tow question - by MP2 - 13.05.2013, 00:43

Forum Jump:


Users browsing this thread: 1 Guest(s)