Save class?
#2

Well add a variable for example
pawn Код:
new skinclass[MAX_PLAYERS];
and make a command that saves the skin
pawn Код:
CMD:saveskin(playerid,params[])
{
      new skinid;
      if(sscanf(params,"d",skinid)) return SendClientMessage(playerid,-1,"USAGE: /saveskin [skinid]");
      if(skinid < 0) return SendClientMessage(playerid,-1,"ERROR: UNKNOWN SKIN ID");
      if(skinid > 299) return SendClientMessage(playerid,-1,"ERROR: UNKNOWN SKIN ID");
      skinclass[playerid] = skinid;
      SetPlayerSkin(playerid,skinid);
      return 1;
}
Then under onplayerspawn add
pawn Код:
SetPlayerSkin(playerid,skinclass[playerid]);
Reply


Messages In This Thread
Save class? - by Admigo - 27.11.2011, 13:21
Re: Save class? - by Tanush123 - 27.11.2011, 13:30
Re: Save class? - by Admigo - 27.11.2011, 13:54

Forum Jump:


Users browsing this thread: 1 Guest(s)