#3

yes
Using MTA Map Editor
Maybe the best MTA Map Editor It is the best SA:MP Map Editor it is easy to use. Anyways in this topic i will firstly explain how to add objects into your gamemode.
First of all your english was a little hard to read but i finally got it . First of all after you have made the map with MTA Map Editor goto:
--> C:/program files/MTA San Andreas/mods/map_editor/maps/
Over there. there will be a .map.
Converting Objects
Now you can convert it into SA:MP Code. Click Here
or: http://gtamap.delux-host.com/converter/
then you will understand the rest yourself. When it is fully converted, Copy all of the text.
EXAMPLE:
Код:
CreateObject(100,100.0,0.0,1.0,0,0,0);
This isnt a code just an example.
Adding Objects In Your Gamemode
Now copy all of that code and open your gamemode over there you will see this:
Код:
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()
{
	return 1;
}
Now. You must be asking what to do right? add this code:
Код:
public OnGameModeInit()
{
	// Don't use these lines if it's a filterscript
	SetGameModeText("Stunt Server");
	AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
	return 1;
}

public OnGameModeExit()
{
	return 1;
}
Under AddPlayerClass add The CreateObjects I Told You (the Ones you copied)
now compile and now the objects will be added!
How To Add Vehicles
Now that, Thats done click at server.cfg and change this:
Код:
gamemode0 (TheNameOfTheScriptYouCompiled) 1
After that run samp-server. Now click at samp and click at the tick after that add this ip:
Код:
127.0.0.1:7777
After that the server will come open it up and find the place where you added your objects
Important Note:
To Add vehicles you need [FS]Debug Mode By Simon

After you have downloaded that
Adding Vehicles
Go to the place you made your objects and add cars doing /v (car name)
and the cars will come sit in all the cars at a time and press /save while sitting inside them. There positions will be saved goto your GTA San Andreas multiplayer directory an you will see savedpositions.txt open it and you will see this type of code:
Код:
AddStaticVehicle
Copy all of that code and place it here:
Код:
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()
{
	return 1;
}
Paste it under CreateObject And Save And Compile.
Now when you will run your server you will see the cars you added in the map in the same position you saved them!
HOPE THIS SMALL TUTORIAL HELPED U / ALL
~Ali~
Reply


Messages In This Thread
Maps - by mortallx - 27.03.2009, 17:59
Re: Maps - by Shellegg - 27.03.2009, 18:20
Re: Maps - by DorkAZoid - 27.03.2009, 18:29
Re: Maps - by mortallx - 27.03.2009, 20:03
Re: Maps - by mortallx - 27.03.2009, 21:15
Re: Maps - by ICECOLDKILLAK8 - 27.03.2009, 21:16
Re: Maps - by mortallx - 28.03.2009, 19:58
Re: Maps - by DorkAZoid - 02.04.2009, 10:51

Forum Jump:


Users browsing this thread: 1 Guest(s)