13.11.2010, 08:29
Try this, (if you are not in range it will tell you)
pawn Code:
if(!strcmp(cmdtext, "/enter", true))
{
if(!IsPlayerInRangeOfPoint(playerid, 5.0, 2207.5254, -1100.4119, 31.5547) || !IsPlayerInRangeOfPoint(playerid, 5.0, 1412.0670,-1699.9690,13.5395))return SendClientMessage(playerid, 0xff0000FF, "Not in range");
if(IsPlayerInRangeOfPoint(playerid, 5.0, 2207.5254, -1100.4119, 31.5547))
{
SetPlayerPos(playerid, 2209.3159,-1106.1302,14.9276);
SetPlayerFacingAngle(playerid, 68.2839);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 10);
return 1;
}
else if(IsPlayerInRangeOfPoint(playerid, 5.0, 1412.0670,-1699.9690,13.5395))
{
SetPlayerPos(playerid, 1417.3789,-989.1111,1639.7843);
SetPlayerFacingAngle(playerid, 269.2184);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 10);
}
return 1;
}