Installer avec sampctl
sampctl package install RogueDrifter/Rewind
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.
Dépend de 1 paquet
- sampctl/samp-stdlibpas dans cet annuaire
README.md
Rewind
A rewind/time machine script that takes you back a few steps/actions! Includes textdraws and 3D text labels.
Installation
Simply install to your project:
sampctl package install RogueDrifter/Rewind
Include in your code and begin using the library (Only in one script):
#include <Rewind>
Usage
Callbacks:
public OnPlayerRewindForPlayer(playerid, forplayerid);
public OnPlayerStartRewind(playerid);
public OnPlayerFinishRewind(playerid);
public OnPlayerFastRewind(playerid);
public OnPlayerFinishFastRewind(playerid);
Functions:
ShowTimeMachineSynced(playerid);
HideTimeMachineSynced(playerid);
StartRewinding(playerid);
StartRecordingRewindSynced(playerid);
bool:IsPlayerInvolvedInRewind(playerid);
bool:IsPlayerRewinding(playerid);
bool:IsPlayerFastRewinding(playerid);
ToggleRewindFlash(bool:toggle);
ToggleRewindFlashForPlayer(playerid, bool:toggle);
ToggleRewindCameraMove(bool:toggle);
ToggleRewindCameraMoveForPlayer(playerid, bool:toggle);
ToggleRewindAuto(bool:toggle);
ToggleRewindAutoForPlayer(playerid, bool:toggle);
ToggleWorldRewind(bool:toggle);
ToggleWorldRewindForPlayer(playerid, bool:toggle);
More add-ons:
#define REWIND_MAXIMUM_PHASES [NUMBER] //Can be changed just put the line with your number before the include.
#define REWIND_CHOOSING_DIALOG [NUMBER] //Dialog ID for the fast rewind you can change for whatever reason
#define REWiND_FULLY_SYNCED_TIMER [NUMBER] //This is in MS you can change it depending on how fast you want the timers to record/play
#define SYNCEED_REWIND_BUFFER [NUMBER] //This is the capacity of the fast rewind cells, don't change this if you don't know what you're doing
Testing
To test, simply run the package:
sampctl package run
Extras
1- A timer that rolls over to sync all player's ability to rewind.
2- Textdraws that define the rewind ability.
3- 3D Text labels to mark for other players your ability to rewind.
Currently supports vehicle interactions (not full) and on-foot interactions (not full either) but goes back up to 29 takes with an audio stream and a flashing extra textdraw.
gta-sarewindsa-mpsamptime-macine
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