11.07.2013, 10:32
My first piece of code i did without looking anything up, is this efficient?
Код:
forward SendLocalMessage(playerid, color, message[]); public SendLocalMessage(playerid, color, message[]) { for(new i = 0; i < MAX_PLAYERS; i++) { new Float:x, Float:y, Float:z; GetPlayerPos(playerid, x, y, z); if(IsPlayerInRangeOfPoint(i, 10.0, x, y, z)) { SendClientMessage(i, color, message); } } return 1; }