27.02.2012, 18:02
Quote:
Weird.
On vehicle spawn it set the plate and respawn the vehicle id. There is no reason to remove your cars. |
Код:
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; }