GetPlayerDistanceFromPoint
#1

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);
            }
This is the part of the command that jails the player. But, the problem is - it always puts the player in SF jail.
Someone please tell me how to fix it. I checked all the co-ordinates and they are correct.
Reply


Messages In This Thread
GetPlayerDistanceFromPoint - by ATGOggy - 02.02.2015, 10:16
Re: GetPlayerDistanceFromPoint - by Pottus - 02.02.2015, 10:36
Re: GetPlayerDistanceFromPoint - by ATGOggy - 02.02.2015, 10:48

Forum Jump:


Users browsing this thread: 1 Guest(s)