03.01.2012, 19:30
Estude e adapte:
pawn Код:
CMD:eu(playerid,params[])
{
new texto, Float:PPos[3], nome[24];
if(sscanf(params, "s[100]", texto)) return SendClientMessage(playerid, -1, "USO: /eu {00E5FF}[Motivo]");
GetPlayerPos(playerid, PPos[0], PPos[1], PPos[2]);
GetPlayerName(playerid, nome, 24);
foreach(Player, i)
{
if(IsPlayerInRangeOfPoint(i, /*Distancia da mensagem*/, PPos[0], PPos[1], PPos[2])
{
new string[124];
format(string, 124, "%s %s", nome, texto);
SendClientMessage(i, -1, string);
}
}
return 1;
}