[AJUDA] Comando, й escroto mas..
#6

pawn Код:
if(strcmp(cmd, "/a", true) == 0 || strcmp(cmd, "/admin", true) == 0)
    {
        if(Administrador[playerid] == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "Vocк nгo й um {FF5500}Administrador"); //Bote a variavel do Administrador
        if(Administrador[playerid] >= 1) //Bote a variavel do Administrador
        {
            strmid(tmp, cmdtext, 2, strlen(cmdtext));
            if(strlen(tmp) == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "Use: /a [texto]");
            if(IsPlayerConnected(playerid))
            {
                GetPlayerName(playerid, Nome, sizeof(Nome));
                format(string, sizeof(string), "Chat: Level: %d Administrador: %s Diz: %s",Administrador[playerid], Nome,tmp);
                MensagemParaAdmin(0x1E90FFFF, string);
                return 1;
            }
        }
    }
pawn Код:
forward MensagemParaAdmin(COLOR,const string[]);
public MensagemParaAdmin(COLOR,const string[])
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(Administrador[i])// Troque pela variavel de adm do seu gm
            {
                SendClientMessage(i, COLOR, string);
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
[AJUDA] Comando, й escroto mas.. - by Bryaan_Smith - 29.09.2011, 17:06
Re: [AJUDA] Comando, й escroto mas.. - by CristoferBahr - 29.09.2011, 17:15
Re: [AJUDA] Comando, й escroto mas.. - by CyNiC - 29.09.2011, 17:16
Re: [AJUDA] Comando, й escroto mas.. - by Bryaan_Smith - 29.09.2011, 17:17
Re: [AJUDA] Comando, й escroto mas.. - by WLSF - 29.09.2011, 17:24
Re: [AJUDA] Comando, й escroto mas.. - by Lipe_Stronda - 29.09.2011, 18:49

Forum Jump:


Users browsing this thread: 1 Guest(s)