OnVehicleSpawn
#5

I don't know, but specially for my server, I want OnVehicleSpawn to be called with CreateVehicle, so I just do this

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
if you use 0.3c & vehicle params in OnVehicleSpawn do
pawn Код:
SetTimerEx("OnVehicleSpawn", 5, false, "i", id);
Reply


Messages In This Thread
OnVehicleSpawn - by Scenario - 21.01.2012, 01:09
Re: OnVehicleSpawn - by Ballu Miaa - 21.01.2012, 01:29
Re: OnVehicleSpawn - by Scenario - 21.01.2012, 01:48
Re: OnVehicleSpawn - by Psymetrix - 21.01.2012, 02:10
Re: OnVehicleSpawn - by Kar - 21.01.2012, 03:05
Re: OnVehicleSpawn - by Scenario - 21.01.2012, 04:56
Re: OnVehicleSpawn - by Kar - 22.01.2012, 05:35
Re: OnVehicleSpawn - by Scenario - 22.01.2012, 13:13

Forum Jump:


Users browsing this thread: 1 Guest(s)