samp.directory
← Scripts and libraries

Open-GTO/skinselect

Skin select system

Library★ 1updated Jan 2019MITPawnsampctl
Open on GitHub

Install with sampctl

sampctl package install Open-GTO/skinselect

Run this in your project folder. sampctl downloads the package and what it depends on.

Try it in the Pawn compiler →

Adds its include files, with the libraries it depends on, to the Pawn compiler in your browser, ready to include in a script.

Depends on 1 package

Used by 1 package

README.md

skinselect

Skin select system. Requires mselect library (optional).

Screens

Defines

DefineDefault valueCan be redefined?
SKINS_IGNORE74yes
SKINS_MINID0yes
SKINS_MAXID311yes
SKINS_COUNT310yes
SKINSELECT_MAX_FUNCTION_NAME31no

Callbacks

forward OnSkinSelectResponse(playerid, SS_Response:type, oldskin, newskin);

SS_Response types

  • SS_Response_Start
  • SS_Response_Stop
  • SS_Response_Change
  • SS_Response_Select

Functions

SkinSelect_Start(playerid, function[]);
SkinSelect_Stop(playerid);
SkinSelect_GetCurrentSkin(playerid);
SkinSelect_GetOldSkin(playerid);
IsSkinValid(skinid);

Usage

// Start skin selection:
SkinSelect_Start(playerid, SkinSelect:test);

// Stop skin selection:
SkinSelect_Stop(playerid, SkinSelect:test);

// Get response:
SkinSelectResponse:test(playerid, SS_Response:type, oldskin, newskin)
{

}

This page is built from what GitHub publishes about the repository. samp.directory does not host the code. Report a problem with this listing