Vehicle ID
#7

Try this, it's not tested:

Код:
CMD:createveh(playerid, params[])
{
	new vid, col1, col2;
	if(sscanf(params, "iii", vid, col1, col2)) return SendClientMessage(playerid, 0xFFFFFFFF, "Usage: /createveh [Vehicle ID] [Color 1 ID] [Color 2 ID]");
	if(400 < (vid) > 611) return SendClientMessage(playerid, 0xFFFFFFFF, "INVALID VEHICLE ID!");
	else
	{
		new Float:pos[3], car;
		GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
		car = CreateVehicle(vid, pos[0]+1.0, pos[1]+1.0, pos[2], 0.0, col1, col2, 0);
		SetVehicleParamsEx(car, 0, 0, 0, 0, 0, 0, 0);
	}
	return 1;
}
Reply


Messages In This Thread
Vehicle ID - by Sarra - 03.08.2014, 18:18
Re: Vehicle ID - by Stanford - 03.08.2014, 18:21
Re: Vehicle ID - by Sarra - 03.08.2014, 18:27
AW: Vehicle ID - by Stanford - 03.08.2014, 18:33
Re: Vehicle ID - by Sarra - 03.08.2014, 18:38
Re: Vehicle ID - by Stanford - 03.08.2014, 18:39
Re: Vehicle ID - by dirigent00 - 03.08.2014, 18:39
Re: Vehicle ID - by Stanford - 03.08.2014, 18:43
Re: Vehicle ID - by dirigent00 - 03.08.2014, 18:47
Re: Vehicle ID - by Sarra - 03.08.2014, 19:41

Forum Jump:


Users browsing this thread: 2 Guest(s)