13.07.2014, 08:44
Ewww... Let me change your /skin command
Explaination: Now, if you execute the command /skin, it'll save your current skin to pInfo[playerid][pSkin].
If you want the same skin to be used after relogging and stuffs, go to your OnPlayerDisconnect and add
and load it when he connects.
pawn Код:
CMD:skin(playerid,params[])
{
pInfo[playerid][pSkin] = GetPlayerSkin(playerid);
GameTextForPlayer(playerid,"~r~Skin Saved!",3000,5);
return 1;
}
If you want the same skin to be used after relogging and stuffs, go to your OnPlayerDisconnect and add
pawn Код:
INI_WriteInt(File,"Skin",pInfo[playerid][pSkin]);