08.12.2011, 17:50
pawn Код:
#include <zcmd>
#include <sscanf>
new texto;
new nome[MAX_PLAYER_NAME];
new Str[128];
//topo gm
CMD:anunciar(playerid, params[])
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "{00E5FF}Vocк nгo estб autorizado.");
if(sscanf(params, "s[128]", texto)) return SendClientMessage(playerid, -1, "{00E5FF}Use: {FFFFFF}/anunciar [texto]");
GetPlayerName(playerid,nome,sizeof(nome));
format(Str, sizeof(Str),"Admin %s [ID:%d]: %s",nome,playerid,texto);
SendClientMessageToAll(-1,Str);
return 1;
}