Vehicle Teleport.
#1

Hello Everyone,

I have a problem some kinda easy for pro scripters. But i tried my ass of getting it worked.

I want it like, When a player in a vehicle get to this point.
AddStaticVehicle(596,-126.1846,-3707.7759,102.6719,323.4586,0,1);

He get tped to this place.
AddStaticVehicle(596,-169.7463,-3698.6672,101.1241,257.9296,0,1);

I tried something like this,
Код:
else if (PlayerToPoint(1.0, playerid,-127.0548,-3652.8835,102.7324, cx,cy,cz))
	{
		//Car Parking
		if (GetPlayerState(playerid) == 2)
				{
					new tmpcar = GetPlayerVehicleID(playerid);
					SetVehiclePos(playerid, -1398.8077,-263.6243,5.7211);
				}
				else
				{
					SetPlayerPos(playerid, -1398.8077,-263.6243,5.7211);
				}
		SetPlayerInterior(playerid,0);
		GameTextForPlayer(playerid, "~w~Car Parking", 5000, 3);
		SetPlayerVirtualWorld(playerid, 0);
		PlayerInfo[playerid][pInt] = 0;
	}
but its not working, Its like. When a player on foot get to the point. He get tped but not when hes inside the vehicle.

Please help me with this.
Reply


Messages In This Thread
Vehicle Teleport. - by Mr.Mafia - 05.01.2010, 08:57
Re: Vehicle Teleport. - by fsnameless - 05.01.2010, 14:08
Re: Vehicle Teleport. - by Mr.Mafia - 10.01.2010, 08:55
Re: Vehicle Teleport. - by Mr.Mafia - 14.01.2010, 13:36
Re: Vehicle Teleport. - by TheChaoz - 14.01.2010, 14:04
Re: Vehicle Teleport. - by Mr.Mafia - 14.01.2010, 16:00

Forum Jump:


Users browsing this thread: 2 Guest(s)