SA-MP Forums Archive
[Ajuda] E possivel fazer um Attach3DTextLabelToPlayer para admin ? - 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] E possivel fazer um Attach3DTextLabelToPlayer para admin ? (/showthread.php?tid=556577)



E possivel fazer um Attach3DTextLabelToPlayer para admin ? - VinnyScript - 11.01.2015

Poderiao me ajudar ? tipo esse codigo eu fiz Para ficar no Jogador AFK mas nao estou acertando como Admin.
poderiao me ajudar ?
Код:
	AfkTD[playerid] = Create3DTextLabel("Jogador Ausente", 0xFF0000FF, 20.0, 20.0, 20.0, 20.0, 0);
		Attach3DTextLabelToPlayer(AfkTD[playerid], playerid, 0.0, 0.0, 0.4);
		TextDrawShowForPlayer(playerid, AFKTD2);



Re: E possivel fazer um Attach3DTextLabelToPlayer para admin ? - Gii - 11.01.2015

pawn Код:
// abaixo das includes
new Text3D:textAdmin[MAX_PLAYERS];

// logo apуs carregar os dados da conta do jogador e dar spawn
if ( PlayerInfo[playerid][pAdmin] > 0 ) {
   
    textAdmin[playerid] = Create3DTextLabel("Admin", 0xFF0000FF, 20.0, 20.0, 20.0, 20.0, 0);
    Attach3DTextLabelToPlayer(textAdmin[playerid], playerid, 0.0, 0.0, 0.4);   
}
OBS: Substitua a variбvel PlayerInfo[playerid][pAdmin] pela variбvel do seu GM que guarda o "nнvel de administrador" de determinado player.


Re: E possivel fazer um Attach3DTextLabelToPlayer para admin ? - VinnyScript - 11.01.2015

obrigado


Re: E possivel fazer um Attach3DTextLabelToPlayer para admin ? - VinnyScript - 11.01.2015

Nao Estou conseguindo :v me de mais uma informзao


Re: E possivel fazer um Attach3DTextLabelToPlayer para admin ? - WeslleyScript - 11.01.2015

Se for destб maneira so da um da uma olhada aq Clique aqui olha ai dps...


Re: E possivel fazer um Attach3DTextLabelToPlayer para admin ? - VinnyScript - 11.01.2015

C:\Users\Vinny3D\Desktop\City Brasil Drift V1.a\gamemodes\CBD.pwn(8241) : error 010: invalid function or declaration
C:\Users\Vinny3D\Desktop\City Brasil Drift V1.a\gamemodes\CBD.pwn(17232) : warning 203: symbol is never used: "adminonline"


Re: E possivel fazer um Attach3DTextLabelToPlayer para admin ? - s4kuL - 11.01.2015

Quote:
Originally Posted by VinnyScript
Посмотреть сообщение
C:\Users\Vinny3D\Desktop\City Brasil Drift V1.a\gamemodes\CBD.pwn(8241) : error 010: invalid function or declaration
C:\Users\Vinny3D\Desktop\City Brasil Drift V1.a\gamemodes\CBD.pwn(17232) : warning 203: symbol is never used: "adminonline"
Posta as linhas do erro?


Re: E possivel fazer um Attach3DTextLabelToPlayer para admin ? - VinnyScript - 11.01.2015



olha
Код:
}
         if(pDados[playerid][Admin] < 1 ) {
         adminonline[playerid] = Create3DTextLabel("Admin", 0xFF0000FF, 20.0, 20.0, 20.0, 20.0, 0);
         Attach3DTextLabelToPlayer(adminonline[playerid], playerid, 0.0, 0.0, 0.4);
    }



Re: E possivel fazer um Attach3DTextLabelToPlayer para admin ? - ZeZin - 11.01.2015

Troque < por >


Re: E possivel fazer um Attach3DTextLabelToPlayer para admin ? - s4kuL - 11.01.2015

Pelo que entendi, tente usar isso:

pawn Код:
new Text3D:adminonline[MAX_PLAYERS];

if(pDados[playerid][Admin] > 0) {
    adminonline[playerid] = Create3DTextLabel("Admin", 0xFF0000FF, 20.0, 20.0, 20.0, 20.0, 0);
    Attach3DTextLabelToPlayer(adminonline[playerid], playerid, 0.0, 0.0, 0.4);
}