Save class?
#1

Heey all,
How can i let a class save for a player if he choose that class?
Explain:if player is joined again at class selection set automatic to your class and you can not choose other class.

Thanks Admigo
Reply
#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
#3

I need to know how to disable to choose other class when you spawned with it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)