26.06.2012, 12:26
Ok i fix it
but there is new problem money stop take off only then i drive away but while i stand in range point i have 20 times -20 bucks
Quote:
forward Gates7Check(playerid); public Gates7Check(playerid) { new gates7_status; for(new all = 0;all<MAX_PLAYERS;all++) { if(!IsPlayerConnected(all)) continue; if(IsPlayerInRangeOfPoint(all,10.0, -1674.90002441, 548.09997559, 38.90000153))gates7_status=1; if(IsPlayerInRangeOfPoint(all,10.0, -1674.90002441, 548.09997559, 38.90000153)) { GivePlayerMoney(all,-20); SendClientMessage(all,0xFFFAAA,"You Have paid for toll."); } } if(gates7_status)MoveObject(gates7, -1674.90002441, 548.09997559, 34.90000153, 0.5); else MoveObject(gates7, -1674.90002441, 548.09997559, 38.90000153, 6.5); return; } |