PHP код:
if(clickedid == TDEditor_TD26)
{
TextDrawHideForPlayer(playerid, TDEditor_TD24);
TextDrawHideForPlayer(playerid, TDEditor_TD25);
TextDrawHideForPlayer(playerid, TDEditor_TD26);
CancelSelectTextDraw(playerid);
SetCameraBehindPlayer(playerid);
TogglePlayerControllable(playerid, 1);
SetPlayerInterior(playerid, 1); // Sets the interior to the Shamal plane.
SetPlayerPos(playerid, -2752.70142, -626.48090, 500.00000);
}
Try this. You need to set an interior for the plane.
Also, a quick tip, download the
Streamer Plugin and use CreateDynamicObject instead of CreateObject.
