Jump to content
  • 0

pomoc Spawnovani zamknutych aut


Guest Thomas.

Dotaz

12 odpovědí na tuto otázku

Recommended Posts

  • 0

Nie, nastavíš to na jedno vozidlo. Nič na tom není ťažké.

new engine,lights,alarm,doors,boonet,boot,objective;
GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(vehicleid, engine, lights, alarm, 1, bonnet, boot, objective);

Krásne to máš takto aj v tej ukážke, ktorá je na wiki. :)

Link to comment
Share on other sites

  • 0

new auto;

new engine,lights,alarm,doors,boonet,boot,objective;
GetVehicleParamsEx(auto, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(auto, engine, lights, alarm, 1, bonnet, boot, objective);

 

auto = CreateVehicle(,x,x,x,x);

 

takhle?

Link to comment
Share on other sites

  • 0

new auto = CreateVehicle(,x,x,x,x);
new engine,lights,alarm,doors,boonet,boot,objective;
GetVehicleParamsEx(auto, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(auto, engine, lights, alarm, 1, bonnet, boot, objective);
Link to comment
Share on other sites

  • 0

Na konec OnGameModeInit()

for(new i = 0; i < MAX_VEHICLES; i++)
{
if(i != INVALID_VEHICLE_ID)
{
new engine, lights, alarm, doors, bonnet, boot, objective;
GetVehicleParamsEx(i, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(i, engine, lights, alarm, 1, bonnet, boot, objective);
}
}
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...