21.10.2012, 22:37
I've tried to make this 3d txt label to evry players who spawn ! but it works only with the last player spawn! we can't see the other players txt label
Код:
new Text3D:label[MAX_PLAYERS];
public OnPlayerSpawn(playerid)
{
Delete3DTextLabel(label[playerid]);
if(team[playerid] == 1)
{
label[playerid] = Create3DTextLabel("Human", 0xB4040477, 30.0, 40.0, 50.0, 40.0, 0);
Update3DTextLabelText(label[playerid], 0xB4040477, "Human");
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7);
return 1;
}
if(team[playerid] == 1)
{
label[playerid] = Create3DTextLabel("Animal", 0xB4040477, 30.0, 40.0, 50.0, 40.0, 0);
Update3DTextLabelText(label[playerid], 0xB4040477, "Animal");
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7);
return 1;
}


) ! this isn't solving my problem