[Ajuda] Chat de Admin
#7

sу para testar....
aproveitando o cуdigo do funeral tente assim:

pawn Код:
dcmd_a(playerid, params[]) {
     new Texto[250], Nome[24];
     if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xFFFFFFAA,"{FF0000}| FAIL | {FFFFFF}Desculpe, apenas os administradores podem usar esse comando!");
     if(sscanf(params, "s[250]", Texto)) return SendClientMessage(playerid, -1, "{FF0000} | FAIL | {FFFFFF}/a [Texto]");
     GetPlayerName(playerid, Nome, 24);
     format(String, sizeof(String), "{FFFF00}| Administrador | {FFFFFF}%s diz: %s", Nome, Texto);
     for(new i; i < MAX_PLAYERS; i++) {
          if(IsPlayerAdmin(playerid)) {
             SendPlayerMessage(i, -1, String);//Mudei o SendClientMessage para SendPlayerMessage n sei se vai funcionar
          }
     }
     return 1;
}
Reply


Messages In This Thread
Chat de Admin - by clerISoN - 23.05.2013, 01:38
Re: Chat de Admin - by .FuneraL. - 23.05.2013, 01:43
Re: Chat de Admin - by Kmatsu - 23.05.2013, 01:44
Re: Chat de Admin - by Gii - 23.05.2013, 01:44
Re: Chat de Admin - by clerISoN - 23.05.2013, 01:58
Re: Chat de Admin - by .FuneraL. - 23.05.2013, 02:00
Re: Chat de Admin - by focaximubh - 23.05.2013, 02:00
Re: Chat de Admin - by clerISoN - 23.05.2013, 02:10
Re: Chat de Admin - by clerISoN - 23.05.2013, 16:25

Forum Jump:


Users browsing this thread: 2 Guest(s)