25.03.2012, 19:11
pawn Code:
CMD:anuncio (playerid, params[])
{
new Nome[MAX_PLAYER_NAME], texto[128];
GetPlayerName(playerid, Nome sizeof(Nome));
if(sscanf(params, "s", texto)) return SendClientMessage(playerid, -1, "use: /anuncio [texto]");
new string2[128];
format(string2, sizeof(string2), "Anuncio de %s: %s", Nome, texto);
SendClientMessageToAll(-1, string2);
return 1;
}