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
#2
This topic should help alot of people man, nice!
Reply
#3
Yeah, nice guide man! I'm gonna learn this now.  8)
Reply
#4
Thanks :p
Reply
#5
(07-28-2010, 07:58 AM)Matthias link Wrote: Thanks :p

*Bump*

I cant host server.. i can see my hosted one in List if i add "LOCALHOST:7777"

But not when i replace Localhost with ip.... :/ how to fix it? :(
Reply
#6
You should probably open your 7777 port on your router  ;)
Reply
#7
Hey,

To open a port, click this link: http://www.portacmak.com/
(the website is turkish.. I will try to help you guys with some pics)

Step 1:

[Image: 344ur8j.png]

1: Choose "PC Oyun (PC Game)"
2: Clear enough.
3:  :/

Step 2:

[Image: mbo7rk.png]

Clear enough.

Step 3:

[Image: 1zg49hz.png]

To the adress box, type "192.168.1.1", and you will need to write your password and username. If you didn't change it, type "admin" and "admin". Then you will be in.

Match the pictures and click what that site marked into the pics, gut luck.

LR
Reply
#8
(09-12-2011, 08:13 PM)LasTRace link Wrote: Hey,

To open a port, click this link: http://www.portacmak.com/
(the website is turkish.. I will try to help you guys with some pics)

Step 1:

[Image: 344ur8j.png]

1: Choose "PC Oyun (PC Game)"
2: Clear enough.
3:  :/

Step 2:

[Image: mbo7rk.png]

Clear enough.

Step 3:

[Image: 1zg49hz.png]

To the adress box, type "192.168.1.1", and you will need to write your password and username. If you didn't change it, type "admin" and "admin". Then you will be in.

Match the pictures and click what that site marked into the pics, gut luck.

LR

my Model isnt there :P xD
Reply
#9
i have made a server script and i dont know how to check it plz help

plz plz plz plz plz plz plz plz
Reply
#10
1. Follow the instructions
2. ???
3. PROFIT
Reply