[Ajuda] IsPlayerInRangeOfPoint - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] IsPlayerInRangeOfPoint (
/showthread.php?tid=477709)
IsPlayerInRangeOfPoint -
Tugamars - 25.11.2013
Boa tarde , eu estou a fazer uma funзгo que й tipo portхes , se a pessoa estiver em determinado local o Objeto Move-se .
No entanto quando a pessoa estб nesse local a funзгo nгo se realiza .
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerInRangeOfPoint(i, 7.0, -2086.72021, -208.37051, 34.78876))
{
MoveObject(Refem1,-2087.05615, -215.18719, 34.34900,10.0);
SendClientMessage(i, COLOR_RED, "O Primeiro Alvo apareceu derrube-o eficazmente");
{
}
}
}
return 1;
}
Podem verificar se o cуdigo em si estб bem , eu julgo que o problema estб no cуdigo e nгo nas coordenadas .
Re: IsPlayerInRangeOfPoint -
focaximubh - 25.11.2013
pawn Код:
Cуdigo OK....
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerInRangeOfPoint(i, 2.0, -2086.72021, -208.37051, 34.78876))
{
MoveObject(Refem1,-2087.05615, -215.18719, 34.34900,10.0);
SendClientMessage(i, COLOR_RED, "O Primeiro Alvo apareceu derrube-o eficazmente");
}
}
Verifique suas coordenadas.
qq coisa pode me add skype > lucas5563