dinhkhoi2298/async-a-controller
Task-based Ares Controller https://github.com/AresVN/a_controller
Este repositorio no tiene archivo de licencia. Se puede leer, pero eso por sí solo no da permiso para reutilizarlo.
Instalar con sampctl
sampctl package install dinhkhoi2298/async-a-controller
Ejecútalo en la carpeta de tu proyecto. sampctl descarga el paquete y sus dependencias.
Añade sus archivos include, con las librerías de las que depende, al compilador de Pawn de tu navegador, listos para incluirlos en un script.
README.md
async-a-controller
Installation
Simply install to your project:
sampctl package install roesanne26/async-a-controller
Include in your code and begin using the library:
#include <async-a-controller>
Dependencies
https://github.com/IllidanS4/PawnPlus/
Usage
Function: Task:async_controller_show
#include <Async-A-Controller>
CMD:dancing(playerid) {
task_yield(1);
SetPlayerSpecialAction(playerid, 5);
new
result = task_await(async_controller_show(playerid));
if(result)
SendClientMessage(playerid, 0xFFFF00AA, "[DANCING]: Ban da hoan thanh thu thach");
else
SendClientMessage(playerid, 0xFF6347AA, "[DANCING]: Ban da that bai thu thach");
ClearAnimations(playerid);
SetPlayerSpecialAction(playerid, 0);
TogglePlayerControllable(playerid, true);
SetCameraBehindPlayer(playerid);
return 1;
}
Testing
To test, simply run the package:
sampctl package run
Credits
Ares: Original script (https://github.com/AresVN/a_controller)
Me: Make async version
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