Textdraw Help.
#9

Quote:
Originally Posted by DRIFT_HUNTER
Посмотреть сообщение
pawn Код:
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[])
{
    new page = strval(params);
    if(page == 0 || page < 0) page = 1;
    if(page == 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);
    }
    else if(page == 2)
    {
        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);
    }
    else
    {
        SendClientMessage(playerid, -1, "Unknown page entered!");
        return 1;
    }
    IsInCommands[playerid]=1;
    SelectTextDraw(playerid,0xFF0000AA);
    return 1;
}
Usage:
/commands [Page 1-2]

Is that what you need?
Nope its to go,if u select 1. Commands1 it shows u Textdraw0 - 23
Reply


Messages In This Thread
Textdraw Help. - by Cashewz - 29.04.2016, 00:21
Re: Textdraw Help. - by Unte99 - 29.04.2016, 01:43
Re: Textdraw Help. - by Cashewz - 29.04.2016, 02:11
Re: Textdraw Help. - by Unte99 - 29.04.2016, 02:23
Re: Textdraw Help. - by Cashewz - 29.04.2016, 02:26
Re: Textdraw Help. - by Unte99 - 29.04.2016, 02:44
Re: Textdraw Help. - by Cashewz - 29.04.2016, 21:02
Re: Textdraw Help. - by DRIFT_HUNTER - 29.04.2016, 23:35
Re: Textdraw Help. - by Cashewz - 30.04.2016, 00:02

Forum Jump:


Users browsing this thread: 1 Guest(s)