30.01.2012, 07:17
pawn Код:
// Top of the script
Text3D: AFKPlayer[MAX_PLAYERS],
//Where ever needed
AFKPlayer[playerid] = Create3DTextLabel("Away from keyboard", 0xFFFFFFFF, 0.0, 0.0, 2.0, 40, 0, 0);
Attach3DTextLabelToPlayer(AFKPlayer[playerid], playerid, 0.0, 0.0, 0.4);
pawn Код:
// Top of the script under the includes
new PlayerText3D:playertextid;
// Where needed
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);
SendClientMessage(playerid, 0xFFFFFFFF, "You are being followed!");