SA-MP Forums Archive
How to add Train for my gamemode Roleplay - 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: How to add Train for my gamemode Roleplay (/showthread.php?tid=512336)



How to add Train for my gamemode Roleplay - jesdynguyen - 10.05.2014

I want the Train like game offline GTA SAN , how to add it on my gamemode , PLEASE HELP ME

Thanks to visit my topic


http://static4.fjcdn.com/thumbnails/...f0fa867b0b.jpg


Re: How to add Train for my gamemode Roleplay - Matess - 10.05.2014

AddStaticVehicle under OnGameModeInit

https://sampwiki.blast.hk/wiki/AddStaticVehicle


Re: How to add Train for my gamemode Roleplay - jesdynguyen - 10.05.2014

can you give me example , iam not good at Pawno

Please give me your write pawn code because that is a Train i want put it on rails

(sorry my bad english)


Re: How to add Train for my gamemode Roleplay - Matess - 10.05.2014

Well train is 537 or 538 so...

AddStaticVehicle(537, 2109.1763, 1503.0453, 32.2887, 82.2873, 0, 1);

Coords are from wiki but it should be created somewhere on the railways. If you want spawn it on your place, then go to server on railways and write /save in chat and get coords from GTA folder in your documents.


Re: How to add Train for my gamemode Roleplay - jesdynguyen - 10.05.2014

Matess: thank you sir , hope you lucky all day , thanks sa-mp.com