01.11.2012, 20:37
pawn Код:
CMD:noticiar(playerid, params[]) {
new news[128];
if(sscanf(params, "s[128]", news))
return SendClientMessage(playerid, -1, "/noticiar [blбblб]");
new Float:p[3], s[128];
for(new i; i < MAX_PLAYERS; ++i) {
GetPlayerPos(i, p[0], p[1], p[2]);
if(p[0] >= 44.60 && p[1] >= -2892.90 && p[0] <= 2997.00 && p[1] <= -768.00) {
format(s, 128, "[LosSantos]: %s", news);
SendClientMessage(i, -1, s);
}
if(p[0] >= 869.40 && p[1] >= 596.30 && p[0] <= 2997.00 && p[1] <= 2993.80) {
format(s, 128, "[LasVenturas]: %s", news);
SendClientMessage(i, -1, s);
}
if(p[0] >= -1377.989 && p[1] >= -2989.536 && p[0] <= 1599.869 && p[1] <= -1004.297) {
format(s, 128, "[SanFierro]: %s", news);
SendClientMessage(i, -1, s);
}
}
return true;
}