Installer avec sampctl
sampctl package install wg1337/omp-gta-weather
Lance ceci dans le dossier de ton projet. sampctl télécharge le paquet et ce dont il dépend.
Ajoute ses fichiers include, avec les bibliothèques dont il dépend, au compilateur Pawn de ton navigateur, prêts à être inclus dans un script.
README.md
What is it?
A simple include that provides the weather cycles and weather regions extracted from "gta-reversed". Using this include you can recreate singleplayer-like weather inside open.mp. Note that weather cycle interpolation is done on the client side.
How to use it
Check weather.pwn
How it works?
GTA:SA does not randomly select a weather, but rather follows a strict cycle in specific regions and advances the weather when the hour changes. This include uses the same logic, but applies the weather per-player and updates it whenever either the hour changes or the player has entered a different weather region. This include requires a mechanism that can advance the weather, the given example with weather.pwn recreates the singleplayer's clock advancement along with weather cycle advancement.
Cette page est construite à partir de ce que GitHub publie sur le dépôt. samp.directory n’héberge pas le code. Signaler un problème avec cette fiche