* Note: It is very important to press F5 after editing or creating a script! This will update the AMX file and all changes will be saved ("if there is not mistake", but in special cases may happen programming mistakes that will not figure in the compilation and will affect your server). * Note: Every code must have opening and closing braces to start and end the function (all codes). You can also read more information about server.cfg configuration.Ĭonfiguration example (this guide is based on this configuration): Maxnpc 0 (number of NPCs that can join your server) ![]() Stream_rate 1000 (we will not explain this in this tutorial, advanced) Stream_distance 300.0 (we will not explain this in this tutorial, advanced) Weapon_rate 40 (we will not explain this in this tutorial, advanced) Incar_rate 40 (we will not explain this in this tutorial, advanced) Onfoot_rate 40 (we will not explain this in this tutorial, advanced) Query 1 (information of the server visible "1", "0" will disable your server information to other players)Ĭhatlogging 0 (save chat logs in server_log.txt "1", not saving it "0") Gamemode0 grandlarc1 (name of the gamemode you will use, you can add a gamemode if you create/download one)įilterscripts gl_actions gl_realtime gl_property gl_mapicon ls_mall ls_elevator attachments skinchanger vspawner (filterscripts that will be used)Īnnounce 0 (server visible on Masterlist "1" to show it and "0" to hide it) Hostname SA-MP 0.3 server (the name of your server) Maxplayers 50 (amount of slots available for players) Rcon_password changeme (the rcon password you will use "/Rcon login" you must edit this) Samp-server.exe: we start our server with this.įirst we must open the file "server.cfg" and edit our server configuration. Samp-npc.exe: this will allow us to use NPCs. Gamemodes: contains basic gamemodes and we must place our gamemode if we create one.įilterscripts: contains additional codes apart from your gamemode, not included in it and can be called by using rcon commands.Īnnounce.exe: this will allow us to show our server on Masterlist. ![]() Include: this contains codes that can be included inside your script. Npcmodes: this contains information about NPCs (script & rec) this guide will not give detailed information about NPCs as they are more advanced. We can also add our own includes and add them to our script. Pawno: contains the basic program to start scripting in SA-MP also has the "include" folder that contains basic includes to start our script (SA-MP basic functions). This guide will not give detailed information about plugins as they are more advanced. Plugins: this folder contains additional codes that give more options in SA-MP programming, usually programmed in other languages. Scriptfiles: this folder contains information called inside your script or logs created by your script, usually used as a database. Text files that include terms & a configuration guide (samp-license.txt & server-readme.txt respectively). Scriptfiles, plugins, pawno, npcmodes, include, gamemodes, filterscripts, announce.exe, samp-npc.exe, samp-server.exe & server.cfg Password style (allows players to input text into the dialog without revealing it)įirst we must download the SA-MP Windows Server from Īfter doing this we will open the files contained in the download and after decompressing it, we will see our server files & folders. List style (menu, show the player a list of options) Input style (allows players to input text into the dialog) Message box style (sends a message to the player) ShowPlayerDialog(playerid, dialogid, style, caption, info, button1, button2) Public OnPlayerDisconnect(playerid, reason) ![]() Public OnPlayerRequestClass(playerid, classid) * Note: this guide is based on the one I made for SA-MP forum in the first months of 2015 if you read this later, some elements may have changed or updated. It is created specially for new scripters and people who want to learn SA-MP Pawn scripting, it explains just basic scripting and how to start. This guide is based on other tutorials and on my own experience.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |