[Ajuda] Create3DTextLabel
#1

Quero que vcs faiz uma tag vip pra mim com a variavel: PLAYER_VIP Com essa extenзгo "Create3dTextLabel"
Reply
#2

PHP код:
    new Text3D:TAG_ADMIN[MAX_PLAYERS]; /*GLOBAL*/
    
    
if(PLAYER_VIP[playerid])
    {
        
TAG_ADMIN[playerid] = Create3DTextLabel("ADMINISTRADOR"0x008080FF30.040.050.040.00);
        
Attach3DTextLabelToPlayer(TAG_ADMIN[playerid], playerid0.00.00.7);
    } 

Mais alguma coisa ?
Reply
#3

tenho um comando /tagvip em dialog onde muda a cor da tag VIP .
Eu botei isso lб no OnDialogResponse e deu 4 erros :
if( dialogid == D_TAGVIP )
{
if( response )
{
if( listitem == 0 )
{
if(PLAYER_VIP[playerid])
{
TAG_ADMIN[playerid] = Create3DTextLabel("VIP", 0xFFFFFFFF, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(TAG_ADMIN[playerid], playerid, 0.0, 0.0, 0.7);
}
}
}
}
Reply
#4

Quais os Erros poste os erros e o cуdigo em qual o erro esta
Reply
#5

editei a linha if(PLAYER_VIP[playerid]) para : if(pInfo[ playerid ][ PLAYER_VIP ] == 1 )
Agora deu certo. serб que quando o vip dar /Tagvip e colocar a primeira opзгo ou seja a tag dele ficar branca.
Serб que vai mudar. ou preciso definir uma string pra ele ?
Reply
#6

Quote:
Originally Posted by GuiKommander
Посмотреть сообщение
editei a linha if(PLAYER_VIP[playerid]) para : if(pInfo[ playerid ][ PLAYER_VIP ] == 1 )
Agora deu certo. serб que quando o vip dar /Tagvip e colocar a primeira opзгo ou seja a tag dele ficar branca.
Serб que vai mudar. ou preciso definir uma string pra ele ?
Usa a Gamemode do NWD ou WE?!
Observaзгo: Descobri pelo if(pInfo[playerid][PLAYER_VIP] == 1)!
Reply
#7

Quote:
Originally Posted by GuiKommander
Посмотреть сообщение
editei a linha if(PLAYER_VIP[playerid]) para : if(pInfo[ playerid ][ PLAYER_VIP ] == 1 )
Agora deu certo. serб que quando o vip dar /Tagvip e colocar a primeira opзгo ou seja a tag dele ficar branca.
Serб que vai mudar. ou preciso definir uma string pra ele ?
й para o player escolher a cor da tag vip ? entгo vocк deve deletar a tag antiga antes
https://sampwiki.blast.hk/wiki/Delete3DTextLabel
PHP код:
Delete3DTextLabel(TAG_ADMIN[playerid]);
TAG_ADMIN[playerid] = Create3DTextLabel("VIP"0xFFFFFFFF30.040.050.040.00);
Attach3DTextLabelToPlayer(TAG_ADMIN[playerid], playerid0.00.00.7); 
Reply
#8

bom ja tenho a tag vip salva sу com uma cor . ela ta em SetPlayerChatbuble tem algum problema ?
Reply


Forum Jump:


Users browsing this thread: 6 Guest(s)