30.07.2012, 15:45
(
Last edited by Dredd; 30/07/2012 at 04:36 PM.
)
![](http://i42.servimg.com/u/f42/16/92/79/66/howto_11.png)
![](http://i42.servimg.com/u/f42/16/92/79/66/intro10.png)
- I saw that many people have difficulty with adding maps to their sa-mp server and couldn't find any proper tutorial for this.
- This tutorial is meant for people who don't know how to add maps to their server.
![](http://i42.servimg.com/u/f42/16/92/79/66/get_st10.png)
- What do I need before adding a map? You need a sa-mp server that is working correctly, I'm not going to show this here but you can find other usefull tutorials for this.
- Open the folder of your server, go to
and open your server's gamemode (NOT the .amx! Example:
)
- Search
now for 'public OnGameModeInit()'
- Put the map codes under it, for example this:
- Don't forget the 'return 1;', '}' and '{'!
- Compile
and save your gamemode now.
- Start or restart your server, enjoin your maps!
![](http://i42.servimg.com/u/f42/16/92/79/66/except10.png)
- Remember that SA-MP have limits Click here to see them! Also for objects, if you exceed the limit, the player's client might crash or it won't show the exceeded objects!
- If you have codes from MTA map editor, you need to convert the codes before putting them in your gamemode! (SA-MP is not the same as MTA)
- You can convert the object codes at convertffs.com!
![](http://i42.servimg.com/u/f42/16/92/79/66/note10.png)
- This was my first tutorial, please no stupid comments xD
- Tell me if I did something wrong, feedback is always welcome!