Portal SAMP
[Pedido] Race - Versão de Impressão

+- Portal SAMP (https://portalsamp.com)
+-- Fórum: SA-MP (https://portalsamp.com/forumdisplay.php?fid=5)
+--- Fórum: Área de suporte (https://portalsamp.com/forumdisplay.php?fid=6)
+--- Tópico: [Pedido] Race (/showthread.php?tid=3333)



Race - gbzinkkjkkj - 13/02/2023

Galera queria criar um sistema de corrida basico, porem nao sei por onde começo, se alguem tiver um tutorial ensinando, ou propio topico do samp wiki, vai ajudar muito


RE: Race - xbruno1000x - 13/02/2023

Você vai precisar estudar as funções de checkpoint.

SetPlayerCheckpoint:
https://www.open.mp/pt-BR/docs/scripting/functions/SetPlayerCheckpoint

Outras funções:
  •     DisablePlayerCheckpoint: Disable the player's current checkpoint.
  •     IsPlayerInCheckpoint: Check if a player is in a checkpoint.
  •     SetPlayerRaceCheckpoint: Create a race checkpoint for a player.
  •     DisablePlayerRaceCheckpoint: Disable the player's current race checkpoint.
  •     IsPlayerInRaceCheckpoint: Check if a player is in a race checkpoint.
  •     OnPlayerEnterCheckpoint: Called when a player enters a checkpoint.
  •     OnPlayerLeaveCheckpoint: Called when a player leaves a checkpoint.
  •     OnPlayerEnterRaceCheckpoint: Called when a player enters a race checkpoint.
  •     OnPlayerLeaveRaceCheckpoint: Called when a player leaves a race checkpoint.
Essas funções estão disponíveis no final da página desse link que enviei.