28.10.2012, 18:20
How can i script a /saveskin Command, that the Skin got automatic saved, when he use /saveskin and when the Player spawn?
new PlayerSkin[MAX_PLAYERS];
PlayerSkin[playerid] = -1;
CMD:saveskin(playerid)
{
PlayerSkin[playerid] = GetPlayerSkin(playerid);
SendClientMessage(playerid,-1,"Skin Saved");
return 1;
}
if(!strcmp("/saveskin",cmdtext,true))
{
PlayerSkin[playerid] = GetPlayerSkin(playerid);
SendClientMessage(playerid,-1,"Skin Saved");
return 1;
}
if(PlayerSkin[playerid] != -1)
{
SetPlayerSkin(playerid, PlayerSkin[playerid]);
}