SA-MP Forums Archive
[Pedido] AutoPoints - 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: [Pedido] AutoPoints (/showthread.php?tid=488891)



AutoPoints - Pablo_Mantega - 19.01.2014

Estou Usando essa FilterScript, mais nгo consigo diminuir os autopoints alguem pode deixar so uma ? tipo vc so precisar chegar nela pra ganha a habilitaзгo.
https://sampforum.blast.hk/showthread.php?tid=470623


Re: AutoPoints - JonathanFeitosa - 19.01.2014

Quando o assunto й Checkpoint й meio complicado para iniciantes.

Entendendo o AutoPoints[Parametro 1][Parametro 2]


Seguinte, o SetPlayerRaceCheckpoint ler duas coordenadas. Veja um exemplo:

Vocк olha um code desses:
Код:
SetPlayerRaceCheckpoint(playerid, 0, AutoPoints[1][0], AutoPoints[1][1], AutoPoints[1][2],AutoPoints[2][0], AutoPoints[2][1], AutoPoints[2][2], 10);
[...]
E diz e agora

Entendendo o primeiro parametro do AutoPoint

Eu quero uma corrida de 5 Checkspoints, como fazer isso?

PHP код:
Checkpoint 1
Checkpoint 2
Checkpoint 3
Checkpoint 4
Checkpoint 5 
Veja como funciona:

Tabela
O inicio Checkpoint 1 e o prуximo Checkpoint 2
O inicio Checkpoint 2 e o proximo Checkpoint 3
O inicio Checkpoint 3 e o prуximo Checkpoint 4
O inicio Checkpoint 4 e o prуximo Checkpoint 5
O inicio Checkpoint 5 e o prуximo Checkpoint 5 ( SEMPRE NO ЪLTIMO REPETE 2X )


Код:
SetPlayerRaceCheckpoint(playerid, 0, AutoPoints[1][0], AutoPoints[1][1], AutoPoints[1][2],AutoPoints[2][0], AutoPoints[2][1], AutoPoints[2][2], 10);
[...]
Ai vocк se pergunta, porque 1, 1, 1, 2, 2 ,2 ? Foi como eu falei na tabela acima.
Mas porque repete 2 vezes? Simples, й por causa do segundo parвmetro.

Entendendo o segundo parвmetro do AutoPoint

Код:
SetPlayerRaceCheckpoint(playerid, 0, AutoPoints[1][0], AutoPoints[1][1], AutoPoints[1][2],AutoPoints[2][0], AutoPoints[2][1], AutoPoints[2][2], 10);
[...]
Porque sempre 0, 1, 2 ? Simples, sгo suas coordenadas do CheckPoint X Y Z que estгo definidas no GameMode.
Sempre serб 0, 1, 2.

Simples nгo? Aprimore seu conhecimento, й de graзa!
Veja esse sistema


Re: AutoPoints - Pablo_Mantega - 19.01.2014

Jhonatan obrigado mesmo assim, troquei o SetPlayerRaceCheckpoint para SetPlayerCheckpoint!


Re: AutoPoints - JonathanFeitosa - 19.01.2014

Quote:
Originally Posted by Pablo_Mantega
Посмотреть сообщение
Jhonatan obrigado mesmo assim, troquei o SetPlayerRaceCheckpoint para SetPlayerCheckpoint!
ahuehuaehuaehuaeh vai na fй mano. E й Jonathan* .-.
E nгo se usa SetPlayerCheckpoint para corridas.