28.07.2012, 13:00
pawn Код:
CMD:checkweed(playerid, params[])
{
new success = 0;
for(new i = 0; i <= MAX_WEEDS; i++) {
if(IsPlayerInRangeOfPoint(playerid, 2.5, weedVariables[i][wPos][0], weedVariables[i][wPos][1], weedVariables[i][wPos][2])) {
success = 1;
return 1; //-Maybe?
}
}
if(success == 0)
return SendClientMessage(playerid, COLOR_LIGHTRED, "You are not near any fully grown weed plant!");
return 1;
}