Attach3DTextLabelToPlayer(
#2

pawn Код:
new Text3D:Equipo[MAX_PLAYERS];
new string [128];

public OnPlayerConnect(playerid)
{
    Update3DTextLabelText(Equipo[playerid], 0x008080FF, string); //Actualiza un texto 3D texto de la etiqueta y el color
    format(string, sizeof(string), "Entro al Server");
    Equipo[playerid] = CreatePlayer3DTextLabel(string, 0x008080FF, 30.0, 40.0, 5.0, 40.0, 1); //Crear una etiqueta de texto en 3D para uno de los jugadores.
    Attach3DTextLabelToPlayer(Equipo[playerid], playerid, 0.0, 0.0, 1.1); //Coloca una etiqueta de texto en 3D para el jugador.
    return 1;
}

public OnPlayerSpawn(playerid)
{
    if(gTeam[playerid] == TEAM_1)
    {
        Update3DTextLabelText(Equipo[playerid], 0x008080FF, string); //Actualiza un texto 3D texto de la etiqueta y el color
        format(string, sizeof(string), "Equipo 1");
        Equipo[playerid] = CreatePlayer3DTextLabel(string, 0x008080FF, 30.0, 40.0, 5.0, 40.0, 1); //Crear una etiqueta de texto en 3D para uno de los jugadores.
        Attach3DTextLabelToPlayer(Equipo[playerid], playerid, 0.0, 0.0, 1.1); //Coloca una etiqueta de texto en 3D para el jugador.
    }
    if(gTeam[playerid] == TEAM_2)
    {
        Update3DTextLabelText(Equipo[playerid], 0x008080FF, string); //Actualiza un texto 3D texto de la etiqueta y el color
        format(string, sizeof(string), "Equipo 2");
        Equipo[playerid] = CreatePlayer3DTextLabel(string, 0x008080FF, 30.0, 40.0, 5.0, 40.0, 1); //Crear una etiqueta de texto en 3D para uno de los jugadores.
        Attach3DTextLabelToPlayer(Equipo[playerid], playerid, 0.0, 0.0, 1.1); //Coloca una etiqueta de texto en 3D para el jugador.
    }
    return 1;
}
https://sampwiki.blast.hk/wiki/CreatePlayer3DTextLabel
Reply


Messages In This Thread
Attach3DTextLabelToPlayer( - by chucho - 19.03.2012, 03:26
Respuesta: Attach3DTextLabelToPlayer( - by OTACON - 19.03.2012, 04:08
Respuesta: Attach3DTextLabelToPlayer( - by chucho - 19.03.2012, 22:10
Respuesta: Attach3DTextLabelToPlayer( - by chucho - 19.03.2012, 23:10
Respuesta: Attach3DTextLabelToPlayer( - by Lunnatiicz - 19.03.2012, 23:46
Respuesta: Attach3DTextLabelToPlayer( - by chucho - 20.03.2012, 00:11
Re: Attach3DTextLabelToPlayer( - by dis77urbio - 20.03.2012, 00:20
Respuesta: Attach3DTextLabelToPlayer( - by chucho - 20.03.2012, 00:28
Respuesta: Attach3DTextLabelToPlayer( - by OTACON - 20.03.2012, 02:39
Respuesta: Attach3DTextLabelToPlayer( - by Jovanny - 20.03.2012, 03:34

Forum Jump:


Users browsing this thread: 1 Guest(s)