Train Spawning Question
#1

Hi I was wondering how I could spawn a passenger train for my server with the train cars attached would it be just AddStaticVehicle ? and trailers auto spawn?
Reply
#2

im not sure, i guess this is it:
Код:
CMD:train(playerid,params[])
{
	new Float:X;
	new Float:Y;
	new Float:Z;
	new A;
	GetPlayerPos(playerid, X, Y, Z);
	A = AddStaticVehicle(538, X, Y, Z, 40.19, -1, -1);
	PutPlayerInVehicle( playerid, A, 0);
	SendClientMessage(playerid, 0xFFFFFF, "Train spawned");
	return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)