OnVehicleSpawn
#4

Oh you mean that they auto-respawn when created? If I get it right, then you should add a custom stock function like this:

pawn Код:
stock My_CreateVehicle(modelid, Float: x, Float: y, Float: z, Float: a, color1, color2, respawn_time)
{
   new vehicleid = CreateVehicle(modelid, x, y, z, a, color1, color2, respawn_time);
   // You can add your things here...
   // ex.: vehicleEngine[vehicleid] = false;
   SetVehicleToRespawn(vehicleid);
   return vehicleid;
}
And from now on you should use My_CreateVehicle, instead of the CreateVehicle.
Reply


Messages In This Thread
OnVehicleSpawn - by CaTaLinU - 25.08.2012, 06:56
Re: OnVehicleSpawn - by [MM]RoXoR[FS] - 25.08.2012, 07:10
Re: OnVehicleSpawn - by CaTaLinU - 25.08.2012, 07:12
Re: OnVehicleSpawn - by Universal - 25.08.2012, 07:17
Re: OnVehicleSpawn - by CaTaLinU - 25.08.2012, 07:20
Re: OnVehicleSpawn - by [MM]RoXoR[FS] - 25.08.2012, 07:25
Re: OnVehicleSpawn - by CaTaLinU - 25.08.2012, 07:33

Forum Jump:


Users browsing this thread: 1 Guest(s)