CreatePlayer3DTextLabel ES

From SA-MP Wiki

Jump to: navigation, search



CreatePlayer3DTextLabel ES was added in SA-MP 0.3a ¡Este/a función fue agregado/a en SA-MP 0.3a y no funcionará en versiones anteriores!


Descripción:

Crear un 3DTextLabel para un jugador específico.


Image:32px-Circle-style-warning.png

Nota
Importante

La diferencia entre Player3DTextLabel y 3DTextLabel, es que 3DTextLabel se creará para todos los jugadores, y

Player3DTextLabel se creará para un jugador específico


Parámetros:
(playerid, text[], color, Float:X, Float:Y, Float:Z, Float:DrawDistance, attachedplayer, attachedvehicle, testLOS)
playeridLa ID del jugador.
text[]El texto del Player3DTextLabel
colorEl color del texto
Float:XLa coordenada del Player3DTextLabel X (o offsetX si es atado)
Float:YLa coordenada del Player3DTextLabel Y (o offsetY si es atado)
Float:ZLa coordenada del Player3DTextLabel Z (o offsetZ si es atado)
Float:DrawDistanceLa distancia en la que el jugador podrá ver el Player3DLabelText
attachedplayerSi se desea adjuntar a un jugador (Ninguno: INVALID_PLAYER_ID)
attachedvehicleSi se desea adjuntar a un vehículo (Ninguno: INVALID_VEHICLE_ID)
testLOSSi lo activa el texto no se podrá ver a través de las paredes


Return Values:

La ID del Player3DTextLabel.


Image:32px-Circle-style-warning.png

Nota
Importante

Si el 'text[]' está vacio, el servidor/cliente crashearán


if(strcmp(cmd, "/playerlabel", true) == 0)
{
    new PlayerText3D:playertextid;
    new Float:X, Float:Y, Float:Z;
    GetPlayerPos( playerid, X, Y, Z );
    playertextid = CreatePlayer3DTextLabel(playerid,"Hello\nI'm at your position",0x008080FF,X,Y,Z,40.0);
    return 1;
}
Image:32px-Ambox_warning_orange.png

Nota

Utilice los colores embebidos para múltiples colores en el texto.


Funciones relacionadas

Las siguientes funciones pueden ser útiles, ya que éstas están relacionadas con esta función de alguna u otra manera.