Yellow Markers
#6

Quote:
Originally Posted by Gergo1352
Use PlayerToPoint.

pawn Код:
forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
pawn Код:
public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
{
  if(IsPlayerConnected(playerid))
    {
        new Float:oldposx, Float:oldposy, Float:oldposz;
        new Float:tempposx, Float:tempposy, Float:tempposz;
        GetPlayerPos(playerid, oldposx, oldposy, oldposz);
        tempposx = (oldposx -x);
        tempposy = (oldposy -y);
        tempposz = (oldposz -z);
        //printf("DEBUG: X:%f Y:%f Z:%f",posx,posy,posz);
        if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
        {
            return 1;
        }
    }
    return 0;
}
hmm here still my checkpoint disable when i exit from car ... nad i still see it on map if i am 1000 miles away drom it
Reply


Messages In This Thread
Yellow Markers - by Geekzor - 13.07.2009, 01:00
Re: Yellow Markers - by Gergo1352 - 13.07.2009, 01:02
Re: Yellow Markers - by ledzep - 13.07.2009, 01:04
Re: Yellow Markers - by Geekzor - 13.07.2009, 01:20
Re: Yellow Markers - by Gergo1352 - 13.07.2009, 01:53
Re: Yellow Markers - by Geekzor - 13.07.2009, 12:11

Forum Jump:


Users browsing this thread: 1 Guest(s)