Quote:
Originally Posted by The_Moddler
pawn Код:
stock IsPlayerNearBiz(playerid) { for(new C; C < IDBiz+1; C++) { if(IsPlayerInRangeOfPoint(playerid, 2.0, GetPVarFloat(C,"PickupX"),GetPVarFloat(C,"PickupY"), GetPVarFloat(C,"PickupZ"))) { return C; } else { return -1; } } }
|
Also this code is stupid.
If a player is not near a biz ID 1, the loop ends..