How to add Mapping?
#1

Can someone please teach me on TeamViewer how to add mapping? Thanks..
Reply
#2

You mean how to add maps?
Use a map editor like JernejL's Map Editor. After mapping, export the codes and put them in your gamemode/filterscript.
That's how you add maps.
Reply
#3

Add the 'CreateObject' under OnGameModeInit or OnFilterScriptInit (if it was a filterscript)
And add the 'RemovePlayerBuilding' under OnPlayerConnect.
Reply
#4

I did, and my pawno crashes after i added. I tried CreateObject and CreateDynamicObject
Reply
#5

Crashes? Pawno often crashes for having too many errors (Above 26 errors I guess).
It's probably a missing bracket.
Use Missing bracket finder to help you to find your missing brackets.
Reply
#6

Are you using JerneL's map editor?.

Press on the insert button and enter a object id.
You can see controls when you start up the program.

Edit: I was a bit late.
Reply
#7

Maps must be load when gamemode starts, there's the right callback named:
OnGameModeInit()

Here's an example:
Код:
public OnGameModeInit() {
CreateObject(4395, ... , ... , ... , ... );
}
CreateObject is a default SA-MP function (you can found it in #a_samp.inc since all SA-MP versions)
You can use many SA-MP Editors to automatically generate them, or you can do the manual and slow job looking for Object ID and replacing coordinates with /save command results.

I sugged you using SA-MP Map Editor, you can find it on this forum.
Else, there's MTA which gives you .map files. You can convert them on the web, for this i suggest you convertffs.com
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)