stock SendLocalActionMessage(playerid, action[]) { new str[128]; new Float ![]() GetPlayerPos(playerid, x, y, z); format(str, sizeof(str), "%s %s", GetPlayerCleanName(playerid), action); for(new i; i < MAX_PLAYERS; i++) { if(IsPlayerInRangeOfPoint(i, 8, x, y, z) SendClientMessage(i, COLOR_RPMESSAGE, str); } return 1; } |
if(IsPlayerInRangeOfPoint(i, 8, x, y, z) SendClientMessage(i, COLOR_RPMESSAGE, str);