SA-MP Forums Archive
gamemode and scriptfiles - 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: gamemode and scriptfiles (/showthread.php?tid=239533)



gamemode and scriptfiles - Rivera - 13.03.2011

Hi all! I want to know the difference between a GM and a scriptfile. AND how can I include a scriptfile into my GM. I have some GM's like MySQL admin, System etc... and I have some scriptfiles named BasicCommands; ProxDetector, etc... pls explain me!!


Re: gamemode and scriptfiles - ricardo178 - 13.03.2011

Ok,

A GM = GameMode, Game mode is the file that have the principal thinks.... A filterscript, is an adictional script, like an admin system, some map...

To add a filterscript, you go into samp.cfg and in filterscript line you add the name of it!

By the way, filterscript and scriptfile is DIFERENT... A Filterscript is a script for example to register/login, the scriptfile, will save your stats, password and this....

It's like: The filterscript is a pena nd the scriptfile a notebook!
Filterscript do something and the scriptfile will save.... it can be used too to save houses, cars, bizzes and more!

Hope you understund By the way you could read some toturials! And Do Wiki toturials!


Re: gamemode and scriptfiles - admantis - 13.03.2011

scriptfiles are resource files that the gamemode has to read to process. i.e: files saved for configuration, player saving files, reading objects from files.

gamemode and filterscripts are you codes written in PAWN that will run the server


Re: gamemode and scriptfiles - ricardo178 - 13.03.2011

Remembering GameMode is the most important... Without Filterscripts you can run server, without GameModfe you cant!


Re: gamemode and scriptfiles - Rivera - 13.03.2011

Okay... umm, let me ask you. I got some files:

MySQL admin system (it's a GM or scriptfile?)
BasicCommands (GM or scriptfile? It has cmds like /me /do /pay etc...)
ProxDetector (local chat... how can I include it and in what folder should I have it)

etc...


Re: gamemode and scriptfiles - admantis - 13.03.2011

all in gamemode script..
scriptfiles are only when script saves a file in there to read it and retrieve data (such as player levels, biz, houses, etc)


Re: gamemode and scriptfiles - Rivera - 13.03.2011

lol... so in server.cfg i have to:

gamemode0 MySQL
gamemode1 BasicCommands
gamemode2 ProxDetector

??


Re: gamemode and scriptfiles - admantis - 13.03.2011

no dude put all your codes in your main gamemode .pwn file, you don't need to add more lines in server.cfg