[HELP]Help me with getdistancetopoint plz..
#3

I think it needs to be like this.

pawn Код:
if(GetDistanceToPoint(playerid,CashDispensers[0][0], CashDispensers[0][1], CashDispensers[0][2])>2)
{
    SystemMessage(playerid, "You must be near a cash machine to withdraw money.");
    return 1;
}
But you may want to do like this to see if he's near any of them.

pawn Код:
for(new i; i<4; i++)
{
   if(GetDistanceToPoint(playerid,CashDispensers[i][0], CashDispensers[i][1], CashDispensers[i][2])>2)
   {
       SystemMessage(playerid, "You must be near a cash machine to withdraw money.");
       return 1;
   }
}
Reply


Messages In This Thread
[HELP]Help me with getdistancetopoint plz.. - by Rzzr - 04.12.2009, 09:53
Re: [HELP]Help me with getdistancetopoint plz.. - by Rzzr - 04.12.2009, 21:25
Re: [HELP]Help me with getdistancetopoint plz.. - by Backwardsman97 - 04.12.2009, 21:52
Re: [HELP]Help me with getdistancetopoint plz.. - by Rzzr - 04.12.2009, 22:20

Forum Jump:


Users browsing this thread: 2 Guest(s)