04.08.2012, 02:07
pawn Код:
CMD:myskin(playerid, params[])
{
new skinid, string[256];
if(sscanf(params, "i", skinid)) SendClientMessage(playerid, 0xFFFFFFAA,"usage: /myskin [skinid]");
if(skinid > 299) return SendClientMessage(playerid,0xFF0000AA,"error: Available skin: 0 - 299 !");
SetPlayerSkin(playerid,skinid);
format(string, sizeof(string), "You have change your skin!");
SendClientMessage(playerid, 0xFF0000AA, string);
return 1;
}
pawn Код:
public OnPlayerSpawn(playerid)
{
PlayerInfo[playerid][pSkins] = GetPlayerSkin(playerid); //i dont know your variables
return 1;
}