Hello There, Guest! Login or Register


SA-MP Server Tutorial/Install Guide
#1
Hello,

I'm making this topic so people who feel like starting with PAWN and their own SA-MP server don't have to start from zero and find stuff theirselves.

Note that this is just a guide explaining the actual server and getting it ready, not a coding tutorial.

Step 1:

Download the SA-MP server from http://sa-mp.com/download.php

[Image: XKoAb.png]

Step 2:

Unzip everything to the folder you want your server files in (this can be anywhere).

[Image: ySvGI.png]

Step 3:

Open up server.cfg in your root SA-MP folder.

Code:
echo Executing Server Config...
lanmode 0
rcon_password changeme
maxplayers 50
port 7777
hostname SA-MP 0.3 Server
gamemode0 grandlarc 1
filterscripts base gl_actions gl_property gl_realtime
announce 0
query 1
weburl [url=http://www.sa-mp.com]www.sa-mp.com[/url]
maxnpc 0
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000

The only line you _really_ have to change is the rcon_password line. Change it to whatever you want as server RCON pass. rcon_password matthiasftw for example.

The hostname is the display name in the SA-MP client, the filterscripts line is every filterscript it tries to load from your /filterscripts folder.

The gamemode0 line is the gamemode it tries to load when starting the SA-MP server. I personally suggest changing this to gamemode0 lvdm, because this gamemode is more clean, and it's easier to edit stuff yourself there.

Step 4

Start samp-server.exe in your root server folder. If it doesn't stay open, check server_logs.txt and search for an error when starting the server. If it remains open, you're running your first SA-MP server!

[Image: diHQU.png]

Step 5

As for joining the server, add 127.0.0.1 or localhost to your SA-MP client as a new favorite (do not close the black cmd window!), and if everything went good, you should now be able to see your own SA-MP server.

[Image: NcR1k.png]

----

As for the coding of the server: you're running lvdm, so if you want to change something, open lvdm.pwn in gamemodes/ and press F5 to compile it, if it's succesful, you get a new lvdm.amx to run.

Scripting resources

http://wiki.sa-mp.com/ - Scripting resources and tutorials
http://forum.sa-mp.com/ - Place where you can request help.
#sa-mp.scripting on irc.gtanet.com - Scripting related help.

Hope this was useful,

Matthias
Reply


Messages In This Thread
SA-MP Server Tutorial/Install Guide - by Matthias - 07-28-2010, 07:17 AM
Re: SA-MP Server Tutorial/Install Guide - by Kase - 09-12-2011, 07:36 PM
Re: SA-MP Server Tutorial/Install Guide - by Kase - 04-04-2012, 04:10 PM