OMG! ADDING A TRAIN [HELP NEEDED] - 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)
+--- Thread: OMG! ADDING A TRAIN [HELP NEEDED] (
/showthread.php?tid=507297)
OMG! ADDING A TRAIN [HELP NEEDED] -
AmitRaj - 17.04.2014
how to add
in my current script plz help
Re: OMG! ADDING A TRAIN [HELP NEEDED] -
ChuckyBabe - 17.04.2014
Search on wiki samp
Look in
public Ongamemodeinit
Re: OMG! ADDING A TRAIN [HELP NEEDED] -
Crypto20 - 17.04.2014
You can simply add a train in by AddStaticVehicle
https://sampwiki.blast.hk/wiki/AddStaticVehicle
Example:
You have to set the cords your self.
Quote:
public OnGameModeInit()
{
// Add a train to the game
AddStaticVehicle(538, 2109.1763, 1503.0453, 32.2887, 82.2873, 0, 1);
return 1;
}
|
Re: OMG! ADDING A TRAIN [HELP NEEDED] -
ChuckyBabe - 17.04.2014
The full script
pawn Код:
public OnGameModeInit()
{
// Add a train to the game
AddStaticVehicle(car id, x, y, z, 82.2873, 0, 1);
//add more trains
return 1;
}