முதன்மை உள்ளடக்கத்துக்குச் செல்லவும்

GetPlayerCustomSkin

எச்சரிக்கை

செயல்பாடு என்பது SA-MP 0.3.DL R1 பதிப்பில் சேர்க்கப்பட்டது. இது முந்தைய பதிப்புகளில் இயங்காது!

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