ScavengeSurvive/velocity
Simply provides a function to get the player's velocity (or their vehicle) in kilometres per hour.
Mit sampctl installieren
sampctl package install ScavengeSurvive/velocity
Führe das in deinem Projektordner aus. sampctl lädt das Paket und alles herunter, wovon es abhängt.
Fügt seine Include-Dateien samt der Bibliotheken, von denen es abhängt, dem Pawn-Compiler in deinem Browser hinzu, bereit zum Einbinden in ein Skript.
Hängt von 2 Paketen ab
- sampctl/samp-stdlibnicht in diesem Verzeichnis
- scavengesurvive/test-boilerplatenicht in diesem Verzeichnis
Verwendet von 1 Paket
README.md
velocity.inc
This package simply provides one function: GetPlayerTotalVelocity which returns the players velocity in kilometres per hour.
The exact formula for this has quite a lot of history and debate centered around it in the SA:MP community. There is a discussion on the topic here.
Despite the many different methods people have come up with over the years, this library currently just employs a very simple multiplier of the vector of the player's velocity.
Installation
Simply install to your project:
sampctl package install ScavengeSurvive/velocity
Include in your code and begin using the library:
#include <velocity>
Testing
To test, simply run the package:
sampctl package run
And connect to localhost:7777.
Diese Seite wird aus dem erstellt, was GitHub über das Repository veröffentlicht. samp.directory hostet den Code nicht. Ein Problem mit diesem Eintrag melden