2 Questions, Pro's may know
#1

1st:
Hey, I want to ask if there is any possibility to add a GameTextForPlayer above a class by the Classselection. I mean, by some classes should stay above a GameTextForPlayer for example: ">CIVILIAN<", "GROVE GANG",..
How to add them to each class? and after selecting a class the gametext should not appear anymore.


2nd:
Is there any way to add a new case by a case? Well, I've done a Pickup for Cops in the LSPD. There they can select their classes. I want to add a Menu for this, with 2 MenuItems, called "Next" and "Accept". By Next should appear a other cop skin, and next and next..
and by doing "accept" they should have selected the skin and able to use it.

By my function the Menu disappears after doing Next whether Accept. Please help.
here the code:

Код:
	lspdskinmenu=CreateMenu("Skins", 1, 4.000000, 222.000000, 100.0, 100.0);
	AddMenuItem(lspdskinmenu, 0, "Next Skin");
	AddMenuItem(lspdskinmenu, 0, "Accept");
Код:
public OnPlayerSelectedMenuRow(playerid, row)
{
	new Menu:CurrentMenulspd = GetPlayerMenu(playerid);
	if(CurrentMenulspd == lspdskinmenu)
	{
 		switch(row)
	    {
	        case 0: //Case 0 fьr erste Item im Menu
	        {
	            if(GetPlayerTeam(playerid) == 1)
	            {
					SetPlayerSkin(playerid, 265);
	            }
	            else
	            {
	                SendClientMessage(playerid,0xA50000FF, "You're not a Cop");
	            }
			}
			case 1:
			{
			
			}
		}
	}
  	return 1;
}
I want to add there for the "Next" MenuItem more skins, by selecting Next there should come a next skin etc.
and by doing accept they get the skin.
Reply


Messages In This Thread
2 Questions, Pro's may know - by NuggaN_ - 13.12.2010, 15:15
Re: 2 Questions, Pro's may know - by WillyP - 13.12.2010, 15:16
Re: 2 Questions, Pro's may know - by NuggaN_ - 13.12.2010, 15:17
Re: 2 Questions, Pro's may know - by iFriSki - 13.12.2010, 15:20
Re: 2 Questions, Pro's may know - by WillyP - 13.12.2010, 15:22
Re: 2 Questions, Pro's may know - by NuggaN_ - 13.12.2010, 17:14
Re: 2 Questions, Pro's may know - by blackwave - 13.12.2010, 17:17
Re: 2 Questions, Pro's may know - by NuggaN_ - 13.12.2010, 18:00
Re: 2 Questions, Pro's may know - by WillyP - 13.12.2010, 18:01
Re: 2 Questions, Pro's may know - by NuggaN_ - 13.12.2010, 19:32

Forum Jump:


Users browsing this thread: 1 Guest(s)