1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. GTA Network forum is now in archive mode.

CheckPointRaces - Library for Checkpoints and Races

Discussion in 'Libraries/Wrappers/Web' started by Hirsw0w, Jun 25, 2017.

  1. Hirsw0w

    Hirsw0w Member

    Messages:
    5
    Likes Received:
    4
    Joined:
    Jan 14, 2017
    Hello everyone,

    I have created that library to help everyone create checkpoints and races very easily.
    You can create checkpoints for player or for all.

    Here is some of the functions and events that the library offer.
    Full list on the GitHub​

    Some Events:
    Code:
    OnPlayerEnterCheckPoint(Client player,Checkpoint checkPoint);
    // Called when player enter checkpoint.
    
    OnPlayerExitCheckPoint(Client player,Checkpoint checkPoint);
    // Called when player exit checkpoint.
    
    OnPlayerFinishRace(RacePlayer,Race);
    // Called when player finish the race.
    // @contain: RacePlayer object, Race object.
    
    Some Functions:
    Code:
    CheckPoint CreateCheckPointForPlayer(Client player,int markerType,Vector3 pos, float radius = 2,float height = 1, int r = 255, int g = 0, int b = 0, int a = 255, int dimension = 0);
    // Create Checkpoint for one player only.
    // @return: Return CheckPoint object.
    
    CheckPoint CreateCheckPoint(int markerType, Vector3 pos, float radius = 2,float height = 1, int r = 255, int g = 0, int b = 0, int a = 255, int dimension = 0);
    // Create Checkpoint for everyone.<br>
    // @return: Return CheckPoint object.
    
    CheckPointDelete(Checkpoint checkPoint);
    //Delete Checkpoint.
    
    int AddRaceCheckPoint(Vector3);
    // Add Checkpoint to the race.
    // @return: return checkpoint id.
    
    SetPlayerInRace(Client player);
    // Add Player to the race.
    
    Start();
    // Start the race *it show the players the checkpoints. spawns and countdown must be done manually*
    
    int GetPlayerPosition(Client player);
    // Get the position of player in a race.<br>
    // @return: return the position of the player in a race.
    
    Download
    GitHub

    * Samples can be found at the github link.
    * If there are any bugs please inform me and I'll fix it as fast as I can


    feel fry to ask any questions, I'll answer as fast as I can!
    sorry for the bad english!​
     
    Vance, jsmb and Meinhof like this.
  2. Hirsw0w

    Hirsw0w Member

    Messages:
    5
    Likes Received:
    4
    Joined:
    Jan 14, 2017
    Update:

    Some bugs has been fixed.

    New Function: GetAllCheckPoints() has been added.
    Code:
    CheckPoint[] GetAllCheckPoints();
    // @return: return all of the checkpoints exist.
    
     

Share This Page