SA-MP Forums Archive
Vehicle Are Not Spawn - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Vehicle Are Not Spawn (/showthread.php?tid=99661)



Vehicle Are Not Spawn - _TeRmiNaToR_ - 29.09.2009

When I reloading the FS are spawn vehicle, but when I dont reloading FS, are not spawn vehicle.
My code:

pawn Код:
new ModCar[1];
pawn Код:
ModCar[0] = CreateVehicle(562, 2505, -1670, 13, 0, 6, 1, 50000);
pawn Код:
public OnVehicleStreamIn(vehicleid, forplayerid)
{
    if(vehicleid == ModCar[0])
    {
        AddVehicleComponent(ModCar[0], 1034);
        AddVehicleComponent(ModCar[0], 1035);
        AddVehicleComponent(ModCar[0], 1036);
        AddVehicleComponent(ModCar[0], 1037);
        AddVehicleComponent(ModCar[0], 1038);
        AddVehicleComponent(ModCar[0], 1039);
        AddVehicleComponent(ModCar[0], 1040);
        AddVehicleComponent(ModCar[0], 1041);
        AddVehicleComponent(ModCar[0], 1010); // 1034-1041
        ChangeVehiclePaintjob(ModCar[0], 2);
        for(new i; i != MAX_PLAYERS; i++)
        {
      SetVehicleParamsForPlayer(ModCar[0], i, 0, 1);
        }
    }
}
Not: I use this in NPC filterscript.


Re: Vehicle Are Not Spawn - dugi - 29.09.2009

There is no need to re-apply car mods or change paintjobs in OnVehicleStreamIn as it's done by the server.


Re: Vehicle Are Not Spawn - _TeRmiNaToR_ - 29.09.2009

Quote:
Originally Posted by dugi
There is no need to re-apply car mods in OnVehicleStreamIn as it's done by the server.
What must I do?


Re: Vehicle Are Not Spawn - d0 - 29.09.2009

Quote:
Originally Posted by dugi
There is no need to re-apply car mods or change paintjobs in OnVehicleStreamIn as it's done by the server.
for quad its buged and it doesnt get readded but my post in the bug topic is gone

Edit:
Quote:
Originally Posted by _TeRmiNaToR_
What must I do?
Quote:

Not: I use this in NPC filterscript.

this functions doesnt work in NPC modes


Re: Vehicle Are Not Spawn - _TeRmiNaToR_ - 29.09.2009

Quote:
Originally Posted by Doerfler
Quote:
Originally Posted by dugi
There is no need to re-apply car mods or change paintjobs in OnVehicleStreamIn as it's done by the server.
for quad its buged and it doesnt get readded but my post in the bug topic is gone

Edit:
Quote:
Originally Posted by _TeRmiNaToR_
What must I do?
Quote:

Not: I use this in NPC filterscript.

this functions doesnt work in NPC modes
No, you could me misunderstanding, I use this in normal FS but I make it for NPCs. in Filterscript folder.