[Ajuda] SetPlayerChatBubble
#9

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);
        }
    }
}
Reply


Messages In This Thread
[Ajuda] SetPlayerChatBubble - by PlayeR_TheReturN - 22.02.2012, 21:41
Re: [Ajuda] SetPlayerChatBubble - by paulor - 22.02.2012, 22:44
Re: [Ajuda] SetPlayerChatBubble - by PlayeR_TheReturN - 22.02.2012, 22:45
Re: [Ajuda] SetPlayerChatBubble - by zbt - 22.02.2012, 23:22
Re: [Ajuda] SetPlayerChatBubble - by Lucas_Alemao - 22.02.2012, 23:33
Re: [Ajuda] SetPlayerChatBubble - by PlayeR_TheReturN - 22.02.2012, 23:43
Re: [Ajuda] SetPlayerChatBubble - by iChriSsS-CM - 23.02.2012, 16:11
Re: [Ajuda] SetPlayerChatBubble - by PlayeR_TheReturN - 23.02.2012, 16:37
Re: [Ajuda] SetPlayerChatBubble - by iHaswell - 23.02.2012, 19:23

Forum Jump:


Users browsing this thread: 1 Guest(s)