samp.directory
← Betikler ve kütüphaneler

ScavengeSurvive/velocity

Simply provides a function to get the player's velocity (or their vehicle) in kilometres per hour.

Kütüphane★ 1Oca 2018 güncellendiMITPAWNsampctl
GitHub’da aç

sampctl ile kur

sampctl package install ScavengeSurvive/velocity

Bunu proje klasöründe çalıştır. sampctl paketi ve bağımlı olduklarını indirir.

2 pakete bağımlı

1 paket kullanıyor

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.

Bu sayfa GitHub’ın depo hakkında yayımladıklarından oluşturulur. samp.directory kodu barındırmaz. Bu ilanla ilgili bir sorun bildir