Spawn Bug
#1

Hi all, i have litte problem, when player complete register, i but them on this position
Код:
if(clickedid == TDEditor_TD26)
                 {
                 TextDrawHideForPlayer(playerid, TDEditor_TD24);
                 TextDrawHideForPlayer(playerid, TDEditor_TD25);
                 TextDrawHideForPlayer(playerid, TDEditor_TD26);
                 CancelSelectTextDraw(playerid);
                 SetCameraBehindPlayer(playerid);
                 TogglePlayerControllable(playerid, 1);
                 SetPlayerPos(playerid, -2752.70142, -626.48090, 500.00000);
                 }
And i has already create Plane interior object
Код:
CreateObject(14548, -2752.70142, -626.48090, 500.00000,   0.00000, 0.00000, -90.00000);
But not spawn in this, player spawn and fly from beach to sky like this video :
https://www.youtube.com/watch?v=xrCm...ature=*********
Anyone can help me?
Reply
#2

To set a player in interior, you must have the interior ID.
SetPlayerInterior(playerid, InteriorID).
Reply
#3

Quote:
Originally Posted by Escobabe
Посмотреть сообщение
To set a player in interior, you must have the interior ID.
SetPlayerInterior(playerid, InteriorID).
Still this
Reply
#4

What do you mean "Still this"?
Reply
#5

Quote:
Originally Posted by Escobabe
Посмотреть сообщение
What do you mean "Still this"?
It not change
Reply
#6

PHP код:
if(clickedid == TDEditor_TD26)
                 {
                 
TextDrawHideForPlayer(playeridTDEditor_TD24);
                 
TextDrawHideForPlayer(playeridTDEditor_TD25);
                 
TextDrawHideForPlayer(playeridTDEditor_TD26);
                 
CancelSelectTextDraw(playerid);
                 
SetCameraBehindPlayer(playerid);
                 
TogglePlayerControllable(playerid1);
                 
SetPlayerInterior(playerid1); // Sets the interior to the Shamal plane.
                 
SetPlayerPos(playerid, -2752.70142, -626.48090500.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.
Reply
#7

Quote:
Originally Posted by DomagojSellug
Посмотреть сообщение
PHP код:
if(clickedid == TDEditor_TD26)
                 {
                 
TextDrawHideForPlayer(playeridTDEditor_TD24);
                 
TextDrawHideForPlayer(playeridTDEditor_TD25);
                 
TextDrawHideForPlayer(playeridTDEditor_TD26);
                 
CancelSelectTextDraw(playerid);
                 
SetCameraBehindPlayer(playerid);
                 
TogglePlayerControllable(playerid1);
                 
SetPlayerInterior(playerid1); // Sets the interior to the Shamal plane.
                 
SetPlayerPos(playerid, -2752.70142, -626.48090500.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.
It not change too LOL
Reply
#8

Any help
Reply
#9

PHP код:
if(clickedid == TDEditor_TD26)
                 {
                 
TextDrawHideForPlayer(playeridTDEditor_TD24);
                 
TextDrawHideForPlayer(playeridTDEditor_TD25);
                 
TextDrawHideForPlayer(playeridTDEditor_TD26);
                 
CancelSelectTextDraw(playerid);
                 
SetCameraBehindPlayer(playerid);
                 
TogglePlayerControllable(playerid1);
                 
SetPlayerInterior(playerid0);
                 
SetPlayerPos(playerid, -2752.70142, -626.48090500.00000);
                 } 
try this.. Because I'm pretty sure that you haven't changed the interior ID.
Reply
#10

Quote:
Originally Posted by JasonRiggs
Посмотреть сообщение
PHP код:
if(clickedid == TDEditor_TD26)
                 {
                 
TextDrawHideForPlayer(playeridTDEditor_TD24);
                 
TextDrawHideForPlayer(playeridTDEditor_TD25);
                 
TextDrawHideForPlayer(playeridTDEditor_TD26);
                 
CancelSelectTextDraw(playerid);
                 
SetCameraBehindPlayer(playerid);
                 
TogglePlayerControllable(playerid1);
                 
SetPlayerInterior(playerid0);
                 
SetPlayerPos(playerid, -2752.70142, -626.48090500.00000);
                 } 
try this.. Because I'm pretty sure that you haven't changed the interior ID.
Just read that he's got his own mapped plane. Do what Jason told you, I think that should fix it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)