21.01.2012, 03:05
I don't know, but specially for my server, I want OnVehicleSpawn to be called with CreateVehicle, so I just do this
if you use 0.3c & vehicle params in OnVehicleSpawn do
pawn Код:
stock CreateVehicleEx(vehicletype, Float:x, Float:y, Float:z, Float:rotation, color1, color2, respawn_delay)
{
new id = CreateVehicle(vehicletype, Float:x, Float:y, Float:z, Float:rotation, color1, color2, respawn_delay);
if(!Iter_Contains(Vehicles, id))
{
Iter_Add(Vehicles, id);
}
CallRemoteFunction("OnVehicleSpawn", "i", id);
return id;
}
#define CreateVehicle CreateVehicleEx
pawn Код:
SetTimerEx("OnVehicleSpawn", 5, false, "i", id);
