Interior
#1

Hy guys,Can someone tell to me how can i set player pos to fcking plane? id of interrior of plane is: 1

and this is the pos of the interior:
Код:
1.808619,32.384357,1199.593750
Reply
#2

Is the interior not showing?
Reply
#3

SetPlayerInterior(playerid, interiorid -which in your case is 1-);
Reply
#4

Quote:
Originally Posted by rbush12
Посмотреть сообщение
Is the interior not showing?
yea not showing....
Reply
#5

I'd guess this way?

pawn Код:
new mehvehicle;
mehvehicle = AddStaticVehicleEx(Your Vehicle ID,1.808619,32.384357,1199.593750, 0.0, -1, -1, 10);
LinkVehicleToInterior(mehvehicle, Interior ID);
SetVehicleVirtualWorld(mehvehicle, Interior ID);
Eh i didn't read the post ha sorry!

use SetPlayerInterior(playerid,1); When they enter.
Reply
#6

use this
Код:
		new Float: x, Float: y, Float: z;
		GetPlayerPos(playerid, x, y, z);
		if(x == 0.0 && y == 0.0)
		{
  			SetPlayerInterior(playerid,1);
			SetPlayerPos(playerid, 1.808619,32.384357,1199.593750);
			SetPlayerFacingAngle(playerid, 359.4621);
			SetCameraBehindPlayer(playerid);
		}
		SetPlayerToTeamColor(playerid);
		return 1;
	}
	return 1;
or just use this if you got the rest

Код:
			SetPlayerInterior(playerid,1);
			SetPlayerPos(playerid, 1.808619,32.384357,1199.593750);
Reply
#7

Quote:
Originally Posted by showarn
Посмотреть сообщение
use this
Код:
		new Float: x, Float: y, Float: z;
		GetPlayerPos(playerid, x, y, z);
		if(x == 0.0 && y == 0.0)
		{
  			SetPlayerInterior(playerid,1);
			SetPlayerPos(playerid, 1.808619,32.384357,1199.593750);
			SetPlayerFacingAngle(playerid, 359.4621);
			SetCameraBehindPlayer(playerid);
		}
		SetPlayerToTeamColor(playerid);
		return 1;
	}
	return 1;
or just use this if you got the rest

Код:
			SetPlayerInterior(playerid,1);
			SetPlayerPos(playerid, 1.808619,32.384357,1199.593750);
WORKING Thanks Dude !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)