25.11.2012, 11:54
Hi,
I have a problem with the 3D Text Labels, when I use the function to attach them on a player (Attach3DTextLabelToPlayer), it disappears automatically after that someone talk or use a commande (every player).
Even when I try it in a FilterScript as simple as that:
it doesn't work and disappears...
Thanks.
I have a problem with the 3D Text Labels, when I use the function to attach them on a player (Attach3DTextLabelToPlayer), it disappears automatically after that someone talk or use a commande (every player).
Even when I try it in a FilterScript as simple as that:
pawn Код:
#define FILTERSCRIPT
#include <a_samp>
new Text3D:TestLabel[MAX_PLAYERS];
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/TestLabel", cmdtext, true) == 0)
{
TestLabel[playerid] = Create3DTextLabel("Label test",0xc2a2daFF,30.0,40.0,50.0,10.0,-1,1);
Attach3DTextLabelToPlayer(TestLabel[playerid], playerid, 0.0, 0.0, 0.4);
return 1;
}
return 0;
}
Thanks.