samp.directory
← Skripte und Bibliotheken

Mergevos/samp-walking-styles

Ben Jackster's walking styles script, forked by me, allowing player to choose between 15 walking styles

Bibliothek★ 21aktualisiert Sept. 2023MITPawnsampctl
Auf GitHub öffnen

Mit sampctl installieren

sampctl package install Mergevos/samp-walking-styles

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

samp-walking-styles

Installation

Simply install to your project:

sampctl package install Mergevos/samp-walking-styles

Include in your code and begin using the library:

#include <walking-styles>

Usage

If you've had included this into your script/gamemode etc... Start by using a simple function

Player_SetWalkingStyle(const playerid, WALKING_STYLES:style);

This is going to set you some of walking styles below

	WALKING_STYLE_DEFAULT = 0,
	WALKING_STYLE_NORMAL,
	WALKING_STYLE_PED,
	WALKING_STYLE_GANGSTA,
	WALKING_STYLE_GANGSTA2,
	WALKING_STYLE_OLD,
	WALKING_STYLE_FAT_OLD,
	WALKING_STYLE_FAT,
	WALKING_STYLE_WOMANOLD,
	WALKING_STYLE_WOMANFATOLD,
	WALKING_STYLE_SHUFFLE,
	WALKING_STYLE_LADY,
	WALKING_STYLE_LADY2,
	WALKING_STYLE_WHORE,
	WALKING_STYLE_WHORE2,
	WALKING_STYLE_DRUNK,
	WALKING_STYLE_BLIND

And there is

Player_GetWalkingStyle(const playerid);

This will return you the player's walking style.

Testing

To test, firstly configure pawn.json then simply run the package:

sampctl package run

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

Mergevos/samp-walking-styles: SA-MP Bibliothek | samp.directory