Class selection / textdraw.
#2

Yes I have them for my skins, Civillians coppers etc.

pawn Код:
public OnPlayerRequestClass(playerid, classid)

          if (classid >= 0 && classid <= 2 && udb_UserInt(PlayerName(playerid), "SkillChoosen") == 0)
            {
            TextDrawHideForPlayer(playerid, TextdrawCivillians); TextDrawHideForPlayer(playerid, TextdrawFirefighters); TextDrawShowForPlayer(playerid, TextdrawMedics);
            TextDrawHideForPlayer(playerid, TextdrawTitle); TextDrawHideForPlayer(playerid, TextdrawRapist); TextDrawHideForPlayer(playerid, TextdrawRobber);
            TextDrawHideForPlayer(playerid, TextdrawMugger); TextDrawHideForPlayer(playerid, TextdrawJacker); TextDrawHideForPlayer(playerid, TextdrawDrugDealer);
            TextDrawHideForPlayer(playerid, TextdrawBurgler); TextDrawShowForPlayer(playerid, TextdrawInfector);
            SendClientMessage(playerid, 0xB360FDFF,"Use: /skill 2 only."); SendClientMessage(playerid, 0xB360FDFF, "2. Infector");
            }
From an old save of mine. Of course you will have too create them but thats how you would show them. Classid relates to the order you addplayerclass starting from 0,1,2,3,4. I would suggest that you group classes one after the other .i.e police one after the other, using this method, makes for easy coding.
Reply


Messages In This Thread
Class selection / textdraw. - by Krish - 03.01.2009, 07:31
Re: Class selection / textdraw. - by Auto-Sized - 03.01.2009, 07:33
Re: Class selection / textdraw. - by Krish - 03.01.2009, 09:10
Re: Class selection / textdraw. - by Auto-Sized - 03.01.2009, 09:22
Re: Class selection / textdraw. - by Scripterzors - 03.02.2009, 05:33
Re: Class selection / textdraw. - by Cueball - 03.02.2009, 06:08
Re: Class selection / textdraw. - by Cueball - 03.02.2009, 09:32

Forum Jump:


Users browsing this thread: 2 Guest(s)