23/12/2020 09:09
Bom fiz essa TextDraw para marca a distancia da pessoa para o Objeto, certo até tudo bem, mais queria saber como faço para remover essa TextDraw quando a pessoa sair da zona aonde a TextDraw se ativa com o comando.
Código:
DistanceTD[playerid] = CreatePlayerTextDraw(playerid, 87.333358, 317.573242, "Distanta_xxxM");
PlayerTextDrawLetterSize(playerid, DistanceTD[playerid], 0.363428, 1.297067);
PlayerTextDrawTextSize(playerid, DistanceTD[playerid], 0.000000, 111.000000);
PlayerTextDrawAlignment(playerid, DistanceTD[playerid], 2);
PlayerTextDrawColor(playerid, DistanceTD[playerid], -1);
PlayerTextDrawUseBox(playerid, DistanceTD[playerid], 1);
PlayerTextDrawBoxColor(playerid, DistanceTD[playerid], 112);
PlayerTextDrawSetShadow(playerid, DistanceTD[playerid], 0);
PlayerTextDrawSetOutline(playerid, DistanceTD[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, DistanceTD[playerid], 189);
PlayerTextDrawFont(playerid, DistanceTD[playerid], 1);
PlayerTextDrawSetProportional(playerid, DistanceTD[playerid], 1);
PlayerTextDrawSetShadow(playerid, DistanceTD[playerid], 0);