14.02.2014, 22:28
pawn Код:
CMD:eu(playerid, params[]) {
if (isnull(params))
return SendClientMessage(playeriid, -1, "Use: /eu [aзгo]");
static
i,
e,
Float:Pos[3],
nome[24],
str[128]
;
GetPlayerName(playerid, nome, 24);
GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
format (str, 128, "%s - %s", nome, params);
for (i = 0, e = GetMaxPlayers(); i < e; ++i) {
if (IsPlayerConnected(i) && IsPlayerInRangeOfPoint(i, 20.0, Pos[0], Pos[1], Pos[2] )
SendClientMessage(i, -1, str);
}
return 1;
}