26.02.2011, 18:05
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.
Or w/e you have it named
Now start up the server .exe
Now you need to go ig(in game) and
Then simply get into your car, and drive to were you want the car to save.
Then you can do.
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:
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:
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:
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!
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 |
Now start up the server .exe
Now you need to go ig(in game) and
Code:
/v [vehicle name/part of name]
Then you can do.
Code:
/save [put a comment here]
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]
(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; }
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; }
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!