11.07.2011, 15:09
So I made a house, but whenever I enter it, I just fall from the sky, I have tried like all virtual worlds and the coordinates are completely right, whats the problem?
pawn Код:
if(strcmp(cmdtext, "/enter", true)==0)
{
if(PlayerToPoint(3, playerid, -425.2294,-3659.9846,12.9834))
{
GetPlayerPos(playerid,Pos[playerid][0],Pos[playerid][1],Pos[playerid][2]);
PosSelected[playerid] = 1;
SetPlayerPos(playerid,1767.115967,5843.313477,25483.246094);
SetPlayerVirtualWorld(playerid,2);
GameTextForPlayer(playerid,"~w~Welcome to the~n~~y~White Shadows Meeting Room",3000,4);
}
else
{
SendClientMessage(playerid,COLOR_RED,"You're not at an entrance");
PosSelected[playerid] = 0;
}
return 1;
}