Skip to content

Open-GTO/skinselect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

skinselect

Skin select system. Requires mselect library (optional).

Screens

sa-mp-039

Defines

Define Default value Can be redefined?
SKINS_IGNORE 74 yes
SKINS_MINID 0 yes
SKINS_MAXID 311 yes
SKINS_COUNT 310 yes
SKINSELECT_MAX_FUNCTION_NAME 31 no

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)
{

}