SA-MP Forums Archive
Spawning Vehicles... - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: General (https://sampforum.blast.hk/forumdisplay.php?fid=13)
+--- Thread: Spawning Vehicles... (/showthread.php?tid=485079)



Spawning Vehicles... - TheNattyShack - 02.01.2014

i need help on how to spawn a vehicle in the game

public OnGameModeInit()
{
// Add a Hydra to the game with a respawn time of 60 seconds
CreateVehicle(520, 2109.1763, 1503.0453, 32.2887, 82.2873, 0, 1, 60);
return 1;
}

You see i found a source but where do i put this in my SAMP folder?!??!?!?


Re: Spawning Vehicles... - LeGGGeNNdA - 02.01.2014

Post this here

http://forum.sa-mp.com/forumdisplay.php?f=12


Re: Spawning Vehicles... - Vykintas - 02.01.2014

1. You need to open "pawno" folder and open "pawno.exe"
2. Press button new file
3. Find "public OnGameModeInit()"
4. Place your code "CreateVehicle(520, 2109.1763, 1503.0453, 32.2887, 82.2873, 0, 1, 60);" inside "{}" after "public OnGameModeInit()"
5. Save file in "gamemodes" folder
6. Compile
7. Open "server.cfg" in server folder
8. after "gamemode" enter your file name without extension (.pwn)
9. save "server.cfg"
10. run the server


Re: Spawning Vehicles... - Ramon Gonzalez - 06.01.2014

Useful information thanks