samp.directory
← Skrypty i biblioteki

dinhkhoi2298/async-a-controller

Task-based Ares Controller https://github.com/AresVN/a_controller

Biblioteka★ 4zaktualizowano paź 2020Brak licencjiPawnsampctl
Otwórz na GitHubie

To repozytorium nie ma pliku licencji. Jest publiczne do odczytu, ale samo to nie daje pozwolenia na ponowne użycie.

Zainstaluj za pomocą sampctl

sampctl package install dinhkhoi2298/async-a-controller

Uruchom to w folderze swojego projektu. sampctl pobiera pakiet i to, od czego zależy.

Wypróbuj w kompilatorze Pawn →

Dodaje jej pliki include, razem z bibliotekami, od których zależy, do kompilatora Pawn w twojej przeglądarce, gotowe do dołączenia w skrypcie.

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

Ta strona jest zbudowana z tego, co GitHub publikuje o repozytorium. samp.directory nie hostuje kodu. Zgłoś problem z tym wpisem

dinhkhoi2298/async-a-controller: Biblioteka SA-MP | samp.directory