SA-MP Forums Archive
Best way to start a new 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: Best way to start a new gamemode (/showthread.php?tid=443530)



Best way to start a new gamemode - Logic - 12.06.2013

I'm currently starting to code a new RolePlay gamemode, My question is.
What's better, writing the whole gamemode in one script or make each system in seperate files and include them into the main gamemode?


Re: Best way to start a new gamemode - PaulDinam - 12.06.2013

I am using includes which is the best, I think :/


Re: Best way to start a new gamemode - [FMJ]PowerSurge - 12.06.2013

I'm not sure about speed, but it's definitely a lot easier to find any functions and even problems if they're all in includes.

It's also much easier to move from everything from its individual include to a gamemode. It's a lot more tedious to remove everything from a GM and make it an include.


Re: Best way to start a new gamemode - FGaming - 12.06.2013

Logic, the best way I would like to start up a server is to begin off with a simple script
https://sampforum.blast.hk/showthread.php?tid=279927 - Roleplay Script.

You can then begin to add more CMD's and ADmin Commands, and some nice Unique feature like.

My personal own "Dynamic Factions" "Dynamic Business", and housing.
I would the begin to add my factions in, like LSPD, FBI ETC.

Then I would begin to add some more features, like "Crate Systems"


Re: Best way to start a new gamemode - feartonyb - 12.06.2013

Make an include for each system. Trust me it's the best way.


Re: Best way to start a new gamemode - Excelâ„¢ - 12.06.2013

Making each system separate is better option cause it will be easier for you to disable those features in game through some coding in the main script. Don't make the separate part as filterscript, Include would be better option so that you can co-relate the includes and the main GM.


Re: Best way to start a new gamemode - Logic - 12.06.2013

Thank you guys, I'll include each system