Server Start BUG
#3

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
The name of OnVehicleSpawn callback is misleading. It is called when a vehicle re-spawns, not when it is created.

If you want to do stuff when a vehicle is created, hook the functions. An example with CreateVehicle:
Код:
stock HF_CreateVehicle(modelid, Float: x, Float: y, Float: z, Float: angle, color1, color2, respawn_delay, addsiren = 0)
{
    new
        vehicleid = CreateVehicle(modelid, x, y, z, angle, color1, color2, respawn_delay, addsiren);
	    
    Iter_Add(Vehicle, vehicleid);
    SetVehicleHealth(vehicleid, 999.0);
    return vehicleid;
}

#if defined _ALS_CreateVehicle
    #undef CreateVehicle
#else
    #define _ALS_CreateVehicle
#endif

#define CreateVehicle HF_CreateVehicle
Replace the red code with yours.
So What Can I Do when the vehicles with the function AddStaticVehicleEx?
Reply


Messages In This Thread
Server Start BUG - by Kenway - 11.06.2016, 09:03
Re: Server Start BUG - by Konstantinos - 11.06.2016, 09:24
Re: Server Start BUG - by Kenway - 11.06.2016, 09:29
Re: Server Start BUG - by Konstantinos - 11.06.2016, 09:35
Re: Server Start BUG - by Kenway - 11.06.2016, 09:37
Re: Server Start BUG - by Konstantinos - 11.06.2016, 09:41
Re: Server Start BUG - by Kenway - 11.06.2016, 09:41

Forum Jump:


Users browsing this thread: 1 Guest(s)