[Tutorial] How to add maps to your server
#1

  • 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.
  • 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!
  • 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!
  • This was my first tutorial, please no stupid comments xD
  • Tell me if I did something wrong, feedback is always welcome!
Reply
#2

Deleted
Reply
#3

Better using a streamer like incognito !
Reply
#4

Quote:
Originally Posted by Brodock
View Post
Any nice comments?
Do not double post.
Reply
#5

Waste of time -1

Code:
C:\Users\Brandon\Desktop\SERVER\pawno\include\PPC_PlayerCommands.inc(2904) : warning 219: local variable "HostCommand" shadows a variable at a preceding level
C:\Users\Brandon\Desktop\SERVER\gamemodes\PPC_Trucking.pwn(84) : error 017: undefined symbol "playerid"
C:\Users\Brandon\Desktop\SERVER\gamemodes\PPC_Trucking.pwn(85) : error 017: undefined symbol "playerid"
C:\Users\Brandon\Desktop\SERVER\gamemodes\PPC_Trucking.pwn(86) : error 017: undefined symbol "playerid"
C:\Users\Brandon\Desktop\SERVER\gamemodes\PPC_Trucking.pwn(87) : error 017: undefined symbol "playerid"
C:\Users\Brandon\Desktop\SERVER\gamemodes\PPC_Trucking.pwn(88) : error 017: undefined symbol "playerid"
C:\Users\Brandon\Desktop\SERVER\gamemodes\PPC_Trucking.pwn(89) : error 017: undefined symbol "playerid"
C:\Users\Brandon\Desktop\SERVER\gamemodes\PPC_Trucking.pwn(90) : error 017: undefined symbol "playerid"
C:\Users\Brandon\Desktop\SERVER\gamemodes\PPC_Trucking.pwn(91) : error 017: undefined symbol "playerid"
C:\Users\Brandon\Desktop\SERVER\gamemodes\PPC_Trucking.pwn(92) : error 017: undefined symbol "playerid"
C:\Users\Brandon\Desktop\SERVER\gamemodes\PPC_Trucking.pwn(323) : error 021: symbol already defined: "format"
C:\Users\Brandon\Desktop\SERVER\gamemodes\PPC_Trucking.pwn(327) : error 021: symbol already defined: "GameModeInit_VehiclesPickups"
C:\Users\Brandon\Desktop\SERVER\gamemodes\PPC_Trucking.pwn(328) : error 021: symbol already defined: "GameModeInit_Classes"
C:\Users\Brandon\Desktop\SERVER\gamemodes\PPC_Trucking.pwn(330) : error 021: symbol already defined: "Convoys_Init"
C:\Users\Brandon\Desktop\SERVER\gamemodes\PPC_Trucking.pwn(332) : error 021: symbol already defined: "ShowPlayerMarkers"
C:\Users\Brandon\Desktop\SERVER\gamemodes\PPC_Trucking.pwn(340) : error 021: symbol already defined: "SetTimer"
C:\Users\Brandon\Desktop\SERVER\gamemodes\PPC_Trucking.pwn(342) : error 021: symbol already defined: "SetTimer"
C:\Users\Brandon\Desktop\SERVER\gamemodes\PPC_Trucking.pwn(344) : error 021: symbol already defined: "SetTimer"
C:\Users\Brandon\Desktop\SERVER\gamemodes\PPC_Trucking.pwn(347) : error 021: symbol already defined: "FixHouses"
C:\Users\Brandon\Desktop\SERVER\gamemodes\PPC_Trucking.pwn(350) : error 021: symbol already defined: "SetTimer"
C:\Users\Brandon\Desktop\SERVER\gamemodes\PPC_Trucking.pwn(352) : error 010: invalid function or declaration
C:\Users\Brandon\Desktop\SERVER\gamemodes\PPC_Trucking.pwn(1704) : warning 203: symbol is never used: "AddCarDealerPickup"
C:\Users\Brandon\Desktop\SERVER\gamemodes\PPC_Trucking.pwn(1704) : warning 203: symbol is never used: "AddRefuelPickup"
C:\Users\Brandon\Desktop\SERVER\gamemodes\PPC_Trucking.pwn(1704) : warning 203: symbol is never used: "AddTollGate"
C:\Users\Brandon\Desktop\SERVER\gamemodes\PPC_Trucking.pwn(1704) : warning 203: symbol is never used: "BusinessFile_Load"
C:\Users\Brandon\Desktop\SERVER\gamemodes\PPC_Trucking.pwn(1704) : warning 203: symbol is never used: "BusinessTime_Load"
C:\Users\Brandon\Desktop\SERVER\gamemodes\PPC_Trucking.pwn(1704) : warning 203: symbol is never used: "Business_LoadAll"
C:\Users\Brandon\Desktop\SERVER\gamemodes\PPC_Trucking.pwn(1704) : warning 203: symbol is never used: "CameraFile_Load"
C:\Users\Brandon\Desktop\SERVER\gamemodes\PPC_Trucking.pwn(1704) : warning 203: symbol is never used: "Camera_LoadAll"
C:\Users\Brandon\Desktop\SERVER\gamemodes\PPC_Trucking.pwn(1704) : warning 203: symbol is never used: "Convoys_Init"
C:\Users\Brandon\Desktop\SERVER\gamemodes\PPC_Trucking.pwn(1704) : warning 203: symbol is never used: "GameModeInit_Airports"
C:\Users\Brandon\Desktop\SERVER\gamemodes\PPC_Trucking.pwn(1704) : warning 203: symbol is never used: "GameModeInit_Assistance"
C:\Users\Brandon\Desktop\SERVER\gamemodes\PPC_Trucking.pwn(1704) : warning 203: symbol is never used: "GameModeInit_Busses"
C:\Users\Brandon\Desktop\SERVER\gamemodes\PPC_Trucking.pwn(1704) : warning 203: symbol is never used: "GameModeInit_Busstops"
C:\Users\Brandon\Desktop\SERVER\gamemodes\PPC_Trucking.pwn(1704) : warning 203: symbol is never used: "GameModeInit_Classes"
C:\Users\Brandon\Desktop\SERVER\gamemodes\PPC_Trucking.pwn(1704) : warning 203: symbol is never used: "GameModeInit_Courier"
C:\Users\Brandon\Desktop\SERVER\gamemodes\PPC_Trucking.pwn(1704) : warning 203: symbol is never used: "GameModeInit_Mafia"
C:\Users\Brandon\Desktop\SERVER\gamemodes\PPC_Trucking.pwn(1704) : warning 203: symbol is never used: "GameModeInit_PickupsIcons"
C:\Users\Brandon\Desktop\SERVER\gamemodes\PPC_Trucking.pwn(1704) : warning 203: symbol is never used: "GameModeInit_Police"
C:\Users\Brandon\Desktop\SERVER\gamemodes\PPC_Trucking.pwn(1704) : warning 203: symbol is never used: "GameModeInit_RoadWorker"
C:\Users\Brandon\Desktop\SERVER\gamemodes\PPC_Trucking.pwn(1704) : warning 203: symbol is never used: "GameModeInit_Toll"
C:\Users\Brandon\Desktop\SERVER\gamemodes\PPC_Trucking.pwn(1704) : warning 203: symbol is never used: "GameModeInit_TruckDepots"
C:\Users\Brandon\Desktop\SERVER\gamemodes\PPC_Trucking.pwn(1704) : warning 203: symbol is never used: "GameModeInit_VehiclesPickups"
C:\Users\Brandon\Desktop\SERVER\gamemodes\PPC_Trucking.pwn(1704) : warning 203: symbol is never used: "HostCommand"
C:\Users\Brandon\Desktop\SERVER\gamemodes\PPC_Trucking.pwn(1704) : warning 203: symbol is never used: "Housing_LoadAll"
C:\Users\Brandon\Desktop\SERVER\gamemodes\PPC_Trucking.pwn(1704) : warning 203: symbol is never used: "IntrestTime_Load"
C:\Users\Brandon\Desktop\SERVER\gamemodes\PPC_Trucking.pwn(1704) : warning 203: symbol is never used: "Vehicle_AddStatic"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
Reply
#6

good for newbies
Reply
#7

Not bad ..
@Mr. to fix some of this error try this
pawn Code:
new playerid [MAX_PLAYERS];
Reply
#8

The easiest work ever ...
@Mr. to fix some of this error try this
pawn Code:
new playerid [MAX_PLAYERS];
Reply
#9

Still doesn't work buddy,

Can you fix the line for me then?

HTML Code:
RemoveBuildingForPlayer playerid MAX_PLAYERS; 3744, 2771.0703, -2520.5469, 15.2188, 0.25);
Reply
#10

i can add unlimited maps in server or is there any limit on adding? if yes what is limit?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)