Vehicle Plate
#9

Quote:
Originally Posted by Dwane
Посмотреть сообщение
Weird.
On vehicle spawn it set the plate and respawn the vehicle id.
There is no reason to remove your cars.
I added it under OnVehicleSpawn, here.

Код:
public OnVehicleSpawn(vehicleid)
{
	VehicleSecurity[vehicleid] = 0;
	new id = GetVehicleID(vehicleid);
	if(IsValidVehicle(id))
	{
		if(VehicleColor[id][0] >= 0 && VehicleColor[id][1] >= 0)
		ChangeVehicleColor(vehicleid, VehicleColor[id][0], VehicleColor[id][1]);
		LinkVehicleToInterior(vehicleid, VehicleInterior[id]);
		SetVehicleVirtualWorld(vehicleid, VehicleWorld[id]);
		for(new i=0; i < sizeof(VehicleMods[]); i++)
		{
			AddVehicleComponent(vehicleid, VehicleMods[id][i]);
		}
		ChangeVehiclePaintjob(vehicleid, VehiclePaintjob[id]);
	}
	return 1;
}
public OnVehicleStreamIn( vehicleid, forplayerid )
{
    new string[ 16 ];
    format( string, sizeof( string ), "LS - %d", vehicleid );
    SetVehicleNumberPlate( vehicleid, string );
    SetVehicleToRespawn( vehicleid );
    return 1;
}
Reply


Messages In This Thread
Vehicle Plate - by DannySnoopy - 27.02.2012, 17:38
Re: Vehicle Plate - by Konstantinos - 27.02.2012, 17:41
Re: Vehicle Plate - by aco_SRBIJA - 27.02.2012, 17:42
Re: Vehicle Plate - by Konstantinos - 27.02.2012, 17:45
Re: Vehicle Plate - by DannySnoopy - 27.02.2012, 17:49
Re: Vehicle Plate - by aco_SRBIJA - 27.02.2012, 17:52
Re: Vehicle Plate - by DannySnoopy - 27.02.2012, 17:56
Re: Vehicle Plate - by Konstantinos - 27.02.2012, 17:57
Re: Vehicle Plate - by DannySnoopy - 27.02.2012, 18:02
Re: Vehicle Plate - by Konstantinos - 27.02.2012, 18:09

Forum Jump:


Users browsing this thread: 1 Guest(s)