samp.directory
← Scripts y librerías

RogueDrifter/Rewind

A SA-MP time machine

Librería★ 7actualizado jul 2019Apache-2.0Pawnsampctl
Abrir en GitHub

Instalar con sampctl

sampctl package install RogueDrifter/Rewind

Ejecútalo en la carpeta de tu proyecto. sampctl descarga el paquete y sus dependencias.

Depende de 1 paquete

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

Esta página se genera con lo que GitHub publica sobre el repositorio. samp.directory no aloja el código. Informar de un problema con esta ficha