11/06/2021 10:48
Fiz bem parecido com oque você falou e deu certo, muito obrigado. Pra quem tiver problema com isso:
Código PHP:
forward ShowTextDraws(playerid);
public ShowTextDraws(playerid)
{
SetTimerEx("ShowTextDraws", segundos(1), false, "i", playerid);
if(IsPlayerInRangeOfPoint(playerid,35.0,-1003.4734,-1620.8268,76.3672))
{
Area[playerid]=1;
PlayerTextDrawSetString(playerid,ABASTECENDO[playerid],"Plantacao_de_~r~Maconha");
PlayerTextDrawShow(playerid,ABASTECENDO[playerid]);
}
else if(IsPlayerInRangeOfPoint(playerid,15.0,-2022.6522, 157.7932, 30.5547))
{
new string[128];
Area[playerid]=1;
GetPlayerPos(playerid,PlayerInfo[playerid][pPosX],PlayerInfo[playerid][pPosY],PlayerInfo[playerid][pPosZ]);
Get2DZoneName(Location,PlayerInfo[playerid][pPosX],PlayerInfo[playerid][pPosY]);
format(string,sizeof(string),"Auto_Posto_~r~%s__~b~/Abastecer",Location);
PlayerTextDrawSetString(playerid,ABASTECENDO[playerid],string);
PlayerTextDrawShow(playerid,ABASTECENDO[playerid]);
}else{
if(Area[playerid] == 1)
{
PlayerTextDrawHide(playerid,ABASTECENDO[playerid]);
Area[playerid]=0;
}
}
}
Discord:https://discord.gg/Vg5HMqgdP9