31.07.2013, 14:17
Create a pModel / pSkin / pChar
Every time that you change a player's skin use like
Then go under OnPlayerSpawn
NOTE: You'll need a saving system like dini so the pModel will save.
Good luck!
Every time that you change a player's skin use like
pawn Код:
CMD:setskin(playerid, params[])
{
new amount;
if(sscanf(params, "ui", giveplayerid, amount)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setskin [playerid] [skinid]");
PlayerInfo[giveplayerid][pModel] = amount; // amount is the skin id, look above at the if(sscanf
SetPlayerSkin(giveplayerid, amount); // the original SetPlayerSkin just with pModel above it so it will have the same value and will save.
return 1;
}
pawn Код:
SetPlayerSkin(playerid, PlayerInfo[playerid][pModel]);
SendClientMessage(playerid, COLOR_WHITE, "Your skin was changed to the saved skin!");
Good luck!