SA-MP Forums Archive
[Tutorial] simple but useful - adding maps to server - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Tutorials (https://sampforum.blast.hk/forumdisplay.php?fid=70)
+---- Thread: [Tutorial] simple but useful - adding maps to server (/showthread.php?tid=313393)



simple but useful - adding maps to server - tyler12 - 25.01.2012

How to add maps to your server
yeh its a noob tutorial insult me i honestly don't care im just helping people

Step 1
just map whatever you want you decide what to map.

Step 2
goto your mta directory normally "C:\Program Files\MTA San Andreas 1.2" then open server > mods > deathmatch > resources > then your map file (in a folder) you need the .map. open it with notepad or any other word editor.

Step 3
goto a map converter, i use delux-host map converter but you could use convertffs i dont know any others, then copy your .map code

Step 4
copy the code (make sure the output is "SA-MP CreateObject change" and "SA-MP AddStaticVehicleEx change" for convertffs and for delux host make sure its "PAWN Code for SA:MP"

Step 5
open pawno.exe and click on the white page (new). goto
pawn Code:
public OnGameModeInit()
{
    // Don't use these lines if it's a filterscript
    SetGameModeText("Blank Script");
    AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    return 1;
}

public OnGameModeExit()
}
delete
pawn Code:
// Don't use these lines if it's a filterscript
    SetGameModeText("Blank Script");
    AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
then replace that with your map file,


Your done!


Re: simple but useful - adding maps to server - Epic_Mickey - 28.01.2012

Replace it? Just paste the lines from what you've converted below OnGameModeInit.


Re: simple but useful - adding maps to server - T0pAz - 28.01.2012

That's it?


Re: simple but useful - adding maps to server - aGhillieSniper - 28.01.2012

Quote:
Originally Posted by tyler12
View Post
How to add maps to your server
yeh its a noob tutorial insult me i honestly don't care im just helping people

Step 1
just map whatever you want you decide what to map.

Step 2
goto your mta directory normally "C:\Program Files\MTA San Andreas 1.2" then open server > mods > deathmatch > resources > then your map file (in a folder) you need the .map. open it with notepad or any other word editor.

Step 3
goto a map converter, i use delux-host map converter but you could use convertffs i dont know any others, then copy your .map code

Step 4
copy the code (make sure the output is "SA-MP CreateObject change" and "SA-MP AddStaticVehicleEx change" for convertffs and for delux host make sure its "PAWN Code for SA:MP"

Step 5
open pawno.exe and click on the white page (new). goto
pawn Code:
public OnGameModeInit()
{
    // Don't use these lines if it's a filterscript
    SetGameModeText("Blank Script");
    AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    return 1;
}

public OnGameModeExit()
}
delete
pawn Code:
// Don't use these lines if it's a filterscript
    SetGameModeText("Blank Script");
    AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
then replace that with your map file,


Your done!
My Shortest Version:
Quote:
Originally Posted by ******.com
Deluxe-host Map converter
But thanks, People might get knowledge of Mappping with that Tutorial