CreatePlayer3DTextLabel KO

From SA-MP Wiki

Jump to: navigation, search



CreatePlayer3DTextLabel KO was added in SA-MP 0.3a This function was added in SA-MP 0.3a and will not work in earlier versions!


Description:

선택된 플레이어에게만 텍스트를 생성한다.

. 번역자 : Cool

Parameters:
(playerid, text[], color, Float:X, Float:Y, Float:Z, Float:DrawDistance, attachedplayer, attachedvehicle, testLOS)
playerid텍스트를 생성시킬 플레이어
text[]플레이어에게 보여줄 문자열
color플레이어에게 보여줄 문자열의 색상
x위치할 맵의 X좌표
y위치할 맵의 Y좌표
z위치할 맵의 Z좌표)
DrawDistance텍스트가 보일 거리
attachedplayer텍스트가 따라다닐 플레이어의 id (안할시: INVALID_PLAYER_ID)
attachedvehicle텍스트가 따라다닐 차량의 id (안할시: INVALID_VEHICLE_ID)
testLOS0 - 맵을 통과하여 텍스트가 보임. 1 - 텍스트가 맵을 통과하지않는다.


Return Values:

플레이어에게 3D Text ID를 리턴


if(strcmp(cmd, "/playerlabel", true) == 0)
{
    new PlayerText3D:playertextid;
    new Float:X, Float:Y, Float:Z;
    GetPlayerPos( playerid, X, Y, Z );
    playertextid = CreatePlayer3DTextLabel(playerid,"나에게만 보이는 텍스트",0x008080FF,X,Y,Z,40.0);
    return 1;
}

Related Functions

The following functions may be useful, as they are related to this function in one way or another.


Personal tools
Navigation
Toolbox
In other languages