note Help Needed
This wiki is the result of an ongoing community effort — thank you all for helping!
If you want to provide changes to this page then please click here.
GetPlayerCustomSkin
warning
This function was added in SA-MP 0.3.DL R1 and will not work in earlier versions!
Description
Returns the class of the players custom skin downloaded from the server.
Name | Description |
---|---|
playerid | The player you want to get the skin from |
Returns
The custom skin id that was specified in AddCharModel newid.
Examples
public OnPlayerCommandText(playerid, cmdtext[])
{
if (!strcmp(cmdtext, "/customskin", true))
{
new string[32];
new customSkin = GetPlayerCustomSkin(playerid);
format(string, sizeof(string), "Your custom skin id: %d", customSkin);
SendClientMessage(playerid, -1, string);
return 1;
}
return 0;
}
Related Functions
- GetPlayerSkin: Get a player's current skin.
- SetPlayerSkin: Set a player's skin.