04.11.2014, 23:05
Try this:
And this:
Код:
stock SendLocalClientMessage(playerid, Float:dist, color, str[]) { if(IsPlayerConnected(playerid)) { new Float:ppos[3]; GetPlayerPos(playerid, ppos[0], ppos[1], ppos[2]); SendClientMessage(playerid, color, str); foreach(Player, i) if(IsPlayerInRangeOfPoint(i, dist, ppos[0], ppos[1], ppos[2])) { return SendClientMessage(i, color, str); } } return 1; }
Код:
CMD:test(playerid, params[]) { SendLocalClientMessage(playerid, COLOR_WHITE, "TEST 123"); return 1; }