SA-MP Forums Archive
[Ajuda] Texto encima da Cabeзa - 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] Texto encima da Cabeзa (/showthread.php?tid=226080)



[Ajuda] Texto encima da Cabeзa - Jorge_Hard - 14.02.2011

Entao galera outro post de ajuda kk.

Gostaria de saber como ponho por exemplo o adm digita /servicoadmin.

Aparece encima da cabeзa dele ADMIN: Posso ajudar?

Entende?.

Queria fazer isso.

Se alguem souber agradeзo novamente


Re: [Ajuda] Texto encima da Cabeзa - Macintosh - 14.02.2011

pawn Код:
public OnPlayerText(playerid, text[])
{
    if(admintrampando[playerid] = 1)
    {
    SetPlayerChatBubble(playerid, ADMIN Posso Ajudar?, 0xFF0000FF, 100.0, 10000);
    return 1;
    }
    return 1;
}



Re: [Ajuda] Texto encima da Cabeзa - Jorge_Hard - 15.02.2011

Vlws so vi hoje kk >D Tanks


Re: [Ajuda] Texto encima da Cabeзa - Jorge_Hard - 15.02.2011

Como boto tipo quando liga o /sa ele liga quando desliga ele desliga

@Edit esse comando ta dando erro


Re: [Ajuda] Texto encima da Cabeзa - Yakushi Icefox - 15.02.2011

pawn Код:
public OnPlayerText(playerid, text[])
{
    if(admintrampando[playerid] = 1)
    {
    SetPlayerChatBubble(playerid, "ADMIN Posso Ajudar?", 0xFF0000FF, 100.0, 10000);
    return 1;
    }
    return 1;
}
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    new cmd[256], idx;
    cmd = strtok(cmdtext, idx);
    if (strcmp(cmd, "/sa", true) == 0)
    {
                switch(admintrampando[playerid]) {
                        case 0: admintrampando[playerid] = 1; //liga
                        case 1: admintrampando[playerid] = 0; //desliga
                        default: return 0;
                }
                return 1;
        }
return 0;
}



Re: [Ajuda] Texto encima da Cabeзa - Comando Thug - 15.02.2011

Tenho uma dъvida: Como disfaz, ou seja, destrуi o PlayerChatBubble ??


Re: [Ajuda] Texto encima da Cabeзa - rjjj - 15.02.2011

Quote:
Originally Posted by Comando Thug
Посмотреть сообщение
Tenho uma dъvida: Como disfaz, ou seja, destrуi o PlayerChatBubble ??
Bom, ele se destrуi automaticamente depois do tempo marcado:

Код:
SetPlayerChatBubble(playerid, "ADMIN Posso Ajudar?", 0xFF0000FF, 100.0, 10000);
E nгo hб funзгo de destruir o Chat Bubble, mas hб de destruir o Text3D que й quase a mesma coisa


Fiz agora uma baseada no funcionamento do SetPlayerChatBubble, nгo testei mas provavelmente deve funcionar :


pawn Код:
stock HidePlayerChatBubble(playerid)
{
    new bolha[10],x = 0;
    while(x < sizeof(bolha)) bolha[x] = '\0',x++;
    SetPlayerChatBubble(playerid, bolha, 0xFF0000FF, 100.0, true);
    return 1;
}

Espero ter ajudado


Re: [Ajuda] Texto encima da Cabeзa - Macintosh - 15.02.2011

Nгo tem como destruir ou mesmo apagar o ChatBubble.
Faзa o que o Rjjj postou ...