mover SetPlayerChatBubble -
igor97m - 30.12.2014
eu queria saber como faz para definir uma posiзгo para SetPlayerChatBubble
PHP код:
format(str, sizeof(str) ,"*PROCURADO*[%d]", GetPlayerWantedLevel(i));
SetPlayerChatBubble(i, str, COLOR_RED, 20.0, 10000);
queria mover isso mais para cima pois tenho outros SetPlayerChatBubble e ele ta ficando em cima
Re: mover SetPlayerChatBubble -
Artista - 30.12.2014
Se nгo me engano, isto nгo й possнvel.
Recomendo que use
Create3DTextLabel
Re: mover SetPlayerChatBubble -
igor97m - 30.12.2014
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
Re: mover SetPlayerChatBubble -
Artista - 30.12.2014
Sim, mas basta usar
Attach3DTextLabelToPlayer junto com esta funзгo, fixando o texto no player.
Respuesta: mover SetPlayerChatBubble -
Zume - 30.12.2014
https://sampforum.blast.hk/showthread.php?tid=468638
Re: mover SetPlayerChatBubble -
igor97m - 30.12.2014
ta ja consegui arrumar
mais tipo esse codigo:
PHP код:
format(other, sizeof(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 i = 0; i < MAX_PLAYERS; i++)
{
if(PlayerInfo[i][pAdmin] > 1) format(string, sizeof(string) ,"*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) ,"[P:%d]", GetPlayerWantedLevel(i));
SetPlayerChatBubble(i, string, COLOR_RED, 20.0, 10000);
if(GetPlayerWantedLevel(i) > 0) strcat(string, other);
SetPlayerChatBubble(i, string, COR_VAGOS, 20.0, 10000);
}
}
Re: mover SetPlayerChatBubble -
Artista - 30.12.2014
Aumenta o tamanho da string other pra 7 ou 8
Re: mover SetPlayerChatBubble -
igor97m - 30.12.2014
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(other, sizeof(other) ," [P:%d]", GetPlayerWantedLevel(i));
SetPlayerChatBubble(i, string, COLOR_RED, 20.0, 10000); //<<<<<<<<<< aqui
if(GetPlayerWantedLevel(i) > 0) strcat(string, other);
Re: mover SetPlayerChatBubble -
Artista - 30.12.2014
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
Contudo, recomendo que vocк cheque a sua define e por via das dъvidas, substitui a mesma por:
#define COLOR_RED 0x
FF0000FF
Re: mover SetPlayerChatBubble -
ZeZin - 30.12.2014
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);
}