[Ajuda] Attach3DTextLabelToPlayer Nгo Aparecee!
#1

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
Reply
#2

alguem?
Reply
#3

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;
}
Reply
#4

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

Po mano por que nгo usa SetPlayerChatBubble?

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

SetPlayerChatBubble
Reply
#6

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
Reply
#7

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
Reply
#8

alguem . . . .
Reply
#9

alguem . . . . . . .
Reply
#10

Poste a linha! E pare de spam...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)