Skills based on classes or skins +rep
#1

I have this code to chose skills for players. When player spawns a textdraw popsup and asks for a selection of skill. But what I want is when user selects his skin on playerclassrequest, he would get his skill automatically. How can I do that?

Код:
case TD_MENU_SKILL_OPTIONS:
		{
		if (Option != -1)
		{
		if (Option >= 1 && Option <= Menu_Options[playerid] )
		{
			//HideTextDrawMenu(playerid);
			TextDrawHideForPlayer(playerid, Menu_Title[playerid]);
			TextDrawHideForPlayer(playerid, Menu_Stats[playerid]);
			TextDrawHideForPlayer(playerid, Menu_StatsCont[playerid]);
			TextDrawHideForPlayer(playerid, Menu_End[playerid]);

    		for(new r = 0; r < MAX_TEXTDRAW_ROWS; r++)
			{
			TextDrawHideForPlayer(playerid, Menu_Column1[playerid][r]);
			TextDrawHideForPlayer(playerid, Menu_Column2[playerid][r]);
			}

			//You Have Used A Free Skill Change.  Free Skill Changes Remaining: 0

			switch (Option)
			{

				case 1:
				{
				
				ShowTextDrawMenu(playerid, TD_MENU_INFO,"~g~Pick Pocket", 10, 0);
				ShowTextDrawMenuItems(playerid, 0, "You Can Steal Money From People~n~ ~n~~y~/rob [name/id] ~w~- Attempt To Rob A Player", " ", " ",0);

				PlayerInfo[playerid][pSkill] = SKILL_THIEF;
				SetPlayerClassWeapons(playerid);
				}
Reply
#2

anyone who can help?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)