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

So i've had some ppl asking me lately how to add cars to a server , so hera ya go!

The first thing were gonna do is get SA-MP Debug.(Credits to Simon Campbell)
[ http://solidfiles.com/d/c565f/ ]
[ http://pastebin.com/H4efeEFM ]

Add this to your server config on the filterscript lines.
Quote:

filterscripts fsdebug

Or w/e you have it named

Now start up the server .exe

Now you need to go ig(in game) and
Code:
/v [vehicle name/part of name]
Then simply get into your car, and drive to were you want the car to save.

Then you can do.
Code:
/save [put a comment here]
Now Exit out of game(or alt+tab) and goto
A.)GTA San Andreas user Files(usually in C:/Program Files/Rockstar, maybe Rockstar Games)
B.)Open folder "SAMP"
C.)Double click savedpositions.txt
D.)Copy everything in there
It should be like the following:
Code:
AddStaticVehicle(588,2530.4290,2278.9368,10.5752,0.2145,0,0); // [your comment]
Then open up your gamemode or filterscript
(For Filterscript)
Locate public OnFilterScriptInit() on line 9

Then go under the bracket and paste what you have copied like so:
Code:
public OnFilterScriptInit()
{
        AddStaticVehicle(588,2530.4290,2278.9368,10.5752,0.2145,0,0); // this is the cars we have added,most        //likely more than one
        print("\n--------------------------------------");
	print(" Blank Filterscript by your name here");
	print("--------------------------------------\n");
	return 1;
}
And hit Compile

As for gamemodes we do the same as above except in stead of pasting it under public OnFilterScriptInit()
We paste it under public OnGameModeInit()
Like so:
Code:
public OnGameModeInit()
{
	AddStaticVehicle(588,2530.4290,2278.9368,10.5752,0.2145,0,0);
	SetGameModeText("Blank Script");
	AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
	return 1;
}
And once again hit compile

Then add the filterscript(or gamemode) to the filterscript or gamemode line in Server.cfg
EX: filterscripts Cars
gamemode0 Cars


And Congrats you now know how to get cars in your server
Have fun!
Reply


Messages In This Thread
How to add cars to your server - by ifly4life - 26.02.2011, 18:05
Re: How to add cars to your server - by justsomeguy - 26.02.2011, 18:32
Re: How to add cars to your server - by ifly4life - 26.02.2011, 18:42
Re: How to add cars to your server - by [M.A]Angel[M.A] - 02.03.2011, 02:21
Re: How to add cars to your server - by XFlawless - 02.03.2011, 10:31
Re: How to add cars to your server - by Ironboy - 02.03.2011, 10:50
Re: How to add cars to your server - by justsomeguy - 02.03.2011, 12:29
Re: How to add cars to your server - by Hiddos - 02.03.2011, 13:57
Re: How to add cars to your server - by kyran - 29.10.2011, 21:57
Re : How to add cars to your server - by Alvin007 - 31.10.2011, 13:23

Forum Jump:


Users browsing this thread: 1 Guest(s)