SA-MP Forums Archive
[Ajuda] SetPlayerChatBubble - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] SetPlayerChatBubble (/showthread.php?tid=320427)



[Ajuda] SetPlayerChatBubble - PlayeR_TheReturN - 22.02.2012

Estou a criar setplayerchatbubble para adminstradores so que , ele nao esta aparecendo tem algo errado?
pawn Код:
SetTimer("CoisasADM", 1000, true);

public CoisasADM()
{
    for(new i=0; i<MAX_PLAYERS; i++)
    {
        new string[256];
        new pname[MAX_PLAYER_NAME];
        GetPlayerName(i, pname, MAX_PLAYER_NAME);
        format(a_phile1, sizeof(a_phile1), DIRETORIO, pname);
        SetPlayerScore(i,DOF2_GetInt(a_phile1, "Level")); // Setando score p/ level ;D
        if(pAdmin[i] >= 1 && pAdmin[i] <= 5)
        {
            if(pAdmin[i] == 1)
            {
                SetPlayerChatBubble(i, "~> Moderador <~", 0x8080FFFF, 100.0, 10000);
            }
            if(pAdmin[i] == 2)
            {
                SetPlayerChatBubble(i, "~> Sub-Admin <~", 0x8080FFFF, 100.0, 10000);
            }
            if(pAdmin[i] == 3)
            {
                SetPlayerChatBubble(i, "~> Admin <~", 0x8080FFFF, 100.0, 10000);
            }
            if(pAdmin[i] == 4)
            {
                SetPlayerChatBubble(i, "~> Sub-Dono <~", 0x8080FFFF, 100.0, 10000);
            }
            if(pAdmin[i] == 5)
             {
                SetPlayerChatBubble(i, "~> Dono <~", 0x8080FFFF, 100.0, 10000);
            }
        }
        else {
            if(GetPlayerWantedLevel(i) > 0)
            {
                format(string,256,"~> Procurado Nivel %d <~",GetPlayerWantedLevel(i));
                SetPlayerChatBubble(i,string, Vermelho, 100.0, 10000);
            }
        }

    }
}



Re: [Ajuda] SetPlayerChatBubble - paulor - 22.02.2012

pelo q to vendo ta correto. um detalhe vc ta testando sozinho ou nгo ?


Re: [Ajuda] SetPlayerChatBubble - PlayeR_TheReturN - 22.02.2012

to testando sozin sim manin , niguem quer testar cmg '-'



Re: [Ajuda] SetPlayerChatBubble - zbt - 22.02.2012

Sozinho vocк nгo irб ver ¬¬'


Re: [Ajuda] SetPlayerChatBubble - Lucas_Alemao - 22.02.2012

Quote:
Originally Posted by PlayeR_TheReturN
Посмотреть сообщение
to testando sozin sim manin , niguem quer testar cmg '-'
kkkkk sosinho vc nгo vai ver nй


Re: [Ajuda] SetPlayerChatBubble - PlayeR_TheReturN - 22.02.2012

eu sei riariaria '-'


Re: [Ajuda] SetPlayerChatBubble - iChriSsS-CM - 23.02.2012

Se precisar de ajuda para testar pode falar comigo kk e jб naum fica Forever Alone


Re: [Ajuda] SetPlayerChatBubble - PlayeR_TheReturN - 23.02.2012

Quote:
Originally Posted by iChriSsS-CM
Посмотреть сообщение
Se precisar de ajuda para testar pode falar comigo kk e jб naum fica Forever Alone
Vlw, tranks

Quote:
Originally Posted by Andromeda
Посмотреть сообщение
Sai daqui troll noob '-'



Re: [Ajuda] SetPlayerChatBubble - iHaswell - 23.02.2012

Quote:
Originally Posted by PlayeR_TheReturN
Посмотреть сообщение
Vlw, tranks


Sai daqui troll noob '-'
Nгo se deprima eu cheguei =)
sei que tu me avia pedido isso no msn ... resolvi te ajudar =)

pawn Код:
//Em OnGameModeInt
AntiLagTimer();
//============

forward AntiLagTimer();
public AntiLagTimer()
{
    for(new i = 0; i < MAX_PLAYERS; ++i)
    {
        SetTimerEx("InformationBubble", 5000, true, "d", i);//nгo hб necessidade de ser 1000 (um segundo) pois o bubble dura 10 seg =)
    }
}

forward InformationBubble(playerid);
public InformationBubble(playerid)
{
    new string[128], nome[MAX_PLAYER_NAME];
    GetPlayerName(playerid, nome, MAX_PLAYER_NAME);
    format(a_phile1, sizeof(a_phile1), DIRETORIO, nome);
    SetPlayerScore(playerid, DOF2_GetInt(a_phile1, "Level")); // Setando o Level em Score
    if(pAdmin[playerid] >= 1 && pAdmin[playerid] <= 5)
    {
        if(pAdmin[playerid] == 1)
        {
            SetPlayerChatBubble(playerid, "~> Moderador <~", 0x8080FFFF, 100.0, 10000);
        }
        if(pAdmin[playerid] == 2)
        {
            SetPlayerChatBubble(playerid, "~> Sub-Admin <~", 0x8080FFFF, 100.0, 10000);
        }
        if(pAdmin[playerid] == 3)
        {
            SetPlayerChatBubble(playerid, "~> Admin <~", 0x8080FFFF, 100.0, 10000);
        }
        if(pAdmin[playerid] == 4)
        {
            SetPlayerChatBubble(playerid, "~> Sub-Dono <~", 0x8080FFFF, 100.0, 10000);
        }
        if(pAdmin[playerid] == 5)
        {
            SetPlayerChatBubble(playerid, "~> Dono <~", 0x8080FFFF, 100.0, 10000);
        }
    }
    else
    {
        if(GetPlayerWantedLevel(i) > 0)
        {
            format(string, 128, "~> Procurado Nivel %d <~", GetPlayerWantedLevel(playerid));
            SetPlayerChatBubble(playerid, string, Vermelho, 100.0, 10000);
        }
    }
}