Interior - 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: Interior (
/showthread.php?tid=395979)
Interior -
Dusan01 - 28.11.2012
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
Re: Interior -
rbush12 - 28.11.2012
Is the interior not showing?
Re: Interior -
maramizo - 28.11.2012
SetPlayerInterior(playerid, interiorid -which in your case is 1-);
Re: Interior -
Dusan01 - 29.11.2012
Quote:
Originally Posted by rbush12
Is the interior not showing?
|
yea not showing....
Re: Interior -
Kitten - 29.11.2012
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.
Re: Interior -
showarn - 29.11.2012
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);
Re: Interior -
Dusan01 - 29.11.2012
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

!