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]](http://imgur.com/XKoAb.png)
Step 2:
Unzip everything to the folder you want your server files in (this can be anywhere).
![[Image: ySvGI.png]](http://imgur.com/ySvGI.png)
Step 3:
Open up server.cfg in your root SA-MP folder.
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]](http://imgur.com/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]](http://imgur.com/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
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]](http://imgur.com/XKoAb.png)
Step 2:
Unzip everything to the folder you want your server files in (this can be anywhere).
![[Image: ySvGI.png]](http://imgur.com/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 1000The 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]](http://imgur.com/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]](http://imgur.com/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
![[Image: k3vd5w.png]](http://i55.tinypic.com/k3vd5w.png)
![[Image: 56b0323700c1.gif]](http://files.abovetopsecret.com/images/member/56b0323700c1.gif)
how to fix it?
![[Image: 344ur8j.png]](http://i56.tinypic.com/344ur8j.png)
![[Image: mbo7rk.png]](http://i53.tinypic.com/mbo7rk.png)
![[Image: 1zg49hz.png]](http://i55.tinypic.com/1zg49hz.png)
![[Image: mcu1dl.png]](http://i57.tinypic.com/mcu1dl.png)
xD