Spawning Vehicles...
#1

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?!??!?!?
Reply
#2

Post this here

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

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
Reply
#4

Useful information thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)