Amunation interiours
#10

Quote:
Originally Posted by WeeDarr
pawn Код:
if(PlayerToPoint(10.0,i,checkpoint cords) == 1)
{
    // Do whatever
    SendClientMessage(i,COLOUR_YELLOW,"Closed");
}
else if(PlayerToPoint(10.0,i,checkpoint cords) == 1)
{
    // Do whatever
    SendClientMessage(i,COLOUR_YELLOW,"Closed");
}
Etc. btw you will need to search for the playertopoint function

WeeDarr
I use PlayerToPoint without that == 1. Why do you use that?

pawn Код:
stock 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);
        if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
        {
            return 1;
        }
    }
    return 0;
}
Reply


Messages In This Thread
Amunation interiours - by CAMERON_BANFIELD - 27.03.2009, 20:46
Re: Amunation interiours - by Dujma - 27.03.2009, 20:47
Re: Amunation interiours - by CAMERON_BANFIELD - 27.03.2009, 20:52
Re: Amunation interiours - by MenaceX^ - 27.03.2009, 21:05
Re: Amunation interiours - by weedarr - 27.03.2009, 21:08
Re: Amunation interiours - by CAMERON_BANFIELD - 27.03.2009, 21:11
Re: Amunation interiours - by Dujma - 27.03.2009, 21:18
Re: Amunation interiours - by weedarr - 27.03.2009, 21:18
Re: Amunation interiours - by CAMERON_BANFIELD - 27.03.2009, 21:20
Re: Amunation interiours - by Dujma - 27.03.2009, 21:21

Forum Jump:


Users browsing this thread: 1 Guest(s)