SA-MP Forums Archive
where do i add AddStaticVehicle? - 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: where do i add AddStaticVehicle? (/showthread.php?tid=84417)



where do i add AddStaticVehicle? - Tommy_Mandaz - 30.06.2009

I have then AddStaticVehicle codes in savedpositions and I copied but where do I add in the gamemode?


Re: where do i add AddStaticVehicle? - Lenny_Carlson - 30.06.2009

Open the script with Pawno and add the line practically anywhere.


Re: where do i add AddStaticVehicle? - dice7 - 30.06.2009

Add them under OnGameModeInit


Re: where do i add AddStaticVehicle? - refshal - 30.06.2009

Quote:
Originally Posted by Lenny_Carlson
Open the script with Pawno and add the line practically anywhere.
That would give an Error. :P
If you want to spawn Vehicles with Commands, then use CreateVehicle.


Re: where do i add AddStaticVehicle? - kaisersouse - 30.06.2009

Quote:
Originally Posted by Lenny_Carlson
Open the script with Pawno and add the line practically anywhere.
Do not give advice like this.


You have to add them inside of a function or callback. Not just "anywhere". typically they are done in ongamemodeinit.


Re: where do i add AddStaticVehicle? - Tommy_Mandaz - 30.06.2009

Quote:
Originally Posted by kaisersouse
Quote:
Originally Posted by Lenny_Carlson
Open the script with Pawno and add the line practically anywhere.
Do not give advice like this.


You have to add them inside of a function or callback. Not just "anywhere". typically they are done in ongamemodeinit.
oh my god thanks so much it works XD.
Also please help me with this how can I add a interior to a building?


Re: where do i add AddStaticVehicle? - iLinx - 30.06.2009

well
your going to have to make something like a pickup first ,
like a house icon thing
and then when they enter the house icon,
it would set their interior and position tot he interior you want.
i would use a virtual world too so they dont collide with each other ^^