SA-MP Forums Archive
[Ajuda] Attach3DTextLabelToPlayer Nгo Aparecee! - 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] Attach3DTextLabelToPlayer Nгo Aparecee! (/showthread.php?tid=362568)



Attach3DTextLabelToPlayer Nгo Aparecee! - iDeagle_Hurley - 24.07.2012

Tipo estou querendo assim se um player for admin й estiver em Modo Trabalho aparecer em cima dele
"Olб sou admin do Servidor\nPosso lhe ajudar em alguma coisa?" {Aparecer so pra admin em Modo Trabalho}
estou fazendo certinho copila й talz so nao aparece o texto!

Code que estou usando:
pawn Код:
if(PlayerInfo[playerid][pAdmin] >= 1)
    {
    new Text3D:label = Create3DTextLabel("{4169E1}Olб sou admin do Servidor\nPosso lhe ajudar em alguma coisa?", 0xFF0000, 0.0, 0.0, 0.0, 50.0, 0, 1);
    Attach3DTextLabelToPlayer(label, playerid,  0.0, 0.0, 2.0);
    }
Me Ajudem Dou +repu


Re: Attach3DTextLabelToPlayer Nгo Aparecee! - iDeagle_Hurley - 24.07.2012

alguem?


Re: Attach3DTextLabelToPlayer Nгo Aparecee! - Victor' - 24.07.2012

pawn Код:
//topo
new Text3D:label[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
    label[playerid] = Create3DTextLabel("{4169E1}Olб sou admin do Servidor\nPosso lhe ajudar em alguma coisa?", 0xFF0000, 0.0, 0.0, 0.0, 50.0, 0);
    return 1;
}

public OnPlayerUpdate(playerid)
{
    if(PlayerInfo[playerid][pAdmin] >= 1)
    {
        Attach3DTextLabelToPlayer(label[playerid], playerid,  0.0, 0.0, 2.0);
    }
    return 1;
}



Re: Attach3DTextLabelToPlayer Nгo Aparecee! - zbt - 24.07.2012

if(PlayerInfo[playerid][pAdmin] >= 1) {
if(variaveldomododetrabalho[playerid]) {
...


Re: Attach3DTextLabelToPlayer Nгo Aparecee! - Pedro_BML - 24.07.2012

Po mano por que nгo usa SetPlayerChatBubble?

SetPlayerChatBubble(playerid, "Olб, sou ADM do servidor.\nPosso ajudar?", 0xFF0000FF, 50.0, 10000);

SetPlayerChatBubble


Re: Attach3DTextLabelToPlayer Nгo Aparecee! - iDeagle_Hurley - 24.07.2012

Quote:
Originally Posted by Victor'
Посмотреть сообщение
pawn Код:
//topo
new Text3D:label[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
    label[playerid] = Create3DTextLabel("{4169E1}Olб sou admin do Servidor\nPosso lhe ajudar em alguma coisa?", 0xFF0000, 0.0, 0.0, 0.0, 50.0, 0);
    return 1;
}

public OnPlayerUpdate(playerid)
{
    if(PlayerInfo[playerid][pAdmin] >= 1)
    {
        Attach3DTextLabelToPlayer(label[playerid], playerid,  0.0, 0.0, 2.0);
    }
    return 1;
}
me ajudou muito vlw!
+REP Pra tuu


Re: Attach3DTextLabelToPlayer Nгo Aparecee! - iDeagle_Hurley - 24.07.2012

eu desistir de fazer com 3Dlabel

resolvir fazer com SetPlayerChatBubble

entгo fiz certinho mais apresenta os seguintes erros:
pawn Код:
C:\Users\Windows 7\Desktop\samp03e_svr_win32 (1)\gamemodes\Bac.pwn(18940) : warning 217: loose indentation
C:\Users\Windows 7\Desktop\samp03e_svr_win32 (1)\gamemodes\Bac.pwn(18942) : warning 217: loose indentation
C:\Users\Windows 7\Desktop\samp03e_svr_win32 (1)\gamemodes\Bac.pwn(69341) : error 017: undefined symbol "playerid"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
me ajudem ae pessoal dou +repu


Re: Attach3DTextLabelToPlayer Nгo Aparecee! - iDeagle_Hurley - 24.07.2012

alguem . . . .


Re: Attach3DTextLabelToPlayer Nгo Aparecee! - iDeagle_Hurley - 25.07.2012

alguem . . . . . . .


Re: Attach3DTextLabelToPlayer Nгo Aparecee! - Victor' - 25.07.2012

Poste a linha! E pare de spam...