Tow a car.
#1

Hey.

I'm failing to attach someones car to Tow car. The idea is simple, Mechanic attaches someones car to his own truck and then pulls it to where it should be.

Код:
CMD:towcar(playerid, params[])
{
	if(GetVehicleModel(GetPlayerVehicleID(playerid)) != 525) return SendClientMessage(playerid, COLOR_GREY, "You have to be in TowCar to use this command.");
	new TowCar = GetPlayerVehicleID(playerid);
	new CarToBeTowed = GetPlayerVehicleID(params[0]);
	AttachTrailerToVehicle(CarToBeTowed, TowCar);
	return 1;
}
So, what am i doing wrong here?
Reply


Messages In This Thread
Tow a car. - by GuitarMan - 11.10.2015, 20:09
Re: Tow a car. - by Dusan01 - 12.10.2015, 06:35
Re: Tow a car. - by GuitarMan - 12.10.2015, 07:54

Forum Jump:


Users browsing this thread: 1 Guest(s)