toll gate problem...
#1

hey guys,

i have this toll made but now i have problem..
when a player passes the toll it should only reduce the players money with $30 once... but it does alot of times... can pls anyone tell me whats wrong with this code and how to fix it?
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 10.0,3321.10009766,-2070.80004883,20.10000038))
    {
        for (new i = 0; i < MAX_PLAYERS; i++)
        {
            if (IsPlayerConnected(i) && !IsPlayerNPC(i))
            {
                GivePlayerMoney(playerid, -30);
                SendClientMessage(playerid, COLOR_GREEN, "You have paid $30 To pass the Toll");
            }
        }
        return 1;
    }
greets niels
Reply


Messages In This Thread
toll gate problem... - by niels44 - 20.02.2012, 18:59
Re: toll gate problem... - by niels44 - 21.02.2012, 14:51
Re: toll gate problem... - by Toreno - 21.02.2012, 15:11
Re: toll gate problem... - by Hoborific - 21.02.2012, 15:14
Re: toll gate problem... - by niels44 - 21.02.2012, 15:18
Re: toll gate problem... - by Toreno - 21.02.2012, 15:28
Re: toll gate problem... - by niels44 - 21.02.2012, 15:31
Re: toll gate problem... - by Toreno - 21.02.2012, 15:39
Re: toll gate problem... - by YoungWildFree - 21.02.2012, 15:41
Re: toll gate problem... - by niels44 - 21.02.2012, 16:03

Forum Jump:


Users browsing this thread: 1 Guest(s)