SA-MP Forums Archive
How can I make a "racing" gamemode? - 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)
+--- Thread: How can I make a "racing" gamemode? (/showthread.php?tid=603744)



How can I make a "racing" gamemode? - Lucario448 - 27.03.2016

Hello there. I'm new on this; however, I've already know the basics of the programming language.

The thing is: how can I get started in creating a "racing" gamemode? Not from scratch if possible; instead, based on how Grand Larceny gamemode handles incoming players.

This is what I have in mind right now:
Now there are two things that I'm missing: the checkpoints' coordinates (I'll take care of this part), and what to do if the vehicle (a car) rollovers and sets on fire, because I still have no idea how to manage the disqualifications in a race.

Hope you could understand me since this is my very first post, and I will appreciate any help/idea/suggestion about how to get started.

Best regards.


Re: How can I make a "racing" gamemode? - SickAttack - 27.03.2016

"how to get started"
  1. Download the SA-MP server package.
  2. Extract the package.
  3. Enter the folder the package is in if you aren't already in it.
  4. Open the file "server.cfg".
  5. Change "rcon_password" to any password you want.
  6. Remove the line of "filterscripts".
  7. Change the text after "gamemode0" to "racing".
  8. Go back to the main directory. Double click on the folder called "pawno" and execute pawno.exe.
  9. Inside the folder called "pawno", look for "new.pwn". Highlight it, press CTRL + C. Go to the main directory, go inside the folder called "gamemodes" and press CTRL + V.
  10. Change the name of the file you just pasted inside the folder "gamemodes" to "racing.pwn".
  11. Go back to the window that shows the IDE (pawno.exe) and click on open file.
  12. Find "racing.pwn" and open it.
  13. Now start scripting your racing gamemode!
  14. And when you want to compile and test out your awesome server press F5!
  15. Run "samp-server.exe" to start the server.
  16. Open the SA-MP client and click on add a new server.
  17. Type "localhost" and press ENTER.
  18. Connect to your server and have fun!
You have now officially started creating your racing gamemode. Congratulations!

And by the way, the things you are asking tips/ideas/suggestions/etc. on can't just be explained with words whatsoever. This section is for "help on your coding". Requests go here: https://sampforum.blast.hk/showthread.php?tid=447813


Re: How can I make a "racing" gamemode? - Lucario448 - 27.03.2016

Whoops. Anyway, it's my first time, so making any sort of mistake is something that I should expect.
All right, thank you for correcting me!