05.10.2013, 00:50
So the problem is that it wont enter.. When I get close to the area that I want to enter nothing happens.
I have to idea where to put it so I've put it under OnPlayerSpawn.
I have to idea where to put it so I've put it under OnPlayerSpawn.
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 1.5, 1833.7703,-1842.5039,13.5781))
{
SetPlayerPos(playerid, -25.884498, -185.868988, 1003.546875);
SetPlayerInterior(playerid, 17);
SetPlayerVirtualWorld(playerid, 1);
SetCameraBehindPlayer(playerid);
}
else if(IsPlayerInRangeOfPoint(playerid, 1.5, -25.884498, -185.868988, 1003.546875))
{
SetPlayerPos(playerid, 1833.7703,-1842.5039,13.5781);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 1);
SetCameraBehindPlayer(playerid);
}
return 0;
}