[Ajuda] Attach3DTextLabelToPlayer
#1

Oi. Quero saber, como posso usar a funзгo Attach3DTextLabelToPlayer , Para botar uma 3DText Em cima da cabeзa de um jogador, de a cordo com a organizaзгo dele.

Exemplo, se o player for da Groove, ficarб em cima da cabeзa dele : Groove.

entenderam ?

Obrigado. xD
Reply
#2

й so usar uma condiзгo.

Exemplo
PHP код:
if(variaveldeorg[playerid] == GROOVE)
{

funзгo de 3DTextLabel

Reply
#3

Quote:
Originally Posted by DrTHE
Посмотреть сообщение
й so usar uma condiзгo.

Exemplo
PHP код:
if(variaveldeorg[playerid] == GROOVE)
{
funзгo de 3DTextLabel

Eu tentei fazer assim :

pawn Код:
#define teamid GetPlayerTeam()


OnGameModeInit :

    new Text3D:label = Create3DTextLabel("teste",Azul_Claro, 30.0, 40.0, 50.0, 40.0, 0);
    Attach3DTextLabelToPlayer(label,teamid, 0.0, 0.0, 0.7);

Mais da Warning e nгo sei se da certo.
Reply
#4

UP :\
Reply
#5

Vocк ta usando SetPlayerTeam ou variavel nas organizaзхes ?
Reply
#6

Quote:
Originally Posted by BreakDriFT
Посмотреть сообщение
Vocк ta usando SetPlayerTeam ou variavel nas organizaзхes ?
pawn Код:
#define Exemplo            (1)


public OnPlayerRequestClass(playerid, classid)
{
    switch(classid)
    {
         case 0:
         {
              SetPlayerTeam(playerid, Exemplo);
              GameTextForPlayer(playerid, "Exemplo", 2500, 3);
              SetPlayerColor(playerid,Verde_Claro);
              SetSpawnInfo(playerid,Exercito,287,156.8867,1903.3468,18.6473,269.5479,0,0,0,0,0,0);
             
         }
Reply
#7

PHP код:
public OnPlayerSpawn(playerid)
{
    if(
GetPlayerTeam(playerid) == exemplo)
    {
        new 
Text3D:label Create3DTextLabel("Groove"0x008080FF30.040.050.040.0,0);
        
Attach3DTextLabelToPlayer(labelplayerid0.00.00.7);
    }
    return 
1;

Reply
#8

Quote:
Originally Posted by BreakDriFT
Посмотреть сообщение
OnPlayerSpawn ou outra callback.

Код:
if(GetPlayerTeam(playerid) == exemplo)
{  
	new Text3D:label = Create3DTextLabel("Groove", 0x008080FF, 30.0, 40.0, 50.0, 40.0,0);
	Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7);
}
Show cara, Deu tudo certo. + REP.

Cara, tem como vocк entrar no meu servidor so para testar isso ? vai ser rбpido, tem ninguem para testar.

Se puder , IP :177.180.118.180

Obrigado.


Edit :

Como eu acho as cordeadas de cima da cabeзa ?
Reply
#9

Jб ta em cima do jogador.
Reply
#10

Quote:
Originally Posted by BreakDriFT
Посмотреть сообщение
Jб ta em cima do jogador.
Ta muito em cima vei, quase 1 km

kkk

tem como ficar mais perto da cabeзa nгo ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)