How add train in 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: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How add train in server? (
/showthread.php?tid=169404)
How add train in server? -
Tommy_CAR - 19.08.2010
How add train in server?
Re: How add train in server? -
Ihsan_Cingisiz - 19.08.2010
Quote:
Originally Posted by Tommy_CAR
How add train in server?
|
Save a other vehicle on the place where the train should be
(AddStaticVehicle(vehicleid, bla, bla, bla))
Change the vehicle id into the id of the Train..
Re: How add train in server? -
Scenario - 19.08.2010
I'll explain that better.
It's easier to just 'save' some random car on the tracks where you want the train to spawn. Make sure you line the tires up with the railing... So, you should have the line "AddStaticVehicle(vehicleid, ..., ..., ...)". Where "vehicleid" is, change it to the ID of a train... You SHOULD have a train at the location you saved the other vehicle... Make sense now?
Re: How add train in server? -
Tommy_CAR - 19.08.2010
Now when I put it when I come close to train my game crashes
Re: How add train in server? -
Tommy_CAR - 19.08.2010
something here is not always good to me down for a game where is the problem?
Код:
#include <a_samp>
public OnGameModeInit( )
{
// Add a train to the game
AddStaticVehicle(538, 1710.5787, -1953.6858, 13.9973, 269.7458, 0, 0);
return 1;
}
Re: How add train in server? -
Scenario - 19.08.2010
Okay, is that all you have in your GM?
Re: How add train in server? -
Tommy_CAR - 19.08.2010
Quote:
Originally Posted by RealCop228
Okay, is that all you have in your GM?
|
I have the Raven's Roleplay GM
Do I need something to add?
Re: How add train in server? -
Scenario - 19.08.2010
That's your problem right there. That GM is bugged as hell...
Re: How add train in server? -
Tommy_CAR - 19.08.2010
how to add cars to the train?
Re: How add train in server? -
Scenario - 19.08.2010
Keep repeating the process. Just park a car behind the train and they change the "vehicleid" to the "train car" you want.