Quote:
Originally Posted by Bessensap
pawn Код:
if(!IsPlayerInRangeOfPoint(playerid,5.0,Thing[I][X],Thing[I][Y],Thing[I][Z]) return SendClientMessage(playerid,/*COLOR*/,/*Text*/);
|
Thanks, but that wouldt work, it would return that message each time it was false (9 to 10 times since the cycle runs 10 times)
Quote:
Originally Posted by Mauzen
This should work:
pawn Код:
new inarea = false; for(new I;I<10;I++) { if(IsPlayerInRangeOfPoint(playerid,5.0,Thing[I][X],Thing[I][Y],Thing[I][Z]); { if(Somethihg) { Some stuff here } else return SendClientmessage(playerid,COLOR,TExt); inarea = true; } else return SendClientmessage(playerid,COLOR,TExt); } if(!inarea) SendClientMessage(...); return 1;
|
Thanks, it did work...