23.06.2012, 18:02
OnVehicleSpawn is misleading. It's only called when the vehicle REspawns. If you want the OnVehicleCreate function, you could use the include I made for that and a lot of other functions: https://sampforum.blast.hk/showthread.php?tid=348044.
Usage:
Also, you shouldn't delete the code in OnVehicleSpawn because that'll make it lock when it respawns aswell.
Usage:
pawn Код:
public OnVehicleCreate(vehicleid)
{
// your code here
return 1;
}