SA-MP Forums Archive
Skills based on classes or skins +rep - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Skills based on classes or skins +rep (/showthread.php?tid=540191)



Skills based on classes or skins +rep - darkokan - 03.10.2014

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);
				}



Re: Skills based on classes or skins +rep - darkokan - 03.10.2014

anyone who can help?