25.12.2012, 23:43
now i made command:
but i want hat this message can see only players in range, how to make this?
Код:
CMD:e(playerid, params[]) { new tekst[128], string[128], id; new Float:x, Float:y, Float:z; if(PlayerInfo[playerid][pAdmin] < 1)return SendClientMessage(playerid, COLOR_WHITE, "Samo admini"); else if(sscanf(params, "s[128]", tekst))return SendClientMessage(playerid, COLOR_WHITE, "/e [Tekst]"); GetPlayerPos(playerid, x, y, z); if(IsPlayerInRangeOfPoint(playerid, 100.0, x, y, z)) { format(string, sizeof(string), "(( Admin %s: %s ))", PlayerName(playerid), tekst); SendClientMessage(id, -1, string); } return 1; }