[Ajuda] mover SetPlayerChatBubble
#1

eu queria saber como faz para definir uma posiзгo para SetPlayerChatBubble

PHP код:
                format(strsizeof(str) ,"*PROCURADO*[%d]"GetPlayerWantedLevel(i));
                
SetPlayerChatBubble(istrCOLOR_RED20.010000); 
queria mover isso mais para cima pois tenho outros SetPlayerChatBubble e ele ta ficando em cima
Reply
#2

Se nгo me engano, isto nгo й possнvel.
Recomendo que use Create3DTextLabel
Reply
#3

mais isso nao й uma funзгo que cria texto em vao tipo no chao,parede etc? kkk
o SetPlayerChatBubble й um texto que fica em cima do player
Reply
#4

Sim, mas basta usar Attach3DTextLabelToPlayer junto com esta funзгo, fixando o texto no player.
Reply
#5

https://sampforum.blast.hk/showthread.php?tid=468638
Reply
#6

ta ja consegui arrumar mais tipo esse codigo:

PHP код:
format(othersizeof(other) ,"[P:%d]"GetPlayerWantedLevel(i)); 
aqui [P:%d] ele era para aparecer tipo [P:3] no server e la ele ta cortado nao aparece tudo fica sу [P

sistema completo

PHP код:
public TextProcu()
{
new 
string[26], other[4];
    for(new 
0MAX_PLAYERSi++)
    {
        if(
PlayerInfo[i][pAdmin] > 1format(stringsizeof(string) ,"*Administrador*");
        else if(
PlayerInfo[i][pSocio] > 0format(stringsizeof(string) ,"**SOCIO**");
        else if(
PlayerInfo[i][pVIP] > 1format(stringsizeof(string) ,"*SUPER-VIP*");
        else if(
PlayerInfo[i][pVIP] > 0format(stringsizeof(string) ,"**VIP**");
        else 
//caso for player normal
        
{
            if(
GetPlayerWantedLevel(i) > 0)
            {
                
format(stringsizeof(string) ,"*PROCURADO*[%d]"GetPlayerWantedLevel(i));
                
SetPlayerChatBubble(istringCOLOR_RED20.010000);
                continue;
            }
        }
        
format(othersizeof(other) ,"[P:%d]"GetPlayerWantedLevel(i));
        
SetPlayerChatBubble(istringCOLOR_RED20.010000);
        if(
GetPlayerWantedLevel(i) > 0strcat(stringother);
        
SetPlayerChatBubble(istringCOR_VAGOS20.010000);
    }

Reply
#7

Aumenta o tamanho da string other pra 7 ou 8
Reply
#8

e como deixo ele na COLOR_RED pois ele fica todo amarelo tipo *Administrador*[P:3] e queria que ficasse assim *Administrador*[P:3]

tentei setar a cor ali em baixo mais nao deu
PHP код:
        format(othersizeof(other) ," [P:%d]"GetPlayerWantedLevel(i));
        
SetPlayerChatBubble(istringCOLOR_RED20.010000); //<<<<<<<<<< aqui
        
if(GetPlayerWantedLevel(i) > 0strcat(stringother); 
Reply
#9

O erro pode ser na sua define, vocк pode estб definindo COLOR_RED para amarelo sem saber... Mas de todo modo, tente usar esta gambiarra
pawn Код:
{FF0000} [P:%d]
Contudo, recomendo que vocк cheque a sua define e por via das dъvidas, substitui a mesma por:
#define COLOR_RED 0xFF0000FF
Reply
#10

public TextProcu()
{
new string[26], other[4];
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(PlayerInfo[i][pAdmin] > 1) format(string, sizeof(string) ,"{FFFF00}*Administrador*");
else if(PlayerInfo[i][pSocio] > 0) format(string, sizeof(string) ,"**SOCIO**");
else if(PlayerInfo[i][pVIP] > 1) format(string, sizeof(string) ,"*SUPER-VIP*");
else if(PlayerInfo[i][pVIP] > 0) format(string, sizeof(string) ,"**VIP**");
else //caso for player normal
{
if(GetPlayerWantedLevel(i) > 0)
{
format(string, sizeof(string) ,"*PROCURADO*[%d]", GetPlayerWantedLevel(i));
SetPlayerChatBubble(i, string, COLOR_RED, 20.0, 10000);
continue;
}
}

format(other, sizeof(other) ,"{FF0000}[P:%d]", GetPlayerWantedLevel(i));
SetPlayerChatBubble(i, string, -1, 20.0, 10000);
if(GetPlayerWantedLevel(i) > 0) strcat(string, other);

SetPlayerChatBubble(i, string, COR_VAGOS, 20.0, 10000);

}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)