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 PatrickGTR/actor_robbery
Uruchom to w folderze swojego projektu. sampctl pobiera pakiet i to, od czego zależy.
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.
Zależy od 1 pakietu
- sampctl/samp-stdlibnie ma go w tym katalogu
README.md
actor_robbery
Table of Contents
Introduction
Inspired by GTA V store robbery. actor_robbery.inc imitates it! You basically aim at the actor and the actor will play 3 animation sequence, the actor will either give you the money or you will leave empty handed.
Installation
Simply install to your project:
sampctl package install Patrick/actor_robbery
Include in your code and begin using the library:
#include <actor_robbery>
Testing
To test, simply run the package:
sampctl package run
Usage
Functions
Function:
CreateActorRobbery
Info:
Creates the robbery actor according to the position set.
Param:
* skinid -> Skin ID of the robbery actor
* Float:x -> Coordinate X of the robbery actor
* Float:y -> Coordinate X of the robbery actor
* Float:z -> Coordinate X of the robbery actor
* Float:ang -> Facing angle of the robbery actor
* actor_vwid -> virtualid of the robbery actor
* r_moneymin -> Minimum money to be robbed from the robbery actor
* r_moneymax -> Maximum money to be robbed from the robbery actor
Function:
GetActorRobberyData
Info:
Retrieves the actor data
Param:
* actorid -> ID of robbery actor you want to retrieve data from.
* &skinid -> Skin ID of the robbery actor
* &Float:x -> Coordinate X of the robbery actor
* &Float:y -> Coordinate X of the robbery actor
* &Float:z -> Coordinate X of the robbery actor
* &Float:ang -> Facing angle of the robbery actor
* &actor_vwid -> virtualid of the robbery actor
* &r_moneymin -> Minimum money to be robbed from the robbery actor
* &r_moneymax -> Maximum money to be robbed from the robbery actor
Function:
GetActorFreeID
Info:
Retrieves the unused ID of an actor.
Param:
None
Callbacks
//OnPlayerRequestRobbery is called when the player aims at an actor. You can disallow a player from robbing by returning 0.
forward OnPlayerRequestRobbery(playerid, actorid);
//OnPlayerStartRobbery is called when the player aims at an actor after OnPlayerRequestRobbery allows the player to rob.
forward OnPlayerStartRobbery(playerid, actorid, robbed_recently);
//OnPlayerFinishRobbery is called when the 3 animation sequence has been played.
forward OnPlayerFinishRobbery(playerid, actorid, robbedmoney, type);
Animation Sequence
- SHP_Rob_HandsUp
- SHP_Rob_GiveCash
- DUCK_cower
actor-robberyactorsanimation-sequencesa-mp-developmentsa-mp-library
Ta strona jest zbudowana z tego, co GitHub publikuje o repozytorium. samp.directory nie hostuje kodu. Zgłoś problem z tym wpisem