Jump to content
  • 0

pomoc 3d label


LosO

Dotaz

Ahoje,

 

Spravil som si že keď zapne niekdo misiu tak pripne k nemu 3d label to pripne v pohode ale keď ho chcem vypnut tak ho to nevypne.. tu je kod:

 

stock startlabl(playerid)
{
labl[playerid] = Create3DTextLabel("Hráč robí misiu !",0x00ff00ff,30.0, 40.0, 50.0, 40.0,0,0);
Attach3DTextLabelToPlayer(labl[playerid], playerid, 0.0, 0.0, 0.7);
}

Keď si zapnem misiu 

 startlabl(playerid);

vpohode mi to zobrazí ale ako náhle zruším misiu

endlabl(playerid);

tak mi to proste nezruší.. a label stále svieti..

 

Tu je stock na vypnutie:

stock endlabl(playerid)
{
DeletePlayer3DTextLabel(playerid, PlayerText3D:labl[playerid]);
}

 

Link to comment
Share on other sites

12 odpovědí na tuto otázku

Recommended Posts

  • 0

takto to mam

new PlayerText3D:labl[MAX_PLAYERS_EX];
stock startlabl(playerid)
{
labl[playerid] = CreatePlayer3DTextLabel(playerid,"Hráč robí misiu !",0x00ff00ff,30.0, 40.0, 50.0, 40.0,0,0);
Attach3DTextLabelToPlayer(labl[playerid], playerid, 0.0, 0.0, 0.7);
}
Link to comment
Share on other sites

  • 0

Jo vlastně, Player LabelTexty nemůžeš připnout k sobě - Protože PlayerLabelTexty vidíš jen ty, a LabelTexty připnutý k sobě nevidíš.
Takže

 
 
new Text3D:labl[MAX_PLAYERS];

stock startlabl(playerid)
{
labl[playerid] = Create3DTextLabel("Hráč robí misiu !",0x00ff00ff,30.0, 40.0, 50.0, 40.0,0,0);
Attach3DTextLabelToPlayer(labl[playerid], playerid, 0.0, 0.0, 0.7);
}

stock endlabl(playerid)
{
Delete3DTextLabel(labl[playerid]);
}
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...