Use sscanf2.
pawn Код:
CMD:f(playerid,params[])
{
static texto[128],nome[25],Float:cord[3],string[128];
if(sscanf(params,"s[128]",texto)) return SendClientMessage(playerid,-1,"/a [texto] ");
GetPlayerPos(playerid, cord[0],cord[1],cord[2]);
GetPlayerName(playerid, nome, 25);
format(string, 128,"{CD00CD}%s fala: %s", nome,texto);
for(for new i = 0; i != MAX_PLAYERS;++i) {
if(!IsPlayerInRangeOfPoint(x, 10.0,cord[0],cord[1],cord[2])) continue;
SendClientMessage(x, 0xFFFFFFAA, string);
}
return 1;
}