SA-MP Forums Archive
[AJUDA] Sobre um pedбgio. - 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] Sobre um pedбgio. (/showthread.php?tid=180524)



[AJUDA] Sobre um pedбgio. - [RoxX]Ygor - 01.10.2010

Bom eu achei esse code de pedбgio no Search ai puis no meu GM deu certo, mais ele sу pega a metade da rua e nгo a rua toda, como fasso para almentar a бrea dele ?

pawn Код:
public peda2()
{
for(new i = 0; i < GetMaxPlayers(); i++)
{
if(IsPlayerInRangeOfPoint(i, 7.0,2050.4827,923.0962,9.0404))
{
new string[50];
format(string, sizeof(string), "Pegбgio pago: $150");
GameTextForPlayer(i, string, 3000, 4);
GivePlayerMoney(i,-150);
}
}
return 1;
}



Respuesta: [AJUDA] Sobre um pedбgio. - BiieL - 01.10.2010

ta vendo o IsPlayerInRangeOfPoint

muda a distancia dele


Re: [AJUDA] Sobre um pedбgio. - [RoxX]Ygor - 01.10.2010

Em que lugar eu mudo ali no 7.0 ou nas coordenada ?


Respuesta: [AJUDA] Sobre um pedбgio. - BiieL - 01.10.2010

depende ...


Re: [AJUDA] Sobre um pedбgio. - [RoxX]Ygor - 01.10.2010

Mais Biel, eu nгo sei mais eu acho que nгo й as coordenadas pode ser o 7.0 mais como eu nгo sei vou esperar alguem que saiba.


Respuesta: [AJUDA] Sobre um pedбgio. - BiieL - 01.10.2010

tipo, IsPLayerInRangeOfPoint: Se vocк estб a 7.0 da coordenada la ele vai executar, entao a coordenada tem q ser no meio exato da rua, e o 7.0 tem q ser certinho a distancia da metade da rua


Re: [AJUDA] Sobre um pedбgio. - [RoxX]Ygor - 01.10.2010

atб entendi agora, vou fazer isso e testar.


Re: [AJUDA] Sobre um pedбgio. - Gabriel_Halls - 01.10.2010

Quote:
Originally Posted by [RoxX]Ygor
Посмотреть сообщение
Bom eu achei esse code de pedбgio no Search ai puis no meu GM deu certo, mais ele sу pega a metade da rua e nгo a rua toda, como fasso para almentar a бrea dele ?

pawn Код:
public peda2()
{
for(new i = 0; i < GetMaxPlayers(); i++)
{
if(IsPlayerInRangeOfPoint(i, 7.0,2050.4827,923.0962,9.0404))
{
new string[50];
format(string, sizeof(string), "Pegбgio pago: $150");
GameTextForPlayer(i, string, 3000, 4);
GivePlayerMoney(i,-150);
}
}
return 1;
}
troca
PlayerInRangeOfPointpor

Код:
PlayerToPoint
pawn Код:
public peda2()
{
for(new i = 0; i < GetMaxPlayers(); i++)
{
if(PlayerToPoint(30.0,playerid,7.0,2050.4827,923.0962,9.0404)
{
new string[50];
format(string, sizeof(string), "Pegбgio pago: $150");
GameTextForPlayer(i, string, 3000, 4);
GivePlayerMoney(i,-150);
}
}
return 1;
}
tenta ai


Re: [AJUDA] Sobre um pedбgio. - rene20 - 01.10.2010

LoL

Eu pensava que editava o 7.0

Tipo pego as coordenadas retas de gang zone ... e coloco la