02.02.2015, 10:16
pawn Код:
new Float:lspddistance=GetPlayerDistanceFromPoint(playerid,1554.9974,-1675.5564,16.4953);
new Float:sfpddistance=GetPlayerDistanceFromPoint(playerid,-1605.5566,710.4965,13.8672);
new Float:lvpddistance=GetPlayerDistanceFromPoint(playerid,288.6926,167.3528,1007.4719);
SetPlayerVirtualWorld(playerid,1);
if(lspddistance>sfpddistance && lspddistance>lvpddistance)
{
SetPlayerInterior(playerid,6);
SetPlayerPos(playerid,264.7468,77.4799,1001.0391);
}
if(sfpddistance>lspddistance && sfpddistance>lvpddistance)
{
SetPlayerInterior(playerid,10);
SetPlayerPos(playerid,227.5555,111.0000,999.0156);
}
if(lvpddistance>lspddistance && lvpddistance>sfpddistance)
{
SetPlayerInterior(playerid,3);
SetPlayerPos(playerid,193.4588,175.0000,1003.0234);
}
Someone please tell me how to fix it. I checked all the co-ordinates and they are correct.