18.10.2013, 14:59
Hello how can I make when I start my gamemode that then all cars(vehicles) be off I mean on engine and lights I ahev something like that but when I enter it turn on engine and lights? Thanks
for(new i=1;i<MAX_VOZILA;i++)
{
new engine, lights, alarm, doors, bonnet, boot, objective;
GetVehicleParamsEx(i, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(i,0,0,0,0,0,0,0);
}
public OnVehicleSpawn(vehicleid)
{
new engine, lights, alarm, doors, bonnet, boot, objective;
GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(vehicleid,0,0,0,0,0,0,0);
return 1;
}