21.10.2012, 15:06
tente assim!
pawn Код:
// Topo
new Text3D:TextLabel[MAX_PLAYERS];
//Onplayerspawn
if(GetPlayerTeam(playerid) == 1)
{
TextLabel[playerid] = CreateDynamic3DTextLabel("Militar", Azul_Claro, 0.0, 0.0, 0.4, 20.0, playerid, INVALID_VEHICLE_ID, 1, -1, -1, -1, 200.0);
UpdateDynamic3DTextLabelText(TextLabel[playerid]);
}
if(GetPlayerTeam(playerid) == 2)
{
TextLabel[playerid] = CreateDynamic3DTextLabel("Terrorista",Verde_Claro, 0.0, 0.0, 0.4, 20.0, playerid, INVALID_VEHICLE_ID, 1, -1, -1, -1, 200.0);
UpdateDynamic3DTextLabelText(TextLabel[playerid]);
}
//para destroir
if(IsValidDynamic3DTextLabel(TextLabel[playerid]))
{
DestroyDynamic3DTextLabel(TextLabel[playerid]);
TextLabel[playerid] = Text3D:INVALID_3DTEXT_ID;
}