Drummer1993

функциональный инвентарь часть 1

В теме 2 сообщения

Спойлер

к всем new


new InventOpen[MAX_PLAYERS];
new Text:inventory_TD[49];
new PlayerText:inventory_PTD[MAX_PLAYERS][29];

 

Спойлер

public OnGameModeInit()


inventory_TD[0] = TextDrawCreate(136.199762.9107"LD_SPAC:white"); // ?????
    TextDrawTextSize(inventory_TD[0], 190.0000316.0000);
    TextDrawAlignment(inventory_TD[0], 1);
    TextDrawColor(inventory_TD[0], 404232447);
    TextDrawBackgroundColor(inventory_TD[0], 255);
    TextDrawFont(inventory_TD[0], 4);
    TextDrawSetProportional(inventory_TD[0], 0);
    TextDrawSetShadow(inventory_TD[0], 0);

    inventory_TD[1] = TextDrawCreate(318.999560.4220"LD_BEAT:chit"); // ?????
    TextDrawTextSize(inventory_TD[1], 14.000016.0000);
    TextDrawAlignment(inventory_TD[1], 1);
    TextDrawColor(inventory_TD[1], 404232447);
    TextDrawBackgroundColor(inventory_TD[1], 255);
    TextDrawFont(inventory_TD[1], 4);
    TextDrawSetProportional(inventory_TD[1], 0);
    TextDrawSetShadow(inventory_TD[1], 0);

    inventory_TD[2] = TextDrawCreate(128.999860.4197"LD_BEAT:chit"); // ?????
    TextDrawTextSize(inventory_TD[2], 14.000016.0000);
    TextDrawAlignment(inventory_TD[2], 1);
    TextDrawColor(inventory_TD[2], 404232447);
    TextDrawBackgroundColor(inventory_TD[2], 255);
    TextDrawFont(inventory_TD[2], 4);
    TextDrawSetProportional(inventory_TD[2], 0);
    TextDrawSetShadow(inventory_TD[2], 0);

    inventory_TD[3] = TextDrawCreate(131.868368.5574"LD_SPAC:white"); // ?????
    TextDrawTextSize(inventory_TD[3], 190.0000305.0000);
    TextDrawAlignment(inventory_TD[3], 1);
    TextDrawColor(inventory_TD[3], 404232447);
    TextDrawBackgroundColor(inventory_TD[3], 255);
    TextDrawFont(inventory_TD[3], 4);
    TextDrawSetProportional(inventory_TD[3], 0);
    TextDrawSetShadow(inventory_TD[3], 0);

    inventory_TD[4] = TextDrawCreate(128.9998365.6600"LD_BEAT:chit"); // ?????
    TextDrawTextSize(inventory_TD[4], 14.000016.0000);
    TextDrawAlignment(inventory_TD[4], 1);
    TextDrawColor(inventory_TD[4], 404232447);
    TextDrawBackgroundColor(inventory_TD[4], 255);
    TextDrawFont(inventory_TD[4], 4);
    TextDrawSetProportional(inventory_TD[4], 0);
    TextDrawSetShadow(inventory_TD[4], 0);

    inventory_TD[5] = TextDrawCreate(139.662868.4720"LD_SPAC:white"); // ?????
    TextDrawTextSize(inventory_TD[5], 190.0000305.0000);
    TextDrawAlignment(inventory_TD[5], 1);
    TextDrawColor(inventory_TD[5], 404232447);
    TextDrawBackgroundColor(inventory_TD[5], 255);
    TextDrawFont(inventory_TD[5], 4);
    TextDrawSetProportional(inventory_TD[5], 0);
    TextDrawSetShadow(inventory_TD[5], 0);

    inventory_TD[6] = TextDrawCreate(318.9999365.6600"LD_BEAT:chit"); // ?????
    TextDrawTextSize(inventory_TD[6], 14.000016.0000);
    TextDrawAlignment(inventory_TD[6], 1);
    TextDrawColor(inventory_TD[6], 404232447);
    TextDrawBackgroundColor(inventory_TD[6], 255);
    TextDrawFont(inventory_TD[6], 4);
    TextDrawSetProportional(inventory_TD[6], 0);
    TextDrawSetShadow(inventory_TD[6], 0);

    inventory_TD[7] = TextDrawCreate(180.999868.8843"particle:lamp_shad_64"); // ?????
    TextDrawTextSize(inventory_TD[7], 103.000076.0000);
    TextDrawAlignment(inventory_TD[7], 1);
    TextDrawColor(inventory_TD[7], -202);
    TextDrawBackgroundColor(inventory_TD[7], 255);
    TextDrawFont(inventory_TD[7], 4);
    TextDrawSetProportional(inventory_TD[7], 0);
    TextDrawSetShadow(inventory_TD[7], 0);

    inventory_TD[8] = TextDrawCreate(182.5997208.2622"particle:lamp_shad_64"); // ?????
    TextDrawTextSize(inventory_TD[8], 102.0000, -63.0000);
    TextDrawAlignment(inventory_TD[8], 1);
    TextDrawColor(inventory_TD[8], -202);
    TextDrawBackgroundColor(inventory_TD[8], 255);
    TextDrawFont(inventory_TD[8], 4);
    TextDrawSetProportional(inventory_TD[8], 0);
    TextDrawSetShadow(inventory_TD[8], 0);

    inventory_TD[9] = TextDrawCreate(140.5997250.0751"LD_SPAC:white"); // ?????
    TextDrawTextSize(inventory_TD[9], 88.000029.0000);
    TextDrawAlignment(inventory_TD[9], 1);
    TextDrawColor(inventory_TD[9], 1384248575);
    TextDrawBackgroundColor(inventory_TD[9], 255);
    TextDrawFont(inventory_TD[9], 4);
    TextDrawSetProportional(inventory_TD[9], 0);
    TextDrawSetShadow(inventory_TD[9], 0);
    TextDrawSetSelectable(inventory_TD[9], true);

    inventory_TD[10] = TextDrawCreate(231.7315250.0753"LD_SPAC:white"); // ?????
    TextDrawTextSize(inventory_TD[10], 88.000029.0000);
    TextDrawAlignment(inventory_TD[10], 1);
    TextDrawColor(inventory_TD[10], 1384248575);
    TextDrawBackgroundColor(inventory_TD[10], 255);
    TextDrawFont(inventory_TD[10], 4);
    TextDrawSetProportional(inventory_TD[10], 0);
    TextDrawSetShadow(inventory_TD[10], 0);
    TextDrawSetSelectable(inventory_TD[10], true);

    inventory_TD[11] = TextDrawCreate(140.6000284.3309"LD_SPAC:white"); // ?????
    TextDrawTextSize(inventory_TD[11], 88.000029.0000);
    TextDrawAlignment(inventory_TD[11], 1);
    TextDrawColor(inventory_TD[11], 1384248575);
    TextDrawBackgroundColor(inventory_TD[11], 255);
    TextDrawFont(inventory_TD[11], 4);
    TextDrawSetProportional(inventory_TD[11], 0);
    TextDrawSetShadow(inventory_TD[11], 0);
    TextDrawSetSelectable(inventory_TD[11], true);

    inventory_TD[12] = TextDrawCreate(232.1316284.4309"LD_SPAC:white"); // ?????
    TextDrawTextSize(inventory_TD[12], 88.000029.0000);
    TextDrawAlignment(inventory_TD[12], 1);
    TextDrawColor(inventory_TD[12], 1384248575);
    TextDrawBackgroundColor(inventory_TD[12], 255);
    TextDrawFont(inventory_TD[12], 4);
    TextDrawSetProportional(inventory_TD[12], 0);
    TextDrawSetShadow(inventory_TD[12], 0);
    TextDrawSetSelectable(inventory_TD[12], true);

    inventory_TD[13] = TextDrawCreate(140.6002317.7731"LD_SPAC:white"); // ?????
    TextDrawTextSize(inventory_TD[13], 88.000029.0000);
    TextDrawAlignment(inventory_TD[13], 1);
    TextDrawColor(inventory_TD[13], 1384248575);
    TextDrawBackgroundColor(inventory_TD[13], 255);
    TextDrawFont(inventory_TD[13], 4);
    TextDrawSetProportional(inventory_TD[13], 0);
    TextDrawSetShadow(inventory_TD[13], 0);
    TextDrawSetSelectable(inventory_TD[13], true);

    inventory_TD[14] = TextDrawCreate(233.0686318.3562"LD_SPAC:white"); // ?????
    TextDrawTextSize(inventory_TD[14], 88.000029.0000);
    TextDrawAlignment(inventory_TD[14], 1);
    TextDrawColor(inventory_TD[14], 1384248575);
    TextDrawBackgroundColor(inventory_TD[14], 255);
    TextDrawFont(inventory_TD[14], 4);
    TextDrawSetProportional(inventory_TD[14], 0);
    TextDrawSetShadow(inventory_TD[14], 0);
    TextDrawSetSelectable(inventory_TD[14], true);

    inventory_TD[15] = TextDrawCreate(136.1999262.0220"particle:lamp_shad_64"); // ?????
    TextDrawTextSize(inventory_TD[15], 100.000017.0000);
    TextDrawAlignment(inventory_TD[15], 1);
    TextDrawColor(inventory_TD[15], -175);
    TextDrawBackgroundColor(inventory_TD[15], 255);
    TextDrawFont(inventory_TD[15], 4);
    TextDrawSetProportional(inventory_TD[15], 0);
    TextDrawSetShadow(inventory_TD[15], 0);

    inventory_TD[16] = TextDrawCreate(228.9998261.5244"particle:lamp_shad_64"); // ?????
    TextDrawTextSize(inventory_TD[16], 100.000017.0000);
    TextDrawAlignment(inventory_TD[16], 1);
    TextDrawColor(inventory_TD[16], -175);
    TextDrawBackgroundColor(inventory_TD[16], 255);
    TextDrawFont(inventory_TD[16], 4);
    TextDrawSetProportional(inventory_TD[16], 0);
    TextDrawSetShadow(inventory_TD[16], 0);

    inventory_TD[17] = TextDrawCreate(136.1997296.3688"particle:lamp_shad_64"); // ?????
    TextDrawTextSize(inventory_TD[17], 100.000017.0000);
    TextDrawAlignment(inventory_TD[17], 1);
    TextDrawColor(inventory_TD[17], -175);
    TextDrawBackgroundColor(inventory_TD[17], 255);
    TextDrawFont(inventory_TD[17], 4);
    TextDrawSetProportional(inventory_TD[17], 0);
    TextDrawSetShadow(inventory_TD[17], 0);

    inventory_TD[18] = TextDrawCreate(228.1997295.8710"particle:lamp_shad_64"); // ?????
    TextDrawTextSize(inventory_TD[18], 100.000017.0000);
    TextDrawAlignment(inventory_TD[18], 1);
    TextDrawColor(inventory_TD[18], -175);
    TextDrawBackgroundColor(inventory_TD[18], 255);
    TextDrawFont(inventory_TD[18], 4);
    TextDrawSetProportional(inventory_TD[18], 0);
    TextDrawSetShadow(inventory_TD[18], 0);

    inventory_TD[19] = TextDrawCreate(136.1997330.2177"particle:lamp_shad_64"); // ?????
    TextDrawTextSize(inventory_TD[19], 100.000017.0000);
    TextDrawAlignment(inventory_TD[19], 1);
    TextDrawColor(inventory_TD[19], -175);
    TextDrawBackgroundColor(inventory_TD[19], 255);
    TextDrawFont(inventory_TD[19], 4);
    TextDrawSetProportional(inventory_TD[19], 0);
    TextDrawSetShadow(inventory_TD[19], 0);

    inventory_TD[20] = TextDrawCreate(229.3997329.7200"particle:lamp_shad_64"); // ?????
    TextDrawTextSize(inventory_TD[20], 100.000017.0000);
    TextDrawAlignment(inventory_TD[20], 1);
    TextDrawColor(inventory_TD[20], -175);
    TextDrawBackgroundColor(inventory_TD[20], 255);
    TextDrawFont(inventory_TD[20], 4);
    TextDrawSetProportional(inventory_TD[20], 0);
    TextDrawSetShadow(inventory_TD[20], 0);

    inventory_TD[21] = TextDrawCreate(184.7998257.1997"MENU"); // ?????
    TextDrawLetterSize(inventory_TD[21], 0.48961.8638);
    TextDrawTextSize(inventory_TD[21], 0.000086.0000);
    TextDrawAlignment(inventory_TD[21], 2);
    TextDrawColor(inventory_TD[21], -1);
    TextDrawUseBox(inventory_TD[21], 1);
    TextDrawBoxColor(inventory_TD[21], 0);
    TextDrawBackgroundColor(inventory_TD[21], 255);
    TextDrawFont(inventory_TD[21], 1);
    TextDrawSetProportional(inventory_TD[21], 1);
    TextDrawSetShadow(inventory_TD[21], 0);
    TextDrawSetSelectable(inventory_TD[21], true);

    inventory_TD[22] = TextDrawCreate(275.9996257.1997"CARS"); // ?????
    TextDrawLetterSize(inventory_TD[22], 0.48961.8638);
    TextDrawTextSize(inventory_TD[22], 0.000086.0000);
    TextDrawAlignment(inventory_TD[22], 2);
    TextDrawColor(inventory_TD[22], -1);
    TextDrawUseBox(inventory_TD[22], 1);
    TextDrawBoxColor(inventory_TD[22], 0);
    TextDrawBackgroundColor(inventory_TD[22], 255);
    TextDrawFont(inventory_TD[22], 1);
    TextDrawSetProportional(inventory_TD[22], 1);
    TextDrawSetShadow(inventory_TD[22], 0);
    TextDrawSetSelectable(inventory_TD[22], true);

    inventory_TD[23] = TextDrawCreate(185.1997290.0531"BUSINESS"); // ?????
    TextDrawLetterSize(inventory_TD[23], 0.48961.8638);
    TextDrawTextSize(inventory_TD[23], 0.000086.0000);
    TextDrawAlignment(inventory_TD[23], 2);
    TextDrawColor(inventory_TD[23], -1);
    TextDrawUseBox(inventory_TD[23], 1);
    TextDrawBoxColor(inventory_TD[23], 0);
    TextDrawBackgroundColor(inventory_TD[23], 255);
    TextDrawFont(inventory_TD[23], 1);
    TextDrawSetProportional(inventory_TD[23], 1);
    TextDrawSetShadow(inventory_TD[23], 0);
    TextDrawSetSelectable(inventory_TD[23], true);

    inventory_TD[24] = TextDrawCreate(276.7998290.0531"HOUSE"); // ?????
    TextDrawLetterSize(inventory_TD[24], 0.48961.8638);
    TextDrawTextSize(inventory_TD[24], 0.000086.0000);
    TextDrawAlignment(inventory_TD[24], 2);
    TextDrawColor(inventory_TD[24], -1);
    TextDrawUseBox(inventory_TD[24], 1);
    TextDrawBoxColor(inventory_TD[24], 0);
    TextDrawBackgroundColor(inventory_TD[24], 255);
    TextDrawFont(inventory_TD[24], 1);
    TextDrawSetProportional(inventory_TD[24], 1);
    TextDrawSetShadow(inventory_TD[24], 0);
    TextDrawSetSelectable(inventory_TD[24], true);

    inventory_TD[25] = TextDrawCreate(184.7998323.9020"FAMILY"); // ?????
    TextDrawLetterSize(inventory_TD[25], 0.48961.8638);
    TextDrawTextSize(inventory_TD[25], 0.000086.0000);
    TextDrawAlignment(inventory_TD[25], 2);
    TextDrawColor(inventory_TD[25], -1);
    TextDrawUseBox(inventory_TD[25], 1);
    TextDrawBoxColor(inventory_TD[25], 0);
    TextDrawBackgroundColor(inventory_TD[25], 255);
    TextDrawFont(inventory_TD[25], 1);
    TextDrawSetProportional(inventory_TD[25], 1);
    TextDrawSetShadow(inventory_TD[25], 0);
    TextDrawSetSelectable(inventory_TD[25], true);

    inventory_TD[26] = TextDrawCreate(276.7994323.9020"DONATE"); // ?????
    TextDrawLetterSize(inventory_TD[26], 0.48961.8638);
    TextDrawTextSize(inventory_TD[26], 0.000086.0000);
    TextDrawAlignment(inventory_TD[26], 2);
    TextDrawColor(inventory_TD[26], -1);
    TextDrawUseBox(inventory_TD[26], 1);
    TextDrawBoxColor(inventory_TD[26], 0);
    TextDrawBackgroundColor(inventory_TD[26], 255);
    TextDrawFont(inventory_TD[26], 1);
    TextDrawSetProportional(inventory_TD[26], 1);
    TextDrawSetShadow(inventory_TD[26], 0);
    TextDrawSetSelectable(inventory_TD[26], true);

    inventory_TD[27] = TextDrawCreate(150.2001345.1510"LD_SPAC:white"); // ?????
    TextDrawTextSize(inventory_TD[27], 69.0000, -1.0000);
    TextDrawAlignment(inventory_TD[27], 1);
    TextDrawColor(inventory_TD[27], 404232447);
    TextDrawBackgroundColor(inventory_TD[27], 255);
    TextDrawFont(inventory_TD[27], 4);
    TextDrawSetProportional(inventory_TD[27], 0);
    TextDrawSetShadow(inventory_TD[27], 0);

    inventory_TD[28] = TextDrawCreate(241.3316345.1509"LD_SPAC:white"); // ?????
    TextDrawTextSize(inventory_TD[28], 69.0000, -1.0000);
    TextDrawAlignment(inventory_TD[28], 1);
    TextDrawColor(inventory_TD[28], 404232447);
    TextDrawBackgroundColor(inventory_TD[28], 255);
    TextDrawFont(inventory_TD[28], 4);
    TextDrawSetProportional(inventory_TD[28], 0);
    TextDrawSetShadow(inventory_TD[28], 0);

    inventory_TD[29] = TextDrawCreate(145.800266.0475"LD_SPAC:white"); // ?????
    TextDrawTextSize(inventory_TD[29], 167.00001.0000);
    TextDrawAlignment(inventory_TD[29], 1);
    TextDrawColor(inventory_TD[29], 1384248575);
    TextDrawBackgroundColor(inventory_TD[29], 255);
    TextDrawFont(inventory_TD[29], 4);
    TextDrawSetProportional(inventory_TD[29], 0);
    TextDrawSetShadow(inventory_TD[29], 0);

    inventory_TD[30] = TextDrawCreate(337.399562.9108"LD_SPAC:white"); // ?????
    TextDrawTextSize(inventory_TD[30], 190.0000316.0000);
    TextDrawAlignment(inventory_TD[30], 1);
    TextDrawColor(inventory_TD[30], 404232447);
    TextDrawBackgroundColor(inventory_TD[30], 255);
    TextDrawFont(inventory_TD[30], 4);
    TextDrawSetProportional(inventory_TD[30], 0);
    TextDrawSetShadow(inventory_TD[30], 0);

    inventory_TD[31] = TextDrawCreate(330.600060.4221"LD_BEAT:chit"); // ?????
    TextDrawTextSize(inventory_TD[31], 14.000016.0000);
    TextDrawAlignment(inventory_TD[31], 1);
    TextDrawColor(inventory_TD[31], 404232447);
    TextDrawBackgroundColor(inventory_TD[31], 255);
    TextDrawFont(inventory_TD[31], 4);
    TextDrawSetProportional(inventory_TD[31], 0);
    TextDrawSetShadow(inventory_TD[31], 0);

    inventory_TD[32] = TextDrawCreate(333.068566.7220"LD_SPAC:white"); // ?????
    TextDrawTextSize(inventory_TD[32], 39.0000304.0000);
    TextDrawAlignment(inventory_TD[32], 1);
    TextDrawColor(inventory_TD[32], 404232447);
    TextDrawBackgroundColor(inventory_TD[32], 255);
    TextDrawFont(inventory_TD[32], 4);
    TextDrawSetProportional(inventory_TD[32], 0);
    TextDrawSetShadow(inventory_TD[32], 0);

    inventory_TD[33] = TextDrawCreate(330.4996365.1600"LD_BEAT:chit"); // ?????
    TextDrawTextSize(inventory_TD[33], 14.000016.0000);
    TextDrawAlignment(inventory_TD[33], 1);
    TextDrawColor(inventory_TD[33], 404232447);
    TextDrawBackgroundColor(inventory_TD[33], 255);
    TextDrawFont(inventory_TD[33], 4);
    TextDrawSetProportional(inventory_TD[33], 0);
    TextDrawSetShadow(inventory_TD[33], 0);

    inventory_TD[34] = TextDrawCreate(519.699760.5199"LD_BEAT:chit"); // ?????
    TextDrawTextSize(inventory_TD[34], 14.000016.0000);
    TextDrawAlignment(inventory_TD[34], 1);
    TextDrawColor(inventory_TD[34], 404232447);
    TextDrawBackgroundColor(inventory_TD[34], 255);
    TextDrawFont(inventory_TD[34], 4);
    TextDrawSetProportional(inventory_TD[34], 0);
    TextDrawSetShadow(inventory_TD[34], 0);

    inventory_TD[35] = TextDrawCreate(492.330968.0007"LD_SPAC:white"); // ?????
    TextDrawTextSize(inventory_TD[35], 39.0000304.0000);
    TextDrawAlignment(inventory_TD[35], 1);
    TextDrawColor(inventory_TD[35], 404232447);
    TextDrawBackgroundColor(inventory_TD[35], 255);
    TextDrawFont(inventory_TD[35], 4);
    TextDrawSetProportional(inventory_TD[35], 0);
    TextDrawSetShadow(inventory_TD[35], 0);

    inventory_TD[36] = TextDrawCreate(520.0999365.6553"LD_BEAT:chit"); // ?????
    TextDrawTextSize(inventory_TD[36], 14.000016.0000);
    TextDrawAlignment(inventory_TD[36], 1);
    TextDrawColor(inventory_TD[36], 404232447);
    TextDrawBackgroundColor(inventory_TD[36], 255);
    TextDrawFont(inventory_TD[36], 4);
    TextDrawSetProportional(inventory_TD[36], 0);
    TextDrawSetShadow(inventory_TD[36], 0);

    inventory_TD[37] = TextDrawCreate(351.136567.2141"LD_SPAC:white"); // ?????
    TextDrawTextSize(inventory_TD[37], 167.00001.0000);
    TextDrawAlignment(inventory_TD[37], 1);
    TextDrawColor(inventory_TD[37], 1384248575);
    TextDrawBackgroundColor(inventory_TD[37], 255);
    TextDrawFont(inventory_TD[37], 4);
    TextDrawSetProportional(inventory_TD[37], 0);
    TextDrawSetShadow(inventory_TD[37], 0);

    inventory_TD[38] = TextDrawCreate(433.199769.0400"INVENTORY"); // ?????
    TextDrawLetterSize(inventory_TD[38], 0.30391.3660);
    TextDrawAlignment(inventory_TD[38], 2);
    TextDrawColor(inventory_TD[38], -1);
    TextDrawBackgroundColor(inventory_TD[38], 255);
    TextDrawFont(inventory_TD[38], 2);
    TextDrawSetProportional(inventory_TD[38], 1);
    TextDrawSetShadow(inventory_TD[38], 0);

    inventory_TD[39] = TextDrawCreate(418.4992322.8486"LD_BEAT:chit"); // ?????
    TextDrawTextSize(inventory_TD[39], 14.000016.0000);
    TextDrawAlignment(inventory_TD[39], 1);
    TextDrawColor(inventory_TD[39], 1384248575);
    TextDrawBackgroundColor(inventory_TD[39], 255);
    TextDrawFont(inventory_TD[39], 4);
    TextDrawSetProportional(inventory_TD[39], 0);
    TextDrawSetShadow(inventory_TD[39], 0);

    inventory_TD[40] = TextDrawCreate(432.4992322.8486"LD_BEAT:chit"); // ?????
    TextDrawTextSize(inventory_TD[40], 14.000016.0000);
    TextDrawAlignment(inventory_TD[40], 1);
    TextDrawColor(inventory_TD[40], -207);
    TextDrawBackgroundColor(inventory_TD[40], 255);
    TextDrawFont(inventory_TD[40], 4);
    TextDrawSetProportional(inventory_TD[40], 0);
    TextDrawSetShadow(inventory_TD[40], 0);

    inventory_TD[41] = TextDrawCreate(463.3998349.0476"LD_SPAC:white"); // ?????
    TextDrawTextSize(inventory_TD[41], 61.000022.0000);
    TextDrawAlignment(inventory_TD[41], 1);
    TextDrawColor(inventory_TD[41], 1384248575);
    TextDrawBackgroundColor(inventory_TD[41], 255);
    TextDrawFont(inventory_TD[41], 4);
    TextDrawSetProportional(inventory_TD[41], 0);
    TextDrawSetShadow(inventory_TD[41], 0);
    TextDrawSetSelectable(inventory_TD[41], true);

    inventory_TD[42] = TextDrawCreate(493.5996352.7731"CLOSE"); // ?????
    TextDrawLetterSize(inventory_TD[42], 0.43381.7144);
    TextDrawTextSize(inventory_TD[42], 0.000058.0000);
    TextDrawAlignment(inventory_TD[42], 2);
    TextDrawColor(inventory_TD[42], -1);
    TextDrawUseBox(inventory_TD[42], 1);
    TextDrawBoxColor(inventory_TD[42], 0);
    TextDrawBackgroundColor(inventory_TD[42], 255);
    TextDrawFont(inventory_TD[42], 1);
    TextDrawSetProportional(inventory_TD[42], 1);
    TextDrawSetShadow(inventory_TD[42], 0);
    TextDrawSetSelectable(inventory_TD[42], true);

    inventory_TD[43] = TextDrawCreate(463.3998354.6087"particle:lamp_shad_64"); // ?????
    TextDrawTextSize(inventory_TD[43], 63.000017.0000);
    TextDrawAlignment(inventory_TD[43], 1);
    TextDrawColor(inventory_TD[43], -175);
    TextDrawBackgroundColor(inventory_TD[43], 255);
    TextDrawFont(inventory_TD[43], 4);
    TextDrawSetProportional(inventory_TD[43], 0);
    TextDrawSetShadow(inventory_TD[43], 0);

    inventory_TD[44] = TextDrawCreate(341.3999334.0975"particle:lamp_shad_64"); // ?????
    TextDrawTextSize(inventory_TD[44], 191.000045.0000);
    TextDrawAlignment(inventory_TD[44], 1);
    TextDrawColor(inventory_TD[44], -243);
    TextDrawBackgroundColor(inventory_TD[44], 255);
    TextDrawFont(inventory_TD[44], 4);
    TextDrawSetProportional(inventory_TD[44], 0);
    TextDrawSetShadow(inventory_TD[44], 0);

    inventory_TD[45] = TextDrawCreate(139.3999334.0975"particle:lamp_shad_64"); // ?????
    TextDrawTextSize(inventory_TD[45], 191.000045.0000);
    TextDrawAlignment(inventory_TD[45], 1);
    TextDrawColor(inventory_TD[45], -243);
    TextDrawBackgroundColor(inventory_TD[45], 255);
    TextDrawFont(inventory_TD[45], 4);
    TextDrawSetProportional(inventory_TD[45], 0);
    TextDrawSetShadow(inventory_TD[45], 0);

    inventory_TD[46] = TextDrawCreate(331.800192.6753"particle:lamp_shad_64"); // ?????
    TextDrawTextSize(inventory_TD[46], 196.0000, -28.0000);
    TextDrawAlignment(inventory_TD[46], 1);
    TextDrawColor(inventory_TD[46], -243);
    TextDrawBackgroundColor(inventory_TD[46], 255);
    TextDrawFont(inventory_TD[46], 4);
    TextDrawSetProportional(inventory_TD[46], 0);
    TextDrawSetShadow(inventory_TD[46], 0);

    inventory_TD[47] = TextDrawCreate(385.6000118.8177"12"); // ?????
    TextDrawLetterSize(inventory_TD[47], 0.13680.7537);
    TextDrawTextSize(inventory_TD[47], 0.000086.0000);
    TextDrawAlignment(inventory_TD[47], 2);
    TextDrawColor(inventory_TD[47], -1);
    TextDrawUseBox(inventory_TD[47], 1);
    TextDrawBoxColor(inventory_TD[47], 0);
    TextDrawBackgroundColor(inventory_TD[47], 255);
    TextDrawFont(inventory_TD[47], 2);
    TextDrawSetProportional(inventory_TD[47], 1);
    TextDrawSetShadow(inventory_TD[47], 0);
    TextDrawSetSelectable(inventory_TD[47], true);

    inventory_TD[48] = TextDrawCreate(425.5997118.8177"1"); // ?????
    TextDrawLetterSize(inventory_TD[48], 0.13680.7537);
    TextDrawTextSize(inventory_TD[48], 0.000086.0000);
    TextDrawAlignment(inventory_TD[48], 2);
    TextDrawColor(inventory_TD[48], -1);
    TextDrawUseBox(inventory_TD[48], 1);
    TextDrawBoxColor(inventory_TD[48], 0);
    TextDrawBackgroundColor(inventory_TD[48], 255);
    TextDrawFont(inventory_TD[48], 2);
    TextDrawSetProportional(inventory_TD[48], 1);
    TextDrawSetShadow(inventory_TD[48], 0);
    TextDrawSetSelectable(inventory_TD[48], true);

 

Спойлер

public OnPlayerConnect


InventOpen[playerid] = 0;
    inventory_PTD[playerid][0] = CreatePlayerTextDraw(playerid, 166.462768.5575""); // ?????
    PlayerTextDrawTextSize(playerid, inventory_PTD[playerid][0], 126.0000136.0000);
    PlayerTextDrawAlignment(playerid, inventory_PTD[playerid][0], 1);
    PlayerTextDrawColor(playerid, inventory_PTD[playerid][0], -1);
    PlayerTextDrawFont(playerid, inventory_PTD[playerid][0], 5);
    PlayerTextDrawSetProportional(playerid, inventory_PTD[playerid][0], 0);
    PlayerTextDrawSetShadow(playerid, inventory_PTD[playerid][0], 0);
    PlayerTextDrawSetPreviewModel(playerid, inventory_PTD[playerid][0], 32);
    PlayerTextDrawSetPreviewRot(playerid, inventory_PTD[playerid][0], 0.00000.000015.00001.0000);

    inventory_PTD[playerid][1] = CreatePlayerTextDraw(playerid, 284.599377.8442""); // ?????
    PlayerTextDrawTextSize(playerid, inventory_PTD[playerid][1], 35.000042.0000);
    PlayerTextDrawAlignment(playerid, inventory_PTD[playerid][1], 1);
    PlayerTextDrawColor(playerid, inventory_PTD[playerid][1], -1);
    PlayerTextDrawBackgroundColor(playerid, inventory_PTD[playerid][1], 1633771877);
    PlayerTextDrawFont(playerid, inventory_PTD[playerid][1], 5);
    PlayerTextDrawSetProportional(playerid, inventory_PTD[playerid][1], 0);
    PlayerTextDrawSetShadow(playerid, inventory_PTD[playerid][1], 0);
    PlayerTextDrawSetSelectable(playerid, inventory_PTD[playerid][1], true);
    PlayerTextDrawSetPreviewModel(playerid, inventory_PTD[playerid][1], 0);
    PlayerTextDrawSetPreviewRot(playerid, inventory_PTD[playerid][1], 0.00000.00000.00001.0000);

    inventory_PTD[playerid][2] = CreatePlayerTextDraw(playerid, 284.5996121.5378""); // ?????
    PlayerTextDrawTextSize(playerid, inventory_PTD[playerid][2], 35.000042.0000);
    PlayerTextDrawAlignment(playerid, inventory_PTD[playerid][2], 1);
    PlayerTextDrawColor(playerid, inventory_PTD[playerid][2], -1);
    PlayerTextDrawBackgroundColor(playerid, inventory_PTD[playerid][2], 1633771877);
    PlayerTextDrawFont(playerid, inventory_PTD[playerid][2], 5);
    PlayerTextDrawSetProportional(playerid, inventory_PTD[playerid][2], 0);
    PlayerTextDrawSetShadow(playerid, inventory_PTD[playerid][2], 0);
    PlayerTextDrawSetSelectable(playerid, inventory_PTD[playerid][2], true);
    PlayerTextDrawSetPreviewModel(playerid, inventory_PTD[playerid][2], 0);
    PlayerTextDrawSetPreviewRot(playerid, inventory_PTD[playerid][2], 0.00000.00000.00001.0000);

    inventory_PTD[playerid][3] = CreatePlayerTextDraw(playerid, 284.4996165.6331""); // ?????
    PlayerTextDrawTextSize(playerid, inventory_PTD[playerid][3], 35.000042.0000);
    PlayerTextDrawAlignment(playerid, inventory_PTD[playerid][3], 1);
    PlayerTextDrawColor(playerid, inventory_PTD[playerid][3], -1);
    PlayerTextDrawBackgroundColor(playerid, inventory_PTD[playerid][3], 1633771877);
    PlayerTextDrawFont(playerid, inventory_PTD[playerid][3], 5);
    PlayerTextDrawSetProportional(playerid, inventory_PTD[playerid][3], 0);
    PlayerTextDrawSetShadow(playerid, inventory_PTD[playerid][3], 0);
    PlayerTextDrawSetSelectable(playerid, inventory_PTD[playerid][3], true);
    PlayerTextDrawSetPreviewModel(playerid, inventory_PTD[playerid][3], 0);
    PlayerTextDrawSetPreviewRot(playerid, inventory_PTD[playerid][3], 0.00000.00000.00001.0000);

    inventory_PTD[playerid][4] = CreatePlayerTextDraw(playerid, 142.999875.8533""); // ?????
    PlayerTextDrawTextSize(playerid, inventory_PTD[playerid][4], 35.000042.0000);
    PlayerTextDrawAlignment(playerid, inventory_PTD[playerid][4], 1);
    PlayerTextDrawColor(playerid, inventory_PTD[playerid][4], -1);
    PlayerTextDrawBackgroundColor(playerid, inventory_PTD[playerid][4], 1633771877);
    PlayerTextDrawFont(playerid, inventory_PTD[playerid][4], 5);
    PlayerTextDrawSetProportional(playerid, inventory_PTD[playerid][4], 0);
    PlayerTextDrawSetShadow(playerid, inventory_PTD[playerid][4], 0);
    PlayerTextDrawSetSelectable(playerid, inventory_PTD[playerid][4], true);
    PlayerTextDrawSetPreviewModel(playerid, inventory_PTD[playerid][4], 0);
    PlayerTextDrawSetPreviewRot(playerid, inventory_PTD[playerid][4], 0.00000.00000.00001.0000);

    inventory_PTD[playerid][5] = CreatePlayerTextDraw(playerid, 143.0000119.5466""); // ?????
    PlayerTextDrawTextSize(playerid, inventory_PTD[playerid][5], 35.000042.0000);
    PlayerTextDrawAlignment(playerid, inventory_PTD[playerid][5], 1);
    PlayerTextDrawColor(playerid, inventory_PTD[playerid][5], -1);
    PlayerTextDrawBackgroundColor(playerid, inventory_PTD[playerid][5], 1633771877);
    PlayerTextDrawFont(playerid, inventory_PTD[playerid][5], 5);
    PlayerTextDrawSetProportional(playerid, inventory_PTD[playerid][5], 0);
    PlayerTextDrawSetShadow(playerid, inventory_PTD[playerid][5], 0);
    PlayerTextDrawSetSelectable(playerid, inventory_PTD[playerid][5], true);
    PlayerTextDrawSetPreviewModel(playerid, inventory_PTD[playerid][5], 0);
    PlayerTextDrawSetPreviewRot(playerid, inventory_PTD[playerid][5], 0.00000.00000.00001.0000);

    inventory_PTD[playerid][6] = CreatePlayerTextDraw(playerid, 142.8999163.6419""); // ?????
    PlayerTextDrawTextSize(playerid, inventory_PTD[playerid][6], 35.000042.0000);
    PlayerTextDrawAlignment(playerid, inventory_PTD[playerid][6], 1);
    PlayerTextDrawColor(playerid, inventory_PTD[playerid][6], -1);
    PlayerTextDrawBackgroundColor(playerid, inventory_PTD[playerid][6], 1633771877);
    PlayerTextDrawFont(playerid, inventory_PTD[playerid][6], 5);
    PlayerTextDrawSetProportional(playerid, inventory_PTD[playerid][6], 0);
    PlayerTextDrawSetShadow(playerid, inventory_PTD[playerid][6], 0);
    PlayerTextDrawSetSelectable(playerid, inventory_PTD[playerid][6], true);
    PlayerTextDrawSetPreviewModel(playerid, inventory_PTD[playerid][6], 0);
    PlayerTextDrawSetPreviewRot(playerid, inventory_PTD[playerid][6], 0.00000.00000.00001.0000);

    inventory_PTD[playerid][7] = CreatePlayerTextDraw(playerid, 217.3000195.4998""); // ?????
    PlayerTextDrawTextSize(playerid, inventory_PTD[playerid][7], 29.000031.0000);
    PlayerTextDrawAlignment(playerid, inventory_PTD[playerid][7], 1);
    PlayerTextDrawColor(playerid, inventory_PTD[playerid][7], -1);
    PlayerTextDrawBackgroundColor(playerid, inventory_PTD[playerid][7], 1633771877);
    PlayerTextDrawFont(playerid, inventory_PTD[playerid][7], 5);
    PlayerTextDrawSetProportional(playerid, inventory_PTD[playerid][7], 0);
    PlayerTextDrawSetShadow(playerid, inventory_PTD[playerid][7], 0);
    PlayerTextDrawSetSelectable(playerid, inventory_PTD[playerid][7], true);
    PlayerTextDrawSetPreviewModel(playerid, inventory_PTD[playerid][7], 0);
    PlayerTextDrawSetPreviewRot(playerid, inventory_PTD[playerid][7], 0.00000.00000.00001.0000);

    inventory_PTD[playerid][8] = CreatePlayerTextDraw(playerid, 355.399585.2001""); // ?????
    PlayerTextDrawTextSize(playerid, inventory_PTD[playerid][8], 35.000042.0000);
    PlayerTextDrawAlignment(playerid, inventory_PTD[playerid][8], 1);
    PlayerTextDrawColor(playerid, inventory_PTD[playerid][8], -1);
    PlayerTextDrawBackgroundColor(playerid, inventory_PTD[playerid][8], 1633771877);
    PlayerTextDrawFont(playerid, inventory_PTD[playerid][8], 5);
    PlayerTextDrawSetProportional(playerid, inventory_PTD[playerid][8], 0);
    PlayerTextDrawSetShadow(playerid, inventory_PTD[playerid][8], 0);
    PlayerTextDrawSetSelectable(playerid, inventory_PTD[playerid][8], true);
    PlayerTextDrawSetPreviewModel(playerid, inventory_PTD[playerid][8], 0);
    PlayerTextDrawSetPreviewRot(playerid, inventory_PTD[playerid][8], 0.00000.00000.00001.0000);

    inventory_PTD[playerid][9] = CreatePlayerTextDraw(playerid, 394.599685.2001""); // ?????
    PlayerTextDrawTextSize(playerid, inventory_PTD[playerid][9], 35.000042.0000);
    PlayerTextDrawAlignment(playerid, inventory_PTD[playerid][9], 1);
    PlayerTextDrawColor(playerid, inventory_PTD[playerid][9], -1);
    PlayerTextDrawBackgroundColor(playerid, inventory_PTD[playerid][9], 1633771877);
    PlayerTextDrawFont(playerid, inventory_PTD[playerid][9], 5);
    PlayerTextDrawSetProportional(playerid, inventory_PTD[playerid][9], 0);
    PlayerTextDrawSetShadow(playerid, inventory_PTD[playerid][9], 0);
    PlayerTextDrawSetSelectable(playerid, inventory_PTD[playerid][9], true);
    PlayerTextDrawSetPreviewModel(playerid, inventory_PTD[playerid][9], 0);
    PlayerTextDrawSetPreviewRot(playerid, inventory_PTD[playerid][9], 0.00000.00000.00001.0000);

    inventory_PTD[playerid][10] = CreatePlayerTextDraw(playerid, 433.999285.2001""); // ?????
    PlayerTextDrawTextSize(playerid, inventory_PTD[playerid][10], 35.000042.0000);
    PlayerTextDrawAlignment(playerid, inventory_PTD[playerid][10], 1);
    PlayerTextDrawColor(playerid, inventory_PTD[playerid][10], -1);
    PlayerTextDrawBackgroundColor(playerid, inventory_PTD[playerid][10], 1633771877);
    PlayerTextDrawFont(playerid, inventory_PTD[playerid][10], 5);
    PlayerTextDrawSetProportional(playerid, inventory_PTD[playerid][10], 0);
    PlayerTextDrawSetShadow(playerid, inventory_PTD[playerid][10], 0);
    PlayerTextDrawSetSelectable(playerid, inventory_PTD[playerid][10], true);
    PlayerTextDrawSetPreviewModel(playerid, inventory_PTD[playerid][10], 0);
    PlayerTextDrawSetPreviewRot(playerid, inventory_PTD[playerid][10], 0.00000.00000.00001.0000);

    inventory_PTD[playerid][11] = CreatePlayerTextDraw(playerid, 473.599385.2001""); // ?????
    PlayerTextDrawTextSize(playerid, inventory_PTD[playerid][11], 35.000042.0000);
    PlayerTextDrawAlignment(playerid, inventory_PTD[playerid][11], 1);
    PlayerTextDrawColor(playerid, inventory_PTD[playerid][11], -1);
    PlayerTextDrawBackgroundColor(playerid, inventory_PTD[playerid][11], 1633771877);
    PlayerTextDrawFont(playerid, inventory_PTD[playerid][11], 5);
    PlayerTextDrawSetProportional(playerid, inventory_PTD[playerid][11], 0);
    PlayerTextDrawSetShadow(playerid, inventory_PTD[playerid][11], 0);
    PlayerTextDrawSetSelectable(playerid, inventory_PTD[playerid][11], true);
    PlayerTextDrawSetPreviewModel(playerid, inventory_PTD[playerid][11], 0);
    PlayerTextDrawSetPreviewRot(playerid, inventory_PTD[playerid][11], 0.00000.00000.00001.0000);

    inventory_PTD[playerid][12] = CreatePlayerTextDraw(playerid, 355.7994131.9911""); // ?????
    PlayerTextDrawTextSize(playerid, inventory_PTD[playerid][12], 35.000042.0000);
    PlayerTextDrawAlignment(playerid, inventory_PTD[playerid][12], 1);
    PlayerTextDrawColor(playerid, inventory_PTD[playerid][12], -1);
    PlayerTextDrawBackgroundColor(playerid, inventory_PTD[playerid][12], 1633771877);
    PlayerTextDrawFont(playerid, inventory_PTD[playerid][12], 5);
    PlayerTextDrawSetProportional(playerid, inventory_PTD[playerid][12], 0);
    PlayerTextDrawSetShadow(playerid, inventory_PTD[playerid][12], 0);
    PlayerTextDrawSetSelectable(playerid, inventory_PTD[playerid][12], true);
    PlayerTextDrawSetPreviewModel(playerid, inventory_PTD[playerid][12], 0);
    PlayerTextDrawSetPreviewRot(playerid, inventory_PTD[playerid][12], 0.00000.00000.00001.0000);

    inventory_PTD[playerid][13] = CreatePlayerTextDraw(playerid, 394.9996131.9911""); // ?????
    PlayerTextDrawTextSize(playerid, inventory_PTD[playerid][13], 35.000042.0000);
    PlayerTextDrawAlignment(playerid, inventory_PTD[playerid][13], 1);
    PlayerTextDrawColor(playerid, inventory_PTD[playerid][13], -1);
    PlayerTextDrawBackgroundColor(playerid, inventory_PTD[playerid][13], 1633771877);
    PlayerTextDrawFont(playerid, inventory_PTD[playerid][13], 5);
    PlayerTextDrawSetProportional(playerid, inventory_PTD[playerid][13], 0);
    PlayerTextDrawSetShadow(playerid, inventory_PTD[playerid][13], 0);
    PlayerTextDrawSetSelectable(playerid, inventory_PTD[playerid][13], true);
    PlayerTextDrawSetPreviewModel(playerid, inventory_PTD[playerid][13], 0);
    PlayerTextDrawSetPreviewRot(playerid, inventory_PTD[playerid][13], 0.00000.00000.00001.0000);

    inventory_PTD[playerid][14] = CreatePlayerTextDraw(playerid, 434.3994131.9911""); // ?????
    PlayerTextDrawTextSize(playerid, inventory_PTD[playerid][14], 35.000042.0000);
    PlayerTextDrawAlignment(playerid, inventory_PTD[playerid][14], 1);
    PlayerTextDrawColor(playerid, inventory_PTD[playerid][14], -1);
    PlayerTextDrawBackgroundColor(playerid, inventory_PTD[playerid][14], 1633771877);
    PlayerTextDrawFont(playerid, inventory_PTD[playerid][14], 5);
    PlayerTextDrawSetProportional(playerid, inventory_PTD[playerid][14], 0);
    PlayerTextDrawSetShadow(playerid, inventory_PTD[playerid][14], 0);
    PlayerTextDrawSetSelectable(playerid, inventory_PTD[playerid][14], true);
    PlayerTextDrawSetPreviewModel(playerid, inventory_PTD[playerid][14], 0);
    PlayerTextDrawSetPreviewRot(playerid, inventory_PTD[playerid][14], 0.00000.00000.00001.0000);

    inventory_PTD[playerid][15] = CreatePlayerTextDraw(playerid, 473.9995131.9911""); // ?????
    PlayerTextDrawTextSize(playerid, inventory_PTD[playerid][15], 35.000042.0000);
    PlayerTextDrawAlignment(playerid, inventory_PTD[playerid][15], 1);
    PlayerTextDrawColor(playerid, inventory_PTD[playerid][15], -1);
    PlayerTextDrawBackgroundColor(playerid, inventory_PTD[playerid][15], 1633771877);
    PlayerTextDrawFont(playerid, inventory_PTD[playerid][15], 5);
    PlayerTextDrawSetProportional(playerid, inventory_PTD[playerid][15], 0);
    PlayerTextDrawSetShadow(playerid, inventory_PTD[playerid][15], 0);
    PlayerTextDrawSetSelectable(playerid, inventory_PTD[playerid][15], true);
    PlayerTextDrawSetPreviewModel(playerid, inventory_PTD[playerid][15], 0);
    PlayerTextDrawSetPreviewRot(playerid, inventory_PTD[playerid][15], 0.00000.00000.00001.0000);

    inventory_PTD[playerid][16] = CreatePlayerTextDraw(playerid, 355.7994179.4777""); // ?????
    PlayerTextDrawTextSize(playerid, inventory_PTD[playerid][16], 35.000042.0000);
    PlayerTextDrawAlignment(playerid, inventory_PTD[playerid][16], 1);
    PlayerTextDrawColor(playerid, inventory_PTD[playerid][16], -1);
    PlayerTextDrawBackgroundColor(playerid, inventory_PTD[playerid][16], 1633771877);
    PlayerTextDrawFont(playerid, inventory_PTD[playerid][16], 5);
    PlayerTextDrawSetProportional(playerid, inventory_PTD[playerid][16], 0);
    PlayerTextDrawSetShadow(playerid, inventory_PTD[playerid][16], 0);
    PlayerTextDrawSetSelectable(playerid, inventory_PTD[playerid][16], true);
    PlayerTextDrawSetPreviewModel(playerid, inventory_PTD[playerid][16], 0);
    PlayerTextDrawSetPreviewRot(playerid, inventory_PTD[playerid][16], 0.00000.00000.00001.0000);

    inventory_PTD[playerid][17] = CreatePlayerTextDraw(playerid, 394.9996179.4777""); // ?????
    PlayerTextDrawTextSize(playerid, inventory_PTD[playerid][17], 35.000042.0000);
    PlayerTextDrawAlignment(playerid, inventory_PTD[playerid][17], 1);
    PlayerTextDrawColor(playerid, inventory_PTD[playerid][17], -1);
    PlayerTextDrawBackgroundColor(playerid, inventory_PTD[playerid][17], 1633771877);
    PlayerTextDrawFont(playerid, inventory_PTD[playerid][17], 5);
    PlayerTextDrawSetProportional(playerid, inventory_PTD[playerid][17], 0);
    PlayerTextDrawSetShadow(playerid, inventory_PTD[playerid][17], 0);
    PlayerTextDrawSetSelectable(playerid, inventory_PTD[playerid][17], true);
    PlayerTextDrawSetPreviewModel(playerid, inventory_PTD[playerid][17], 0);
    PlayerTextDrawSetPreviewRot(playerid, inventory_PTD[playerid][17], 0.00000.00000.00001.0000);

    inventory_PTD[playerid][18] = CreatePlayerTextDraw(playerid, 434.3994179.4777""); // ?????
    PlayerTextDrawTextSize(playerid, inventory_PTD[playerid][18], 35.000042.0000);
    PlayerTextDrawAlignment(playerid, inventory_PTD[playerid][18], 1);
    PlayerTextDrawColor(playerid, inventory_PTD[playerid][18], -1);
    PlayerTextDrawBackgroundColor(playerid, inventory_PTD[playerid][18], 1633771877);
    PlayerTextDrawFont(playerid, inventory_PTD[playerid][18], 5);
    PlayerTextDrawSetProportional(playerid, inventory_PTD[playerid][18], 0);
    PlayerTextDrawSetShadow(playerid, inventory_PTD[playerid][18], 0);
    PlayerTextDrawSetSelectable(playerid, inventory_PTD[playerid][18], true);
    PlayerTextDrawSetPreviewModel(playerid, inventory_PTD[playerid][18], 0);
    PlayerTextDrawSetPreviewRot(playerid, inventory_PTD[playerid][18], 0.00000.00000.00001.0000);

    inventory_PTD[playerid][19] = CreatePlayerTextDraw(playerid, 473.9995179.4777""); // ?????
    PlayerTextDrawTextSize(playerid, inventory_PTD[playerid][19], 35.000042.0000);
    PlayerTextDrawAlignment(playerid, inventory_PTD[playerid][19], 1);
    PlayerTextDrawColor(playerid, inventory_PTD[playerid][19], -1);
    PlayerTextDrawBackgroundColor(playerid, inventory_PTD[playerid][19], 1633771877);
    PlayerTextDrawFont(playerid, inventory_PTD[playerid][19], 5);
    PlayerTextDrawSetProportional(playerid, inventory_PTD[playerid][19], 0);
    PlayerTextDrawSetShadow(playerid, inventory_PTD[playerid][19], 0);
    PlayerTextDrawSetSelectable(playerid, inventory_PTD[playerid][19], true);
    PlayerTextDrawSetPreviewModel(playerid, inventory_PTD[playerid][19], 0);
    PlayerTextDrawSetPreviewRot(playerid, inventory_PTD[playerid][19], 0.00000.00000.00001.0000);

    inventory_PTD[playerid][20] = CreatePlayerTextDraw(playerid, 355.7994227.1643""); // ?????
    PlayerTextDrawTextSize(playerid, inventory_PTD[playerid][20], 35.000042.0000);
    PlayerTextDrawAlignment(playerid, inventory_PTD[playerid][20], 1);
    PlayerTextDrawColor(playerid, inventory_PTD[playerid][20], -1);
    PlayerTextDrawBackgroundColor(playerid, inventory_PTD[playerid][20], 1633771877);
    PlayerTextDrawFont(playerid, inventory_PTD[playerid][20], 5);
    PlayerTextDrawSetProportional(playerid, inventory_PTD[playerid][20], 0);
    PlayerTextDrawSetShadow(playerid, inventory_PTD[playerid][20], 0);
    PlayerTextDrawSetSelectable(playerid, inventory_PTD[playerid][20], true);
    PlayerTextDrawSetPreviewModel(playerid, inventory_PTD[playerid][20], 0);
    PlayerTextDrawSetPreviewRot(playerid, inventory_PTD[playerid][20], 0.00000.00000.00001.0000);

    inventory_PTD[playerid][21] = CreatePlayerTextDraw(playerid, 394.9996227.1643""); // ?????
    PlayerTextDrawTextSize(playerid, inventory_PTD[playerid][21], 35.000042.0000);
    PlayerTextDrawAlignment(playerid, inventory_PTD[playerid][21], 1);
    PlayerTextDrawColor(playerid, inventory_PTD[playerid][21], -1);
    PlayerTextDrawBackgroundColor(playerid, inventory_PTD[playerid][21], 1633771877);
    PlayerTextDrawFont(playerid, inventory_PTD[playerid][21], 5);
    PlayerTextDrawSetProportional(playerid, inventory_PTD[playerid][21], 0);
    PlayerTextDrawSetShadow(playerid, inventory_PTD[playerid][21], 0);
    PlayerTextDrawSetSelectable(playerid, inventory_PTD[playerid][21], true);
    PlayerTextDrawSetPreviewModel(playerid, inventory_PTD[playerid][21], 0);
    PlayerTextDrawSetPreviewRot(playerid, inventory_PTD[playerid][21], 0.00000.00000.00001.0000);

    inventory_PTD[playerid][22] = CreatePlayerTextDraw(playerid, 434.3995227.1643""); // ?????
    PlayerTextDrawTextSize(playerid, inventory_PTD[playerid][22], 35.000042.0000);
    PlayerTextDrawAlignment(playerid, inventory_PTD[playerid][22], 1);
    PlayerTextDrawColor(playerid, inventory_PTD[playerid][22], -1);
    PlayerTextDrawBackgroundColor(playerid, inventory_PTD[playerid][22], 1633771877);
    PlayerTextDrawFont(playerid, inventory_PTD[playerid][22], 5);
    PlayerTextDrawSetProportional(playerid, inventory_PTD[playerid][22], 0);
    PlayerTextDrawSetShadow(playerid, inventory_PTD[playerid][22], 0);
    PlayerTextDrawSetSelectable(playerid, inventory_PTD[playerid][22], true);
    PlayerTextDrawSetPreviewModel(playerid, inventory_PTD[playerid][22], 0);
    PlayerTextDrawSetPreviewRot(playerid, inventory_PTD[playerid][22], 0.00000.00000.00001.0000);

    inventory_PTD[playerid][23] = CreatePlayerTextDraw(playerid, 473.9996227.1643""); // ?????
    PlayerTextDrawTextSize(playerid, inventory_PTD[playerid][23], 35.000042.0000);
    PlayerTextDrawAlignment(playerid, inventory_PTD[playerid][23], 1);
    PlayerTextDrawColor(playerid, inventory_PTD[playerid][23], -1);
    PlayerTextDrawBackgroundColor(playerid, inventory_PTD[playerid][23], 1633771877);
    PlayerTextDrawFont(playerid, inventory_PTD[playerid][23], 5);
    PlayerTextDrawSetProportional(playerid, inventory_PTD[playerid][23], 0);
    PlayerTextDrawSetShadow(playerid, inventory_PTD[playerid][23], 0);
    PlayerTextDrawSetSelectable(playerid, inventory_PTD[playerid][23], true);
    PlayerTextDrawSetPreviewModel(playerid, inventory_PTD[playerid][23], 0);
    PlayerTextDrawSetPreviewRot(playerid, inventory_PTD[playerid][23], 0.00000.00000.00001.0000);

    inventory_PTD[playerid][24] = CreatePlayerTextDraw(playerid, 355.7994275.2485""); // ?????
    PlayerTextDrawTextSize(playerid, inventory_PTD[playerid][24], 35.000042.0000);
    PlayerTextDrawAlignment(playerid, inventory_PTD[playerid][24], 1);
    PlayerTextDrawColor(playerid, inventory_PTD[playerid][24], -1);
    PlayerTextDrawBackgroundColor(playerid, inventory_PTD[playerid][24], 1633771877);
    PlayerTextDrawFont(playerid, inventory_PTD[playerid][24], 5);
    PlayerTextDrawSetProportional(playerid, inventory_PTD[playerid][24], 0);
    PlayerTextDrawSetShadow(playerid, inventory_PTD[playerid][24], 0);
    PlayerTextDrawSetSelectable(playerid, inventory_PTD[playerid][24], true);
    PlayerTextDrawSetPreviewModel(playerid, inventory_PTD[playerid][24], 0);
    PlayerTextDrawSetPreviewRot(playerid, inventory_PTD[playerid][24], 0.00000.00000.00001.0000);

    inventory_PTD[playerid][25] = CreatePlayerTextDraw(playerid, 394.9996275.2485""); // ?????
    PlayerTextDrawTextSize(playerid, inventory_PTD[playerid][25], 35.000042.0000);
    PlayerTextDrawAlignment(playerid, inventory_PTD[playerid][25], 1);
    PlayerTextDrawColor(playerid, inventory_PTD[playerid][25], -1);
    PlayerTextDrawBackgroundColor(playerid, inventory_PTD[playerid][25], 1633771877);
    PlayerTextDrawFont(playerid, inventory_PTD[playerid][25], 5);
    PlayerTextDrawSetProportional(playerid, inventory_PTD[playerid][25], 0);
    PlayerTextDrawSetShadow(playerid, inventory_PTD[playerid][25], 0);
    PlayerTextDrawSetSelectable(playerid, inventory_PTD[playerid][25], true);
    PlayerTextDrawSetPreviewModel(playerid, inventory_PTD[playerid][25], 0);
    PlayerTextDrawSetPreviewRot(playerid, inventory_PTD[playerid][25], 0.00000.00000.00001.0000);

    inventory_PTD[playerid][26] = CreatePlayerTextDraw(playerid, 434.3995275.2485""); // ?????
    PlayerTextDrawTextSize(playerid, inventory_PTD[playerid][26], 35.000042.0000);
    PlayerTextDrawAlignment(playerid, inventory_PTD[playerid][26], 1);
    PlayerTextDrawColor(playerid, inventory_PTD[playerid][26], -1);
    PlayerTextDrawBackgroundColor(playerid, inventory_PTD[playerid][26], 1633771877);
    PlayerTextDrawFont(playerid, inventory_PTD[playerid][26], 5);
    PlayerTextDrawSetProportional(playerid, inventory_PTD[playerid][26], 0);
    PlayerTextDrawSetShadow(playerid, inventory_PTD[playerid][26], 0);
    PlayerTextDrawSetSelectable(playerid, inventory_PTD[playerid][26], true);
    PlayerTextDrawSetPreviewModel(playerid, inventory_PTD[playerid][26], 0);
    PlayerTextDrawSetPreviewRot(playerid, inventory_PTD[playerid][26], 0.00000.00000.00001.0000);

    inventory_PTD[playerid][27] = CreatePlayerTextDraw(playerid, 473.9996275.2485""); // ?????
    PlayerTextDrawTextSize(playerid, inventory_PTD[playerid][27], 35.000042.0000);
    PlayerTextDrawAlignment(playerid, inventory_PTD[playerid][27], 1);
    PlayerTextDrawColor(playerid, inventory_PTD[playerid][27], -1);
    PlayerTextDrawBackgroundColor(playerid, inventory_PTD[playerid][27], 1633771877);
    PlayerTextDrawFont(playerid, inventory_PTD[playerid][27], 5);
    PlayerTextDrawSetProportional(playerid, inventory_PTD[playerid][27], 0);
    PlayerTextDrawSetShadow(playerid, inventory_PTD[playerid][27], 0);
    PlayerTextDrawSetSelectable(playerid, inventory_PTD[playerid][27], true);
    PlayerTextDrawSetPreviewModel(playerid, inventory_PTD[playerid][27], 0);
    PlayerTextDrawSetPreviewRot(playerid, inventory_PTD[playerid][27], 0.00000.00000.00001.0000);

    inventory_PTD[playerid][28] = CreatePlayerTextDraw(playerid, 238.7998219.3688"ID:32"); // ?????
    PlayerTextDrawLetterSize(playerid, inventory_PTD[playerid][28], 0.13680.7537);
    PlayerTextDrawTextSize(playerid, inventory_PTD[playerid][28], 0.000086.0000);
    PlayerTextDrawAlignment(playerid, inventory_PTD[playerid][28], 2);
    PlayerTextDrawColor(playerid, inventory_PTD[playerid][28], -1);
    PlayerTextDrawUseBox(playerid, inventory_PTD[playerid][28], 1);
    PlayerTextDrawBoxColor(playerid, inventory_PTD[playerid][28], 0);
    PlayerTextDrawBackgroundColor(playerid, inventory_PTD[playerid][28], 255);
    PlayerTextDrawFont(playerid, inventory_PTD[playerid][28], 2);
    PlayerTextDrawSetProportional(playerid, inventory_PTD[playerid][28], 1);
    PlayerTextDrawSetShadow(playerid, inventory_PTD[playerid][28], 0);
    PlayerTextDrawSetSelectable(playerid, inventory_PTD[playerid][28], true);

 

Спойлер

public OnPlayerClickTextDraw


if(_:clickedid == INVALID_TEXT_DRAW)
    {
        if(InventOpen[playerid] == 0return 1;
        for(new i = 0; i<49; i++) TextDrawHideForPlayer(playerid, inventory_TD[i]);
        for(new i = 0; i < 29; i++) PlayerTextDrawHide(playerid, inventory_PTD[playerid][i]);
        CancelSelectTextDraw(playerid);
        InventOpen[playerid] = 0;
    }
    if(clickedid == inventory_TD[41])
    {
        if(InventOpen[playerid] == 0return 1;
        for(new i = 0; i<49; i++) TextDrawHideForPlayer(playerid, inventory_TD[i]);
        for(new i = 0; i < 29; i++) PlayerTextDrawHide(playerid, inventory_PTD[playerid][i]);
        CancelSelectTextDraw(playerid);
        InventOpen[playerid] = 0;
    }
    if(clickedid == inventory_TD[9])
    {
        SendClientMessage(playerid,0xFF7F50AA"Кнопка MENU будет добавлена в следующем обновлении!");
        return 1;
    }
    if(clickedid == inventory_TD[10])
    {
        SendClientMessage(playerid,0xFF7F50AA"Кнопка CARS будет добавлена в следующем обновлении!");
        return 1;
    }
    if(clickedid == inventory_TD[11])
    {
        SendClientMessage(playerid,0xFF7F50AA"Кнопка BUSINESS будет добавлена в следующем обновлении!");
        return 1;
    }
    if(clickedid == inventory_TD[12])
    {
        SendClientMessage(playerid,0xFF7F50AA"Кнопка HOUSE будет добавлена в следующем обновлении!");
        return 1;
    }
    if(clickedid == inventory_TD[13])
    {
        SendClientMessage(playerid,0xFF7F50AA"Кнопка FAMILY будет добавлена в следующем обновлении!");
        return 1;
    }
    if(clickedid == inventory_TD[14])
    {
        SendClientMessage(playerid,0xFF7F50AA"Кнопка DONATE будет добавлена в следующем обновлении!");
        return 1;

 

Спойлер

к всем командам 


}
CMD:inv(playerid, params[])
{
    if(InventOpen[playerid] == 1return 1;
    //открываем
    for(new i = 0; i<49; i++) TextDrawShowForPlayer(playerid, inventory_TD[i]);
    //редактируем тексты
    //PlayerTextDrawSetString(playerid, inventory_PTD[playerid][2], pInfo[playerid][pName]);// ник
    PlayerTextDrawSetPreviewModel(playerid, inventory_PTD[playerid][0], pInfo[playerid][pSkin]);//скин
    //PlayerTextDrawSetPreviewModel(playerid, inventory_PTD[playerid][3], pInfo[playerid][pSkin]);//скин
    for(new i = 0; i < 29; i++) PlayerTextDrawShow(playerid, inventory_PTD[playerid][i]);
    SelectTextDraw(playerid, 0x104be000);
    InventOpen[playerid] = 1;
    return true;

 

 

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

@Drummer1993 Продолжение есть/будет?

 

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

Для публикации сообщений создайте учётную запись или авторизуйтесь

Вы должны быть пользователем, чтобы оставить комментарий

Создать учетную запись

Зарегистрируйте новую учётную запись в нашем сообществе. Это очень просто!


Регистрация нового пользователя

Войти

Уже есть аккаунт? Войти в систему.


Войти

  • Последние посетители   0 пользователей онлайн

    Ни одного зарегистрированного пользователя не просматривает данную страницу

  • Похожий контент

    • Chopick
      От Chopick
      Всем здравствуйте! Делаю систему домов/бизнесов по туториалу knox know с плагином GoodArea. Есть проблема, если заходишь в интерьер бизнеса, то когда выходишь спавнит почему-то на пикап дома.

      Вот енумы:
       
      #define MAX_HOUSES 1000 #define MAX_BIZS 1000 enum house {         hID,         STREAMER_TAG_PICKUP:hPICKUP,         STREAMER_TAG_AREA:hAREA,         hOWNER[MAX_PLAYER_NAME],         STREAMER_TAG_3D_TEXT_LABEL:hTEXT[256],         STREAMER_TAG_MAP_ICON:hICON,         hPRICE,         hCLASS,         hINTERIOR,         Float:hX,         Float:hY,         Float:hZ,         Float:hA,         hCONDITION // Закрыт/Открыт } new House[MAX_HOUSES][house]; new Houses; new HouseGroup; enum biz {         bID,         STREAMER_TAG_PICKUP:bPICKUP,         STREAMER_TAG_AREA:bAREA,         bOWNER[MAX_PLAYER_NAME],         STREAMER_TAG_3D_TEXT_LABEL:bTEXT[256],         STREAMER_TAG_MAP_ICON:bICON,         bNAME[25],         bPRICE,         bTYPE,         bINTERIOR,         Float:bX,         Float:bY,         Float:bZ,         Float:bA } new Biz[MAX_BIZS][biz]; new Bizs; new BizGroup; enum interior_info {         intID,         intNAME[41],         intINTERIOR,         Float:intX,         Float:intY,         Float:intZ,         Float:intA,         STREAMER_TAG_AREA:intAREA } new Interior[MAX_INTERIORS][interior_info]; new Interiors; new InteriorGroup; Вот что у меня в OnGameModeInit:
      HouseGroup = CreateGroupGoodAreas(GoodArea:HouseEnter); InteriorGroup = CreateGroupGoodAreas(GoodArea:InteriorExit); BizGroup = CreateGroupGoodAreas(GoodArea:BizArea);  
      Вот стоки:
      GAResponse:HouseEnter(playerid, response, key, index) {         switch(response)         {             case GA_RESPONSE_PRESS_KEY:             {                 if(key & KEY_WALK)                 {                 if(House[index][hCONDITION] > 0 && House[index][hOWNER] == player_info[playerid][NAME] || House[index][hCONDITION] == 0)                 {                                         GoToInterior(playerid, House[index][hINTERIOR]);                                         SetPlayerVirtualWorld(playerid, index);                                 }                                 else if(House[index][hCONDITION] > 0 && House[index][hOWNER] != player_info[playerid][NAME]) return SCM(playerid, COLOR_RED, "[Ошибка]{ffffff}Этот дом закрыт на ключ!");                         }                 }                 case GA_RESPONSE_ENTER:                 {                     if(House[index][hOWNER] == 0)                     {                         CreateNoOwnerHouseTD(playerid);                         for(new i = 0; i < sizeof NoOwnerTextDraw_PTD[]; i++)                         {                             PlayerTextDrawShow(playerid, NoOwnerTextDraw_PTD[playerid][i]);                                 }                                 new price[8];                                 format(price, sizeof(price), "%d$", House[index][hPRICE]);                                 PlayerTextDrawSetString(playerid, NoOwnerTextDraw_PTD[playerid][2], price);                                 new id[9];                                 format(id, sizeof(id), "%d", House[index][hID]);                                 PlayerTextDrawSetString(playerid, NoOwnerTextDraw_PTD[playerid][0], id);                                 switch(House[index][hCLASS])                                 {                                     case 1: PlayerTextDrawSetString(playerid, NoOwnerTextDraw_PTD[playerid][1], "A");                                     case 2: PlayerTextDrawSetString(playerid, NoOwnerTextDraw_PTD[playerid][1], "B");                                     case 3: PlayerTextDrawSetString(playerid, NoOwnerTextDraw_PTD[playerid][1], "C");                                 }                                 for(new i = 0; i < sizeof NoOwnerTextDraw_TD; i++)                         {                             TextDrawShowForPlayer(playerid, NoOwnerTextDraw_TD[i]);                                 }                         }                 }                 case GA_RESPONSE_LEAVE:                 {                 for(new i = 0; i < sizeof NoOwnerTextDraw_PTD[]; i++)                 {                     PlayerTextDrawHide(playerid, NoOwnerTextDraw_PTD[playerid][i]);                         }                         for(new i = 0; i < sizeof NoOwnerTextDraw_TD; i++)                 {                     TextDrawHideForPlayer(playerid, NoOwnerTextDraw_TD[i]);                         }                 }         }         return 1; } GAResponse:BizArea(playerid, response, key, index) {         switch(response)         {             case GA_RESPONSE_PRESS_KEY:             {                 if(key & KEY_WALK)                 {                     GoToInteriorBiz(playerid, Biz[index][bINTERIOR]);                                 SetPlayerVirtualWorld(playerid, index);                 }                 }         }         return 1; } GAResponse:InteriorExit(playerid, response, key, index) {         switch(response)         {             case GA_RESPONSE_PRESS_KEY:             {                 new world = GetPlayerVirtualWorld(playerid);                 if(key & KEY_WALK)                 {                     if(world < MAX_HOUSES)                     {                         SetPlayerInterior(playerid, 0);                             SetPlayerVirtualWorld(playerid, 0);                             SetPlayerPos(playerid, House[world][hX], House[world][hY], House[world][hZ]);                             SetPlayerFacingAngle(playerid, House[world][hA]);                                 }                                 else if(world < MAX_HOUSES + MAX_BIZS)                     {                         world -= MAX_HOUSES;                                         printf("%d index world", world);                         SetPlayerInterior(playerid, 0);                             SetPlayerVirtualWorld(playerid, 0);                             SetPlayerPos(playerid, Biz[world][bX], Biz[world][bY], Biz[world][bZ]);                             SetPlayerFacingAngle(playerid, Biz[world][bA]);                                 }                         }                         if(key & KEY_CTRL_BACK)                         {                             if(player_info[playerid][HOUSE] != House[world][hID]) return SCM(playerid, COLOR_RED, "[Ошибка]{ffffff}Вы не владелец данного дома!");                             new dialog[256];                                 format(dialog, sizeof(dialog),                                         "{ffd900}[1]{ffffff}Информация о доме\n\                                         {ffd900}[2]{ffffff}%s дом",                                 (House[world][hCONDITION] == 1) ? ("{00ff00}Открыть") : ("{ff0000}Закрыть"));                             SPD(playerid, DLG_HMENU, DIALOG_STYLE_LIST, "{ffd900}Меню дома", dialog, "Выбрать", "Закрыть");                             return 1;                         }                 }         }         return 1; } stock GoToInterior(playerid, interior) {     for(new i = 0; i < Interiors; i++)         {             if(Interior[i][intID] != interior) continue;             SetPlayerInterior(playerid, Interior[i][intINTERIOR]);             SetPlayerPos(playerid, Interior[i][intX], Interior[i][intY], Interior[i][intZ]);             SetPlayerFacingAngle(playerid, Interior[i][intA]);             SetPlayerCheckpoint(playerid, Interior[i][intX], Interior[i][intY], Interior[i][intZ], 1.0);             new str[128];             format(str, sizeof(str),                         "Нажмите \"ALT\" для выхода\n\                         Нажмите \"H\", чтобы открыть меню дома");             Create3DTextLabel(str, -1, Interior[i][intX], Interior[i][intY], Interior[i][intZ], 15.0, 0, 1);             return 1;         }         return 0; } stock GoToInteriorBiz(playerid, interior) {     for(new i = 0; i < Interiors; i++)         {             if(Interior[i][intID] != interior) continue;             SetPlayerInterior(playerid, Interior[i][intINTERIOR]);             SetPlayerPos(playerid, Interior[i][intX], Interior[i][intY], Interior[i][intZ]);             SetPlayerFacingAngle(playerid, Interior[i][intA]);             SetPlayerCheckpoint(playerid, Interior[i][intX], Interior[i][intY], Interior[i][intZ], 1.0);             new str[128];             format(str, sizeof(str),                         "Нажмите \"ALT\" для выхода");             Create3DTextLabel(str, -1, Interior[i][intX], Interior[i][intY], Interior[i][intZ], 15.0, 0, 1);             return 1;         }         return 0; }  
       
      Что мне делать, подскажите пожалуйста?
    • Jdjdjd
      От Jdjdjd
      Как сделать открытие закрытие ворот в Радмир рп на копии,и куд а нужно вставлять код?