29.04.2016, 00:21
Hey Guys! i Need help making Textdraws Selectable Like 1,2,3 etc
So when i select commands1 its to show my Textdraw1-23 but they both show the same time and it now toggles my control.
PHP код:
Commands1 = TextDrawCreate(23.058822, 180.250076, "Commands");
TextDrawLetterSize(Commands1, 0.263175, 0.952498);
TextDrawAlignment(Commands1, 1);
TextDrawColor(Commands1, -1);
TextDrawSetShadow(Commands1, 0);
TextDrawSetOutline(Commands1, 1);
TextDrawBackgroundColor(Commands1, 1);
TextDrawFont(Commands1, 1);
TextDrawSetProportional(Commands1, 1);
TextDrawUseBox(Commands1,2);
TextDrawBoxColor(Commands1,0x00000000);
TextDrawSetSelectable(Commands1,true);
//My Command.
CMD:commands(playerid,parmas[])
{
IsInCommands[playerid]=1;
TextDrawShowForPlayer(playerid,Commandsblackbox);
TextDrawShowForPlayer(playerid,Commandsbluebox);
TextDrawShowForPlayer(playerid,Commandsmenu);
TextDrawShowForPlayer(playerid,Textdraw31);
TextDrawShowForPlayer(playerid,Commands1);
TextDrawShowForPlayer(playerid,Commands2);
TextDrawShowForPlayer(playerid,Commands3);
TextDrawShowForPlayer(playerid,Commands4);
TextDrawShowForPlayer(playerid,Commands5);
TextDrawShowForPlayer(playerid,Commands6);
TextDrawShowForPlayer(playerid,Commands7);
TextDrawShowForPlayer(playerid,Commands8);
TextDrawShowForPlayer(playerid,Commands9);
TextDrawShowForPlayer(playerid,Commands10);
TextDrawShowForPlayer(playerid,Commands11);
TextDrawShowForPlayer(playerid,Commands12);
TextDrawShowForPlayer(playerid,Commands13);
TextDrawShowForPlayer(playerid,Commands14);
TextDrawShowForPlayer(playerid,Commands15);
TextDrawShowForPlayer(playerid,Commands16);
TextDrawShowForPlayer(playerid,Commands17);
TextDrawShowForPlayer(playerid,Commands18);
TextDrawShowForPlayer(playerid,Textdraw0);
TextDrawShowForPlayer(playerid,Textdraw1);
TextDrawShowForPlayer(playerid,Textdraw2);
TextDrawShowForPlayer(playerid,Textdraw3);
TextDrawShowForPlayer(playerid,Textdraw4);
TextDrawShowForPlayer(playerid,Textdraw5);
TextDrawShowForPlayer(playerid,Textdraw6);
TextDrawShowForPlayer(playerid,Textdraw7);
TextDrawShowForPlayer(playerid,Textdraw8);
TextDrawShowForPlayer(playerid,Textdraw9);
TextDrawShowForPlayer(playerid,Textdraw10);
TextDrawShowForPlayer(playerid,Textdraw11);
TextDrawShowForPlayer(playerid,Textdraw12);
TextDrawShowForPlayer(playerid,Textdraw13);
TextDrawShowForPlayer(playerid,Textdraw14);
TextDrawShowForPlayer(playerid,Textdraw15);
TextDrawShowForPlayer(playerid,Textdraw16);
TextDrawShowForPlayer(playerid,Textdraw17);
TextDrawShowForPlayer(playerid,Textdraw18);
TextDrawShowForPlayer(playerid,Textdraw19);
TextDrawShowForPlayer(playerid,Textdraw20);
TextDrawShowForPlayer(playerid,Textdraw21);
TextDrawShowForPlayer(playerid,Textdraw22);
TextDrawShowForPlayer(playerid,Textdraw23);
SelectTextDraw(playerid,0xFF0000AA);
return 1;
}