dinhkhoi2298/async-a-controller
Task-based Ares Controller https://github.com/AresVN/a_controller
Ce dépôt n’a pas de fichier de licence. Il est public en lecture, mais cela ne donne pas à lui seul le droit de le réutiliser.
Installer avec sampctl
sampctl package install dinhkhoi2298/async-a-controller
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
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
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