04.10.2015, 10:24
(
Последний раз редактировалось tiiP; 04.10.2015 в 16:14.
)
@RESOLVIDO
Fala pessoal, novamente.. :C
Criei uma textdraw para quando a pessoa entrar na бrea do posto, aparecer ela.
Porйm fiz o seguinte:
Porйm quando vou testar, chego perto ela da umas piscadas rбpidas.. ;/
Alguйm ai sabe oque poderia ser? rs
Atenciosamente,
TiiP
Fala pessoal, novamente.. :C
Criei uma textdraw para quando a pessoa entrar na бrea do posto, aparecer ela.
Porйm fiz o seguinte:
PHP код:
new PlayerText:NoPosto[3][MAX_PLAYERS];
new Float:CoordPostos[3][3] = {
{2115.5330,928.2172,10.8203},
{1936.8785,-1769.0784,13.3828},
{2557.9978,2194.5671,10.8203}
};
forward Locais(playerid);
public Locais(playerid)
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(playerid))
{
for(new y=0; y < sizeof(CoordPostos); y++)
{
if(IsPlayerInRangeOfPoint(playerid,15.0,CoordPostos[y][0],CoordPostos[y][1],CoordPostos[y][2]))
{
for( new text; text != 3; text++) PlayerTextDrawShow(playerid, NoPosto[text][playerid]);
}
else
{
for( new text; text != 3; text++) PlayerTextDrawHide(playerid, NoPosto[text][playerid]);
}
}
}
}
return 1;
}
public OnGameModeInit()
{
SetTimer("Locais", 1000, true);
}
Alguйm ai sabe oque poderia ser? rs
Atenciosamente,
TiiP