Author Topic: How to convert maps into scripts for sa-mp  (Read 203 times)

[GM]Sakura[GMX]

  • Administrator
  • Hero
  • *****
  • Posts: I am a geek!!
    • View Profile
How to convert maps into scripts for sa-mp
« on: August 14, 2012, 08:50:44 am »
Well if you already created a map with MTA, you'll probably need to make it into a script so that we can add it easily to server.

You already know that your map is saved her:

Mycomputer/Programfiles/mtasanandreas/server/mods/deathmatch/resources/YourMapName

1. Right click your map, and open it with Notepad. Some words that you might not understand will come up.

2. Copy all of the words, and go here: www.convertffs.com.

3. Paste them in the "Paste here" section.

4. In the "Input" section, change the object to "MTA 1.0 Object", and the vehicle to "MTA 1.0 Vehicle".

5. In the "Output" section, change the object to "SA-MP CreateObject", and the vehicle to "SA-MP AddStaticVehicleEx".

Step 4 and 5 should look like this:



6. Press "Convert".

7. A new script will appear. Copy it.

8. Now open pawno. If you don't have it yet, download it here:
http://team.sa-mp.com/files/samp03dsvr_R2_win32.zip
(It's a server file, you will only need the pawno program. Open "Pawno" folder, and then open pawno.exe)

9. Press "New" on top left of pawno...some random stuff will come up. You don't need to know what they are, just follow my lead here...

10. Now, in the "OnFilterscriptInit" section, paste the script between the "return 1;" and the last "print" line.

11. Press the blue arrow on top of pawno (The "Compile/run" button).

12. Save the file wherever you want, and name it whatever you want.

2 files will now be saved where you selected. A .pwn file and a .amx file. You'll need to give the amx to a manager, and they'll figure out the rest.

Thanks for reading!

Share on Facebook Share on Twitter