samp.directory
← Skripte und Bibliotheken

dinhkhoi2298/async-a-controller

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

Bibliothek★ 4aktualisiert Okt. 2020Keine LizenzPawnsampctl
Auf GitHub öffnen

Dieses Repository hat keine Lizenzdatei. Es ist öffentlich lesbar, aber das allein gibt noch keine Erlaubnis, es weiterzuverwenden.

Mit sampctl installieren

sampctl package install dinhkhoi2298/async-a-controller

Führe das in deinem Projektordner aus. sampctl lädt das Paket und alles herunter, wovon es abhängt.

Im Pawn-Compiler ausprobieren →

Fügt seine Include-Dateien samt der Bibliotheken, von denen es abhängt, dem Pawn-Compiler in deinem Browser hinzu, bereit zum Einbinden in ein Skript.

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

Diese Seite wird aus dem erstellt, was GitHub über das Repository veröffentlicht. samp.directory hostet den Code nicht. Ein Problem mit diesem Eintrag melden

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