Skip to main content

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.

NameDescription
playeridThe 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;
}