13.12.2010, 15:15
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:
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.
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; }
and by doing accept they get the skin.