20.02.2012, 18:59
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?
greets niels
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;
}