TextDraw Инвентаря (Не система)

Уроки по скриптингу

Moderator: SJplayer

Avatar
Topic author
Miranda F
Старшина
Старшина
Posts: 143
With us: 7 years 2 months

TextDraw Инвентаря (Не система)

Post #1by Miranda » 29 Oct 2013, 19:11

TextDraw Инвентаря (Не система)
Автор Ildars

Image


Это не система инвентаря , а только TextDraw с открытием и закрытием. Открыть на "H"
Cпасибо большое Jeff_Dean

ко всем new

Code: Select all

new Text:RakNetCopy[84];  


в public OnGameModeInit

Code: Select all

    RakNetCopy[0] = TextDrawCreate(230.000000120.000000"_");
    
TextDrawBackgroundColor(RakNetCopy[0], 255);
    
TextDrawFont(RakNetCopy[0], 1);
    
TextDrawLetterSize(RakNetCopy[0], 0.50000034.199996);
    
TextDrawColor(RakNetCopy[0], -1);
    
TextDrawSetOutline(RakNetCopy[0], 0);
    
TextDrawSetProportional(RakNetCopy[0], 1);
    
TextDrawSetShadow(RakNetCopy[0], 1);
    
TextDrawUseBox(RakNetCopy[0], 1);
    
TextDrawBoxColor(RakNetCopy[0], 255);
    
TextDrawTextSize(RakNetCopy[0], 30.0000000.000000);
    
TextDrawSetSelectable(RakNetCopy[0], 0);

    
RakNetCopy[1] = TextDrawCreate(610.000000120.000000"_");
    
TextDrawBackgroundColor(RakNetCopy[1], 255);
    
TextDrawFont(RakNetCopy[1], 1);
    
TextDrawLetterSize(RakNetCopy[1], 0.50000034.299995);
    
TextDrawColor(RakNetCopy[1], -1);
    
TextDrawSetOutline(RakNetCopy[1], 0);
    
TextDrawSetProportional(RakNetCopy[1], 1);
    
TextDrawSetShadow(RakNetCopy[1], 1);
    
TextDrawUseBox(RakNetCopy[1], 1);
    
TextDrawBoxColor(RakNetCopy[1], 255);
    
TextDrawTextSize(RakNetCopy[1], 410.0000000.000000);
    
TextDrawSetSelectable(RakNetCopy[1], 0);

    
RakNetCopy[2] = TextDrawCreate(220.000000329.000000"_");
    
TextDrawBackgroundColor(RakNetCopy[2], 255);
    
TextDrawFont(RakNetCopy[2], 1);
    
TextDrawLetterSize(RakNetCopy[2], 0.5000008.500000);
    
TextDrawColor(RakNetCopy[2], -1);
    
TextDrawSetOutline(RakNetCopy[2], 0);
    
TextDrawSetProportional(RakNetCopy[2], 1);
    
TextDrawSetShadow(RakNetCopy[2], 1);
    
TextDrawUseBox(RakNetCopy[2], 1);
    
TextDrawBoxColor(RakNetCopy[2], 0x38917fff);
    
TextDrawTextSize(RakNetCopy[2], 40.0000000.000000);
    
TextDrawSetSelectable(RakNetCopy[2], 0);

    
RakNetCopy[3] = TextDrawCreate(170.000000411.000000"_");
    
TextDrawBackgroundColor(RakNetCopy[3], 255);
    
TextDrawFont(RakNetCopy[3], 1);
    
TextDrawLetterSize(RakNetCopy[3], 0.5000001.500000);
    
TextDrawColor(RakNetCopy[3], -1);
    
TextDrawSetOutline(RakNetCopy[3], 0);
    
TextDrawSetProportional(RakNetCopy[3], 1);
    
TextDrawSetShadow(RakNetCopy[3], 1);
    
TextDrawUseBox(RakNetCopy[3], 1);
    
TextDrawBoxColor(RakNetCopy[3], 0x38917fff);
    
TextDrawTextSize(RakNetCopy[3], 90.0000000.000000);
    
TextDrawSetSelectable(RakNetCopy[3], 0);

    
RakNetCopy[4] = TextDrawCreate(480.000000410.000000"_");
    
TextDrawBackgroundColor(RakNetCopy[4], 255);
    
TextDrawFont(RakNetCopy[4], 1);
    
TextDrawLetterSize(RakNetCopy[4], 0.5000001.500000);
    
TextDrawColor(RakNetCopy[4], -1);
    
TextDrawSetOutline(RakNetCopy[4], 0);
    
TextDrawSetProportional(RakNetCopy[4], 1);
    
TextDrawSetShadow(RakNetCopy[4], 1);
    
TextDrawUseBox(RakNetCopy[4], 1);
    
TextDrawBoxColor(RakNetCopy[4], 0x38917fff);
    
TextDrawTextSize(RakNetCopy[4], 415.0000000.000000);
    
TextDrawSetSelectable(RakNetCopy[4], 0);

    
RakNetCopy[5] = TextDrawCreate(540.000000410.000000"_");
    
TextDrawBackgroundColor(RakNetCopy[5], 255);
    
TextDrawFont(RakNetCopy[5], 1);
    
TextDrawLetterSize(RakNetCopy[5], 0.5000001.500000);
    
TextDrawColor(RakNetCopy[5], -1);
    
TextDrawSetOutline(RakNetCopy[5], 0);
    
TextDrawSetProportional(RakNetCopy[5], 1);
    
TextDrawSetShadow(RakNetCopy[5], 1);
    
TextDrawUseBox(RakNetCopy[5], 1);
    
TextDrawBoxColor(RakNetCopy[5], 0x38917fff);
    
TextDrawTextSize(RakNetCopy[5], 478.0000000.000000);
    
TextDrawSetSelectable(RakNetCopy[5], 0);

    
RakNetCopy[6] = TextDrawCreate(583.000000410.000000"_");
    
TextDrawBackgroundColor(RakNetCopy[6], 255);
    
TextDrawFont(RakNetCopy[6], 1);
    
TextDrawLetterSize(RakNetCopy[6], 0.5000001.500000);
    
TextDrawColor(RakNetCopy[6], -1);
    
TextDrawSetOutline(RakNetCopy[6], 0);
    
TextDrawSetProportional(RakNetCopy[6], 1);
    
TextDrawSetShadow(RakNetCopy[6], 1);
    
TextDrawUseBox(RakNetCopy[6], 1);
    
TextDrawBoxColor(RakNetCopy[6], 0x38917fff);
    
TextDrawTextSize(RakNetCopy[6], 558.0000000.000000);
    
TextDrawSetSelectable(RakNetCopy[6], 0);

    
RakNetCopy[7] = TextDrawCreate(605.000000410.000000"_");
    
TextDrawBackgroundColor(RakNetCopy[7], 255);
    
TextDrawFont(RakNetCopy[7], 1);
    
TextDrawLetterSize(RakNetCopy[7], 0.5000001.500000);
    
TextDrawColor(RakNetCopy[7], -1);
    
TextDrawSetOutline(RakNetCopy[7], 0);
    
TextDrawSetProportional(RakNetCopy[7], 1);
    
TextDrawSetShadow(RakNetCopy[7], 1);
    
TextDrawUseBox(RakNetCopy[7], 1);
    
TextDrawBoxColor(RakNetCopy[7], 0x38917fff);
    
TextDrawTextSize(RakNetCopy[7], 581.0000000.000000);
    
TextDrawSetSelectable(RakNetCopy[7], 0);

    
RakNetCopy[8] = TextDrawCreate(542.000000126.000000"_");
    
TextDrawBackgroundColor(RakNetCopy[8], 255);
    
TextDrawFont(RakNetCopy[8], 1);
    
TextDrawLetterSize(RakNetCopy[8], 0.5000001.500000);
    
TextDrawColor(RakNetCopy[8], -1);
    
TextDrawSetOutline(RakNetCopy[8], 0);
    
TextDrawSetProportional(RakNetCopy[8], 1);
    
TextDrawSetShadow(RakNetCopy[8], 1);
    
TextDrawUseBox(RakNetCopy[8], 1);
    
TextDrawBoxColor(RakNetCopy[8], 0x38917fff);
    
TextDrawTextSize(RakNetCopy[8], 478.0000000.000000);
    
TextDrawSetSelectable(RakNetCopy[8], 0);

    
RakNetCopy[9] = TextDrawCreate(605.000000126.000000"_");
    
TextDrawBackgroundColor(RakNetCopy[9], 255);
    
TextDrawFont(RakNetCopy[9], 1);
    
TextDrawLetterSize(RakNetCopy[9], 0.5000001.500000);
    
TextDrawColor(RakNetCopy[9], -1);
    
TextDrawSetOutline(RakNetCopy[9], 0);
    
TextDrawSetProportional(RakNetCopy[9], 1);
    
TextDrawSetShadow(RakNetCopy[9], 1);
    
TextDrawUseBox(RakNetCopy[9], 1);
    
TextDrawBoxColor(RakNetCopy[9], 0x38917fff);
    
TextDrawTextSize(RakNetCopy[9], 542.0000000.000000);
    
TextDrawSetSelectable(RakNetCopy[9], 0);

    
RakNetCopy[10] = TextDrawCreate(478.000000126.000000"_");
    
TextDrawBackgroundColor(RakNetCopy[10], 255);
    
TextDrawFont(RakNetCopy[10], 1);
    
TextDrawLetterSize(RakNetCopy[10], 0.5000001.500000);
    
TextDrawColor(RakNetCopy[10], -1);
    
TextDrawSetOutline(RakNetCopy[10], 0);
    
TextDrawSetProportional(RakNetCopy[10], 1);
    
TextDrawSetShadow(RakNetCopy[10], 1);
    
TextDrawUseBox(RakNetCopy[10], 1);
    
TextDrawBoxColor(RakNetCopy[10], 0x38917fff);
    
TextDrawTextSize(RakNetCopy[10], 415.0000000.000000);
    
TextDrawSetSelectable(RakNetCopy[10], 0);

    
RakNetCopy[11] = TextDrawCreate(478.000000147.000000"_");
    
TextDrawBackgroundColor(RakNetCopy[11], 255);
    
TextDrawFont(RakNetCopy[11], 1);
    
TextDrawLetterSize(RakNetCopy[11], 0.5000001.500000);
    
TextDrawColor(RakNetCopy[11], -1);
    
TextDrawSetOutline(RakNetCopy[11], 0);
    
TextDrawSetProportional(RakNetCopy[11], 1);
    
TextDrawSetShadow(RakNetCopy[11], 1);
    
TextDrawUseBox(RakNetCopy[11], 1);
    
TextDrawBoxColor(RakNetCopy[11], 0x38917fff);
    
TextDrawTextSize(RakNetCopy[11], 415.0000000.000000);
    
TextDrawSetSelectable(RakNetCopy[11], 0);

    
RakNetCopy[12] = TextDrawCreate(542.000000147.000000"_");
    
TextDrawBackgroundColor(RakNetCopy[12], 255);
    
TextDrawFont(RakNetCopy[12], 1);
    
TextDrawLetterSize(RakNetCopy[12], 0.5000001.500000);
    
TextDrawColor(RakNetCopy[12], -1);
    
TextDrawSetOutline(RakNetCopy[12], 0);
    
TextDrawSetProportional(RakNetCopy[12], 1);
    
TextDrawSetShadow(RakNetCopy[12], 1);
    
TextDrawUseBox(RakNetCopy[12], 1);
    
TextDrawBoxColor(RakNetCopy[12], 0x38917fff);
    
TextDrawTextSize(RakNetCopy[12], 478.0000000.000000);
    
TextDrawSetSelectable(RakNetCopy[12], 0);

    
RakNetCopy[13] = TextDrawCreate(605.000000147.000000"_");
    
TextDrawBackgroundColor(RakNetCopy[13], 255);
    
TextDrawFont(RakNetCopy[13], 1);
    
TextDrawLetterSize(RakNetCopy[13], 0.5000001.500000);
    
TextDrawColor(RakNetCopy[13], -1);
    
TextDrawSetOutline(RakNetCopy[13], 0);
    
TextDrawSetProportional(RakNetCopy[13], 1);
    
TextDrawSetShadow(RakNetCopy[13], 1);
    
TextDrawUseBox(RakNetCopy[13], 1);
    
TextDrawBoxColor(RakNetCopy[13], 0x38917fff);
    
TextDrawTextSize(RakNetCopy[13], 542.0000000.000000);
    
TextDrawSetSelectable(RakNetCopy[13], 0);

    
RakNetCopy[14] = TextDrawCreate(605.000000171.000000"_");
    
TextDrawBackgroundColor(RakNetCopy[14], 255);
    
TextDrawFont(RakNetCopy[14], 1);
    
TextDrawLetterSize(RakNetCopy[14], 0.50000024.900000);
    
TextDrawColor(RakNetCopy[14], -1);
    
TextDrawSetOutline(RakNetCopy[14], 0);
    
TextDrawSetProportional(RakNetCopy[14], 1);
    
TextDrawSetShadow(RakNetCopy[14], 1);
    
TextDrawUseBox(RakNetCopy[14], 1);
    
TextDrawBoxColor(RakNetCopy[14], 0x38917fff);
    
TextDrawTextSize(RakNetCopy[14], 415.0000000.000000);
    
TextDrawSetSelectable(RakNetCopy[14], 0);

    
RakNetCopy[15] = TextDrawCreate(105.000000411.000000"CRAFT");
    
TextDrawBackgroundColor(RakNetCopy[15], 255);
    
TextDrawFont(RakNetCopy[15], 1);
    
TextDrawLetterSize(RakNetCopy[15], 0.5199991.299999);
    
TextDrawColor(RakNetCopy[15], -1);
    
TextDrawSetOutline(RakNetCopy[15], 0);
    
TextDrawSetProportional(RakNetCopy[15], 1);
    
TextDrawTextSize(RakNetCopy[15], 150.00000018.000000);
    
TextDrawSetShadow(RakNetCopy[15], 1);
    
TextDrawSetSelectable(RakNetCopy[15], 1);

    
RakNetCopy[16] = TextDrawCreate(427.000000410.000000"DROP");
    
TextDrawBackgroundColor(RakNetCopy[16], 255);
    
TextDrawFont(RakNetCopy[16], 1);
    
TextDrawLetterSize(RakNetCopy[16], 0.5199991.299999);
    
TextDrawColor(RakNetCopy[16], -1);
    
TextDrawSetOutline(RakNetCopy[16], 0);
    
TextDrawSetProportional(RakNetCopy[16], 1);
    
TextDrawTextSize(RakNetCopy[16], 470.00000018.000000);
    
TextDrawSetShadow(RakNetCopy[16], 1);
    
TextDrawSetSelectable(RakNetCopy[16], 1);

    
RakNetCopy[17] = TextDrawCreate(484.000000410.000000"DELETE");
    
TextDrawBackgroundColor(RakNetCopy[17], 255);
    
TextDrawFont(RakNetCopy[17], 1);
    
TextDrawLetterSize(RakNetCopy[17], 0.4799991.299999);
    
TextDrawColor(RakNetCopy[17], -1);
    
TextDrawSetOutline(RakNetCopy[17], 0);
    
TextDrawSetProportional(RakNetCopy[17], 1);
    
TextDrawTextSize(RakNetCopy[17], 530.00000018.000000);
    
TextDrawSetShadow(RakNetCopy[17], 1);
    
TextDrawSetSelectable(RakNetCopy[17], 1);

    
RakNetCopy[18] = TextDrawCreate(569.000000410.000000"i");
    
TextDrawBackgroundColor(RakNetCopy[18], 255);
    
TextDrawFont(RakNetCopy[18], 1);
    
TextDrawLetterSize(RakNetCopy[18], 0.4799991.299999);
    
TextDrawColor(RakNetCopy[18], -1);
    
TextDrawSetOutline(RakNetCopy[18], 0);
    
TextDrawSetProportional(RakNetCopy[18], 1);
    
TextDrawTextSize(RakNetCopy[18], 580.00000011.000000);
    
TextDrawSetShadow(RakNetCopy[18], 1);
    
TextDrawSetSelectable(RakNetCopy[18], 1);

    
RakNetCopy[19] = TextDrawCreate(588.000000410.000000"X");
    
TextDrawBackgroundColor(RakNetCopy[19], 255);
    
TextDrawFont(RakNetCopy[19], 1);
    
TextDrawLetterSize(RakNetCopy[19], 0.4799991.299999);
    
TextDrawColor(RakNetCopy[19], -1);
    
TextDrawSetOutline(RakNetCopy[19], 0);
    
TextDrawSetProportional(RakNetCopy[19], 1);
    
TextDrawTextSize(RakNetCopy[19], 600.00000012.000000);
    
TextDrawSetShadow(RakNetCopy[19], 1);
    
TextDrawSetSelectable(RakNetCopy[19], 1);

    
RakNetCopy[20] = TextDrawCreate(429.000000127.000000"GIVE");
    
TextDrawBackgroundColor(RakNetCopy[20], 255);
    
TextDrawFont(RakNetCopy[20], 1);
    
TextDrawLetterSize(RakNetCopy[20], 0.4799991.299999);
    
TextDrawColor(RakNetCopy[20], -1);
    
TextDrawSetOutline(RakNetCopy[20], 0);
    
TextDrawSetProportional(RakNetCopy[20], 1);
    
TextDrawTextSize(RakNetCopy[20], 465.00000018.000000);
    
TextDrawSetShadow(RakNetCopy[20], 1);
    
TextDrawSetSelectable(RakNetCopy[20], 1);

    
RakNetCopy[21] = TextDrawCreate(497.000000127.000000"BUY");
    
TextDrawBackgroundColor(RakNetCopy[21], 255);
    
TextDrawFont(RakNetCopy[21], 1);
    
TextDrawLetterSize(RakNetCopy[21], 0.4799991.299999);
    
TextDrawColor(RakNetCopy[21], -1);
    
TextDrawSetOutline(RakNetCopy[21], 0);
    
TextDrawSetProportional(RakNetCopy[21], 1);
    
TextDrawTextSize(RakNetCopy[21], 530.00000018.000000);
    
TextDrawSetShadow(RakNetCopy[21], 1);
    
TextDrawSetSelectable(RakNetCopy[21], 1);

    
RakNetCopy[22] = TextDrawCreate(557.000000127.000000"SELL");
    
TextDrawBackgroundColor(RakNetCopy[22], 255);
    
TextDrawFont(RakNetCopy[22], 1);
    
TextDrawLetterSize(RakNetCopy[22], 0.4799991.299999);
    
TextDrawColor(RakNetCopy[22], -1);
    
TextDrawSetOutline(RakNetCopy[22], 0);
    
TextDrawSetProportional(RakNetCopy[22], 1);
    
TextDrawTextSize(RakNetCopy[22], 580.00000018.000000);
    
TextDrawSetShadow(RakNetCopy[22], 1);
    
TextDrawSetSelectable(RakNetCopy[22], 1);

    
RakNetCopy[23] = TextDrawCreate(435.000000147.000000"INV");
    
TextDrawBackgroundColor(RakNetCopy[23], 255);
    
TextDrawFont(RakNetCopy[23], 1);
    
TextDrawLetterSize(RakNetCopy[23], 0.4799991.299999);
    
TextDrawColor(RakNetCopy[23], -1);
    
TextDrawSetOutline(RakNetCopy[23], 0);
    
TextDrawSetProportional(RakNetCopy[23], 1);
    
TextDrawTextSize(RakNetCopy[23], 470.00000018.000000);
    
TextDrawSetShadow(RakNetCopy[23], 1);
    
TextDrawSetSelectable(RakNetCopy[23], 1);

    
RakNetCopy[24] = TextDrawCreate(495.000000147.000000"CAR");
    
TextDrawBackgroundColor(RakNetCopy[24], 255);
    
TextDrawFont(RakNetCopy[24], 1);
    
TextDrawLetterSize(RakNetCopy[24], 0.4799991.299999);
    
TextDrawColor(RakNetCopy[24], -1);
    
TextDrawSetOutline(RakNetCopy[24], 0);
    
TextDrawSetProportional(RakNetCopy[24], 1);
    
TextDrawTextSize(RakNetCopy[24], 530.00000018.000000);
    
TextDrawSetShadow(RakNetCopy[24], 1);
    
TextDrawSetSelectable(RakNetCopy[24], 1);

    
RakNetCopy[25] = TextDrawCreate(549.000000147.000000"HOUSE");
    
TextDrawBackgroundColor(RakNetCopy[25], 255);
    
TextDrawFont(RakNetCopy[25], 1);
    
TextDrawLetterSize(RakNetCopy[25], 0.4799991.299999);
    
TextDrawColor(RakNetCopy[25], -1);
    
TextDrawSetOutline(RakNetCopy[25], 0);
    
TextDrawSetProportional(RakNetCopy[25], 1);
    
TextDrawTextSize(RakNetCopy[25], 580.00000018.000000);
    
TextDrawSetShadow(RakNetCopy[25], 1);
    
TextDrawSetSelectable(RakNetCopy[25], 1);

    
RakNetCopy[26] = TextDrawCreate(191.000000130.000000"_");
    
TextDrawAlignment(RakNetCopy[26], 2);
    
TextDrawBackgroundColor(RakNetCopy[26], 255);
    
TextDrawFont(RakNetCopy[26], 5);
    
TextDrawLetterSize(RakNetCopy[26], -0.099999, -0.400000);
    
TextDrawColor(RakNetCopy[26], -1);
    
TextDrawSetOutline(RakNetCopy[26], 0);
    
TextDrawSetProportional(RakNetCopy[26], 0);
    
TextDrawSetShadow(RakNetCopy[26], 1);
    
TextDrawUseBox(RakNetCopy[26], 1);
    
TextDrawBoxColor(RakNetCopy[26], -1);
    
TextDrawTextSize(RakNetCopy[26], 29.00000030.000000);
    
TextDrawSetPreviewModel(RakNetCopy[26], 19461);
    
TextDrawSetPreviewRot(RakNetCopy[26], -16.0000000.000000, -55.0000000.100000);
    
TextDrawSetSelectable(RakNetCopy[26], 1);

    
RakNetCopy[27] = TextDrawCreate(191.000000174.000000"_");
    
TextDrawAlignment(RakNetCopy[27], 2);
    
TextDrawBackgroundColor(RakNetCopy[27], 255);
    
TextDrawFont(RakNetCopy[27], 5);
    
TextDrawLetterSize(RakNetCopy[27], -0.099999, -0.400000);
    
TextDrawColor(RakNetCopy[27], -1);
    
TextDrawSetOutline(RakNetCopy[27], 0);
    
TextDrawSetProportional(RakNetCopy[27], 0);
    
TextDrawSetShadow(RakNetCopy[27], 1);
    
TextDrawUseBox(RakNetCopy[27], 1);
    
TextDrawBoxColor(RakNetCopy[27], -1);
    
TextDrawTextSize(RakNetCopy[27], 29.00000030.000000);
    
TextDrawSetPreviewModel(RakNetCopy[27], 19461);
    
TextDrawSetPreviewRot(RakNetCopy[27], -16.0000000.000000, -55.0000000.100000);
    
TextDrawSetSelectable(RakNetCopy[27], 1);

    
RakNetCopy[28] = TextDrawCreate(191.000000221.000000"_");
    
TextDrawAlignment(RakNetCopy[28], 2);
    
TextDrawBackgroundColor(RakNetCopy[28], 255);
    
TextDrawFont(RakNetCopy[28], 5);
    
TextDrawLetterSize(RakNetCopy[28], -0.099999, -0.400000);
    
TextDrawColor(RakNetCopy[28], -1);
    
TextDrawSetOutline(RakNetCopy[28], 0);
    
TextDrawSetProportional(RakNetCopy[28], 0);
    
TextDrawSetShadow(RakNetCopy[28], 1);
    
TextDrawUseBox(RakNetCopy[28], 1);
    
TextDrawBoxColor(RakNetCopy[28], -1);
    
TextDrawTextSize(RakNetCopy[28], 29.00000030.000000);
    
TextDrawSetPreviewModel(RakNetCopy[28], 19461);
    
TextDrawSetPreviewRot(RakNetCopy[28], -16.0000000.000000, -55.0000000.100000);
    
TextDrawSetSelectable(RakNetCopy[28], 1);

    
RakNetCopy[29] = TextDrawCreate(41.000000220.000000"_");
    
TextDrawAlignment(RakNetCopy[29], 2);
    
TextDrawBackgroundColor(RakNetCopy[29], 255);
    
TextDrawFont(RakNetCopy[29], 5);
    
TextDrawLetterSize(RakNetCopy[29], -0.099999, -0.400000);
    
TextDrawColor(RakNetCopy[29], -1);
    
TextDrawSetOutline(RakNetCopy[29], 0);
    
TextDrawSetProportional(RakNetCopy[29], 0);
    
TextDrawSetShadow(RakNetCopy[29], 1);
    
TextDrawUseBox(RakNetCopy[29], 1);
    
TextDrawBoxColor(RakNetCopy[29], -1);
    
TextDrawTextSize(RakNetCopy[29], 29.00000030.000000);
    
TextDrawSetPreviewModel(RakNetCopy[29], 19461);
    
TextDrawSetPreviewRot(RakNetCopy[29], -16.0000000.000000, -55.0000000.100000);
    
TextDrawSetSelectable(RakNetCopy[29], 1);

    
RakNetCopy[30] = TextDrawCreate(41.000000174.000000"_");
    
TextDrawAlignment(RakNetCopy[30], 2);
    
TextDrawBackgroundColor(RakNetCopy[30], 255);
    
TextDrawFont(RakNetCopy[30], 5);
    
TextDrawLetterSize(RakNetCopy[30], -0.099999, -0.400000);
    
TextDrawColor(RakNetCopy[30], -1);
    
TextDrawSetOutline(RakNetCopy[30], 0);
    
TextDrawSetProportional(RakNetCopy[30], 0);
    
TextDrawSetShadow(RakNetCopy[30], 1);
    
TextDrawUseBox(RakNetCopy[30], 1);
    
TextDrawBoxColor(RakNetCopy[30], -1);
    
TextDrawTextSize(RakNetCopy[30], 29.00000030.000000);
    
TextDrawSetPreviewModel(RakNetCopy[30], 19461);
    
TextDrawSetPreviewRot(RakNetCopy[30], -16.0000000.000000, -55.0000000.100000);
    
TextDrawSetSelectable(RakNetCopy[30], 1);

    
RakNetCopy[31] = TextDrawCreate(41.000000130.000000"_");
    
TextDrawAlignment(RakNetCopy[31], 2);
    
TextDrawBackgroundColor(RakNetCopy[31], 255);
    
TextDrawFont(RakNetCopy[31], 5);
    
TextDrawLetterSize(RakNetCopy[31], -0.099999, -0.400000);
    
TextDrawColor(RakNetCopy[31], -1);
    
TextDrawSetOutline(RakNetCopy[31], 0);
    
TextDrawSetProportional(RakNetCopy[31], 0);
    
TextDrawSetShadow(RakNetCopy[31], 1);
    
TextDrawUseBox(RakNetCopy[31], 1);
    
TextDrawBoxColor(RakNetCopy[31], -1);
    
TextDrawTextSize(RakNetCopy[31], 29.00000030.000000);
    
TextDrawSetPreviewModel(RakNetCopy[31], 19461);
    
TextDrawSetPreviewRot(RakNetCopy[31], -16.0000000.000000, -55.0000000.100000);
    
TextDrawSetSelectable(RakNetCopy[31], 1);

    
RakNetCopy[32] = TextDrawCreate(83.000000130.000000"_");
    
TextDrawAlignment(RakNetCopy[32], 2);
    
TextDrawBackgroundColor(RakNetCopy[32], 0x38917fff);
    
TextDrawFont(RakNetCopy[32], 5);
    
TextDrawLetterSize(RakNetCopy[32], -0.099999, -0.400000);
    
TextDrawColor(RakNetCopy[32], -1);
    
TextDrawSetOutline(RakNetCopy[32], 0);
    
TextDrawSetProportional(RakNetCopy[32], 0);
    
TextDrawSetShadow(RakNetCopy[32], 1);
    
TextDrawUseBox(RakNetCopy[32], 1);
    
TextDrawBoxColor(RakNetCopy[32], 255);
    
TextDrawTextSize(RakNetCopy[32], 97.000000120.000000);
    
TextDrawSetPreviewModel(RakNetCopy[32], 0);
    
TextDrawSetPreviewRot(RakNetCopy[32], 0.0000000.0000000.0000001.000000);
    
TextDrawSetSelectable(RakNetCopy[32], 1);

    
RakNetCopy[33] = TextDrawCreate(83.000000260.000000"_");
    
TextDrawAlignment(RakNetCopy[33], 2);
    
TextDrawBackgroundColor(RakNetCopy[33], 255);
    
TextDrawFont(RakNetCopy[33], 5);
    
TextDrawLetterSize(RakNetCopy[33], -0.099999, -0.400000);
    
TextDrawColor(RakNetCopy[33], -1);
    
TextDrawSetOutline(RakNetCopy[33], 0);
    
TextDrawSetProportional(RakNetCopy[33], 0);
    
TextDrawSetShadow(RakNetCopy[33], 1);
    
TextDrawUseBox(RakNetCopy[33], 1);
    
TextDrawBoxColor(RakNetCopy[33], -1);
    
TextDrawTextSize(RakNetCopy[33], 29.00000030.000000);
    
TextDrawSetPreviewModel(RakNetCopy[33], 19461);
    
TextDrawSetPreviewRot(RakNetCopy[33], -16.0000000.000000, -55.0000000.100000);
    
TextDrawSetSelectable(RakNetCopy[33], 1);

    
RakNetCopy[34] = TextDrawCreate(117.000000260.000000"_");
    
TextDrawAlignment(RakNetCopy[34], 2);
    
TextDrawBackgroundColor(RakNetCopy[34], 255);
    
TextDrawFont(RakNetCopy[34], 5);
    
TextDrawLetterSize(RakNetCopy[34], -0.099999, -0.400000);
    
TextDrawColor(RakNetCopy[34], -1);
    
TextDrawSetOutline(RakNetCopy[34], 0);
    
TextDrawSetProportional(RakNetCopy[34], 0);
    
TextDrawSetShadow(RakNetCopy[34], 1);
    
TextDrawUseBox(RakNetCopy[34], 1);
    
TextDrawBoxColor(RakNetCopy[34], -1);
    
TextDrawTextSize(RakNetCopy[34], 29.00000030.000000);
    
TextDrawSetPreviewModel(RakNetCopy[34], 19461);
    
TextDrawSetPreviewRot(RakNetCopy[34], -16.0000000.000000, -55.0000000.100000);
    
TextDrawSetSelectable(RakNetCopy[34], 1);

    
RakNetCopy[35] = TextDrawCreate(151.000000260.000000"_");
    
TextDrawAlignment(RakNetCopy[35], 2);
    
TextDrawBackgroundColor(RakNetCopy[35], 255);
    
TextDrawFont(RakNetCopy[35], 5);
    
TextDrawLetterSize(RakNetCopy[35], -0.099999, -0.400000);
    
TextDrawColor(RakNetCopy[35], -1);
    
TextDrawSetOutline(RakNetCopy[35], 0);
    
TextDrawSetProportional(RakNetCopy[35], 0);
    
TextDrawSetShadow(RakNetCopy[35], 1);
    
TextDrawUseBox(RakNetCopy[35], 1);
    
TextDrawBoxColor(RakNetCopy[35], -1);
    
TextDrawTextSize(RakNetCopy[35], 29.00000030.000000);
    
TextDrawSetPreviewModel(RakNetCopy[35], 19461);
    
TextDrawSetPreviewRot(RakNetCopy[35], -16.0000000.000000, -55.0000000.100000);
    
TextDrawSetSelectable(RakNetCopy[35], 1);

    
RakNetCopy[36] = TextDrawCreate(151.000000292.000000"_");
    
TextDrawAlignment(RakNetCopy[36], 2);
    
TextDrawBackgroundColor(RakNetCopy[36], 255);
    
TextDrawFont(RakNetCopy[36], 5);
    
TextDrawLetterSize(RakNetCopy[36], -0.099999, -0.400000);
    
TextDrawColor(RakNetCopy[36], -1);
    
TextDrawSetOutline(RakNetCopy[36], 0);
    
TextDrawSetProportional(RakNetCopy[36], 0);
    
TextDrawSetShadow(RakNetCopy[36], 1);
    
TextDrawUseBox(RakNetCopy[36], 1);
    
TextDrawBoxColor(RakNetCopy[36], -1);
    
TextDrawTextSize(RakNetCopy[36], 29.00000030.000000);
    
TextDrawSetPreviewModel(RakNetCopy[36], 19461);
    
TextDrawSetPreviewRot(RakNetCopy[36], -16.0000000.000000, -55.0000000.100000);
    
TextDrawSetSelectable(RakNetCopy[36], 1);

    
RakNetCopy[37] = TextDrawCreate(117.000000292.000000"_");
    
TextDrawAlignment(RakNetCopy[37], 2);
    
TextDrawBackgroundColor(RakNetCopy[37], 255);
    
TextDrawFont(RakNetCopy[37], 5);
    
TextDrawLetterSize(RakNetCopy[37], -0.099999, -0.400000);
    
TextDrawColor(RakNetCopy[37], -1);
    
TextDrawSetOutline(RakNetCopy[37], 0);
    
TextDrawSetProportional(RakNetCopy[37], 0);
    
TextDrawSetShadow(RakNetCopy[37], 1);
    
TextDrawUseBox(RakNetCopy[37], 1);
    
TextDrawBoxColor(RakNetCopy[37], -1);
    
TextDrawTextSize(RakNetCopy[37], 29.00000030.000000);
    
TextDrawSetPreviewModel(RakNetCopy[37], 19461);
    
TextDrawSetPreviewRot(RakNetCopy[37], -16.0000000.000000, -55.0000000.100000);
    
TextDrawSetSelectable(RakNetCopy[37], 1);

    
RakNetCopy[38] = TextDrawCreate(83.000000292.000000"_");
    
TextDrawAlignment(RakNetCopy[38], 2);
    
TextDrawBackgroundColor(RakNetCopy[38], 255);
    
TextDrawFont(RakNetCopy[38], 5);
    
TextDrawLetterSize(RakNetCopy[38], -0.099999, -0.400000);
    
TextDrawColor(RakNetCopy[38], -1);
    
TextDrawSetOutline(RakNetCopy[38], 0);
    
TextDrawSetProportional(RakNetCopy[38], 0);
    
TextDrawSetShadow(RakNetCopy[38], 1);
    
TextDrawUseBox(RakNetCopy[38], 1);
    
TextDrawBoxColor(RakNetCopy[38], -1);
    
TextDrawTextSize(RakNetCopy[38], 29.00000030.000000);
    
TextDrawSetPreviewModel(RakNetCopy[38], 19461);
    
TextDrawSetPreviewRot(RakNetCopy[38], -16.0000000.000000, -55.0000000.100000);
    
TextDrawSetSelectable(RakNetCopy[38], 1);

    
RakNetCopy[39] = TextDrawCreate(50.000000352.000000"_");
    
TextDrawAlignment(RakNetCopy[39], 2);
    
TextDrawBackgroundColor(RakNetCopy[39], 255);
    
TextDrawFont(RakNetCopy[39], 5);
    
TextDrawLetterSize(RakNetCopy[39], -0.099999, -0.400000);
    
TextDrawColor(RakNetCopy[39], -1);
    
TextDrawSetOutline(RakNetCopy[39], 0);
    
TextDrawSetProportional(RakNetCopy[39], 0);
    
TextDrawSetShadow(RakNetCopy[39], 1);
    
TextDrawUseBox(RakNetCopy[39], 1);
    
TextDrawBoxColor(RakNetCopy[39], -1);
    
TextDrawTextSize(RakNetCopy[39], 29.00000030.000000);
    
TextDrawSetPreviewModel(RakNetCopy[39], 19461);
    
TextDrawSetPreviewRot(RakNetCopy[39], -16.0000000.000000, -55.0000000.100000);
    
TextDrawSetSelectable(RakNetCopy[39], 1);

    
RakNetCopy[40] = TextDrawCreate(180.000000352.000000"_");
    
TextDrawAlignment(RakNetCopy[40], 2);
    
TextDrawBackgroundColor(RakNetCopy[40], 255);
    
TextDrawFont(RakNetCopy[40], 5);
    
TextDrawLetterSize(RakNetCopy[40], -0.099999, -0.400000);
    
TextDrawColor(RakNetCopy[40], -1);
    
TextDrawSetOutline(RakNetCopy[40], 0);
    
TextDrawSetProportional(RakNetCopy[40], 0);
    
TextDrawSetShadow(RakNetCopy[40], 1);
    
TextDrawUseBox(RakNetCopy[40], 1);
    
TextDrawBoxColor(RakNetCopy[40], -1);
    
TextDrawTextSize(RakNetCopy[40], 29.00000030.000000);
    
TextDrawSetPreviewModel(RakNetCopy[40], 19461);
    
TextDrawSetPreviewRot(RakNetCopy[40], -16.0000000.000000, -55.0000000.100000);
    
TextDrawSetSelectable(RakNetCopy[40], 1);

    
RakNetCopy[41] = TextDrawCreate(90.000000334.000000"_");
    
TextDrawAlignment(RakNetCopy[41], 2);
    
TextDrawBackgroundColor(RakNetCopy[41], 255);
    
TextDrawFont(RakNetCopy[41], 5);
    
TextDrawLetterSize(RakNetCopy[41], -0.099999, -0.400000);
    
TextDrawColor(RakNetCopy[41], -1);
    
TextDrawSetOutline(RakNetCopy[41], 0);
    
TextDrawSetProportional(RakNetCopy[41], 0);
    
TextDrawSetShadow(RakNetCopy[41], 1);
    
TextDrawUseBox(RakNetCopy[41], 1);
    
TextDrawBoxColor(RakNetCopy[41], -1);
    
TextDrawTextSize(RakNetCopy[41], 80.00000066.000000);
    
TextDrawSetPreviewModel(RakNetCopy[41], 19461);
    
TextDrawSetPreviewRot(RakNetCopy[41], -16.0000000.000000, -55.0000000.100000);
    
TextDrawSetSelectable(RakNetCopy[41], 1);

    new 
Float:DrawFloat_X 418.0000,Float:DrawFloat_Y 172.0000;
    new 
0,drawid 42;
    for(new 
i42i++)
    {
        if(
== 60,DrawFloat_Y += 32.0,DrawFloat_X 418.0000;
        else if(
&& 6DrawFloat_X += 31.0;

        
RakNetCopy[drawid] = TextDrawCreate(DrawFloat_XDrawFloat_Y"_");
        
TextDrawAlignment(RakNetCopy[drawid], 2);
        
TextDrawBackgroundColor(RakNetCopy[drawid], 255);
        
TextDrawFont(RakNetCopy[drawid], 5);
        
TextDrawLetterSize(RakNetCopy[drawid], -0.099999, -0.400000);
        
TextDrawColor(RakNetCopy[drawid], -1);
        
TextDrawSetOutline(RakNetCopy[drawid], 0);
        
TextDrawSetProportional(RakNetCopy[drawid], 0);
        
TextDrawSetShadow(RakNetCopy[drawid], 1);
        
TextDrawUseBox(RakNetCopy[drawid], 1);
        
TextDrawBoxColor(RakNetCopy[drawid], -1);
        
TextDrawTextSize(RakNetCopy[drawid], 29.00000030.000000);
        
TextDrawSetPreviewModel(RakNetCopy[drawid], 19461);
        
TextDrawSetPreviewRot(RakNetCopy[drawid], -16.0000000.000000, -55.0000000.100000);
        
TextDrawSetSelectable(RakNetCopy[drawid], 1);
        
c++,drawid++;
    }  


в public OnPlayerKeyStateChange

Code: Select all

    if(newkeys == KEY_CTRL_BACK && gPlayerLogged[playerid])
    {
    if(!
GetPVarInt(playerid,"InvH"))
    {
        
TextDrawSetPreviewModel(RakNetCopy[32], GetPlayerSkin(playerid));
        for(new 
isizeof(RakNetCopy); i++) TextDrawShowForPlayer(playerid,RakNetCopy[i]);
        
SelectTextDraw(playerid,0xf2ddc6ff);
        
SetPVarInt(playerid,"InvH",1);
    }
    else
    {
        
CancelSelectTextDraw(playerid);
        for(new 
isizeof(RakNetCopy); i++) TextDrawHideForPlayer(playerid,RakNetCopy[i]);
        
DeletePVar(playerid,"InvH");
    }
    }  


В конце мода создаем public

Code: Select all

public OnPlayerClickTextDraw(playeridText:clickedid)
{
    if(
clickedid == RakNetCopy[19])
    {
        
CancelSelectTextDraw(playerid);
        for(new 
isizeof(RakNetCopy); i++) TextDrawHideForPlayer(playerid,RakNetCopy[i]);
        
DeletePVar(playerid,"InvH");
    }
    return 
1;
}  
Image

! ! !


  • Similar Topics
    Replies
    Views
    Last post

Return to “Уроки”

Who is online

Users browsing this forum: 1 guest