pawn Код:
/*
All credits going to me Toxik (In-Game "CraTzy")
Dont Edit or re port without my permession
if you repost wait for a sniper bullet on your house window
if you are the box in the street stealing my WI-FI im gonna plant u a C4 on your face
builded 25.8.2015, 1:54 am
*/
//============================|
new Text:TDEditor_TD[39]; // |
//============================|
#include <a_samp>
#define FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print("Weapon Shop By Toxik");
print("--------------------------------------\n");
//==============================================================================
//((Textdraws))
//==============================================================================
TDEditor_TD[0] = TextDrawCreate(191.199981, 102.639945, "_~n~");
TextDrawLetterSize(TDEditor_TD[0], 0.313998, 25.090131);
TextDrawTextSize(TDEditor_TD[0], 442.600067, 0.000000);
TextDrawAlignment(TDEditor_TD[0], 1);
TextDrawColor(TDEditor_TD[0], -1);
TextDrawUseBox(TDEditor_TD[0], 1);
TextDrawBoxColor(TDEditor_TD[0], 16711710);
TextDrawSetShadow(TDEditor_TD[0], 0);
TextDrawSetOutline(TDEditor_TD[0], 0);
TextDrawBackgroundColor(TDEditor_TD[0], 255);
TextDrawFont(TDEditor_TD[0], 1);
TextDrawSetProportional(TDEditor_TD[0], 1);
TextDrawSetShadow(TDEditor_TD[0], 0);
TDEditor_TD[1] = TextDrawCreate(192.400131, 101.893318, "========SHOP_MENU==========");
TextDrawLetterSize(TDEditor_TD[1], 0.400000, 1.600000);
TextDrawAlignment(TDEditor_TD[1], 1);
TextDrawColor(TDEditor_TD[1], -16776961);
TextDrawSetShadow(TDEditor_TD[1], 0);
TextDrawSetOutline(TDEditor_TD[1], 0);
TextDrawBackgroundColor(TDEditor_TD[1], 255);
TextDrawFont(TDEditor_TD[1], 1);
TextDrawSetProportional(TDEditor_TD[1], 1);
TextDrawSetShadow(TDEditor_TD[1], 0);
TDEditor_TD[2] = TextDrawCreate(190.800140, 116.826644, "_");
TextDrawLetterSize(TDEditor_TD[2], 0.348399, 0.450132);
TextDrawTextSize(TDEditor_TD[2], 442.600036, 0.000000);
TextDrawAlignment(TDEditor_TD[2], 1);
TextDrawColor(TDEditor_TD[2], -16776961);
TextDrawUseBox(TDEditor_TD[2], 1);
TextDrawBoxColor(TDEditor_TD[2], -16711903);
TextDrawSetShadow(TDEditor_TD[2], 0);
TextDrawSetOutline(TDEditor_TD[2], 0);
TextDrawBackgroundColor(TDEditor_TD[2], -16711903);
TextDrawFont(TDEditor_TD[2], 1);
TextDrawSetProportional(TDEditor_TD[2], 1);
TextDrawSetShadow(TDEditor_TD[2], 0);
TDEditor_TD[3] = TextDrawCreate(256.400054, 123.546646, "_");
TextDrawLetterSize(TDEditor_TD[3], 0.352400, 22.704536);
TextDrawTextSize(TDEditor_TD[3], 261.400054, 0.000000);
TextDrawAlignment(TDEditor_TD[3], 1);
TextDrawColor(TDEditor_TD[3], -1);
TextDrawUseBox(TDEditor_TD[3], 1);
TextDrawBoxColor(TDEditor_TD[3], 255);
TextDrawSetShadow(TDEditor_TD[3], 0);
TextDrawSetOutline(TDEditor_TD[3], 0);
TextDrawBackgroundColor(TDEditor_TD[3], 255);
TextDrawFont(TDEditor_TD[3], 1);
TextDrawSetProportional(TDEditor_TD[3], 1);
TextDrawSetShadow(TDEditor_TD[3], 0);
TDEditor_TD[4] = TextDrawCreate(372.800170, 123.920013, "_");
TextDrawLetterSize(TDEditor_TD[4], 0.352400, 22.704536);
TextDrawTextSize(TDEditor_TD[4], 377.800170, 0.000000);
TextDrawAlignment(TDEditor_TD[4], 1);
TextDrawColor(TDEditor_TD[4], -1);
TextDrawUseBox(TDEditor_TD[4], 1);
TextDrawBoxColor(TDEditor_TD[4], 255);
TextDrawSetShadow(TDEditor_TD[4], 0);
TextDrawSetOutline(TDEditor_TD[4], 0);
TextDrawBackgroundColor(TDEditor_TD[4], 255);
TextDrawFont(TDEditor_TD[4], 1);
TextDrawSetProportional(TDEditor_TD[4], 1);
TextDrawSetShadow(TDEditor_TD[4], 0);
TDEditor_TD[5] = TextDrawCreate(192.000000, 124.000000, "weapons");
TextDrawLetterSize(TDEditor_TD[5], 0.280398, 1.614933);
TextDrawAlignment(TDEditor_TD[5], 1);
TextDrawColor(TDEditor_TD[5], 65535);
TextDrawSetShadow(TDEditor_TD[5], 0);
TextDrawSetOutline(TDEditor_TD[5], 1);
TextDrawBackgroundColor(TDEditor_TD[5], 255);
TextDrawFont(TDEditor_TD[5], 2);
TextDrawSetProportional(TDEditor_TD[5], 1);
TextDrawSetShadow(TDEditor_TD[5], 0);
TDEditor_TD[6] = TextDrawCreate(295.000000, 125.000000, "PRICE");
TextDrawLetterSize(TDEditor_TD[6], 0.375198, 1.476799);
TextDrawAlignment(TDEditor_TD[6], 1);
TextDrawColor(TDEditor_TD[6], 65535);
TextDrawSetShadow(TDEditor_TD[6], 0);
TextDrawSetOutline(TDEditor_TD[6], 1);
TextDrawBackgroundColor(TDEditor_TD[6], 255);
TextDrawFont(TDEditor_TD[6], 2);
TextDrawSetProportional(TDEditor_TD[6], 1);
TextDrawSetShadow(TDEditor_TD[6], 0);
TDEditor_TD[7] = TextDrawCreate(395.000000, 124.000000, "ammo");
TextDrawLetterSize(TDEditor_TD[7], 0.280398, 1.614933);
TextDrawAlignment(TDEditor_TD[7], 1);
TextDrawColor(TDEditor_TD[7], 65535);
TextDrawSetShadow(TDEditor_TD[7], 0);
TextDrawSetOutline(TDEditor_TD[7], 1);
TextDrawBackgroundColor(TDEditor_TD[7], 255);
TextDrawFont(TDEditor_TD[7], 2);
TextDrawSetProportional(TDEditor_TD[7], 1);
TextDrawSetShadow(TDEditor_TD[7], 0);
TDEditor_TD[8] = TextDrawCreate(191.000000, 140.000000, "_");
TextDrawLetterSize(TDEditor_TD[8], 0.250799, 0.099200);
TextDrawTextSize(TDEditor_TD[8], 442.399993, 0.000000);
TextDrawAlignment(TDEditor_TD[8], 1);
TextDrawColor(TDEditor_TD[8], 65535);
TextDrawUseBox(TDEditor_TD[8], 1);
TextDrawBoxColor(TDEditor_TD[8], 255);
TextDrawSetShadow(TDEditor_TD[8], 0);
TextDrawSetOutline(TDEditor_TD[8], 1);
TextDrawBackgroundColor(TDEditor_TD[8], 255);
TextDrawFont(TDEditor_TD[8], 2);
TextDrawSetProportional(TDEditor_TD[8], 1);
TextDrawSetShadow(TDEditor_TD[8], 0);
TDEditor_TD[9] = TextDrawCreate(199.000000, 141.000000, "M4-A1");
TextDrawLetterSize(TDEditor_TD[9], 0.280398, 1.614933);
TextDrawAlignment(TDEditor_TD[9], 1);
TextDrawColor(TDEditor_TD[9], 65535);
TextDrawSetShadow(TDEditor_TD[9], 0);
TextDrawSetOutline(TDEditor_TD[9], 1);
TextDrawBackgroundColor(TDEditor_TD[9], 255);
TextDrawFont(TDEditor_TD[9], 2);
TextDrawSetProportional(TDEditor_TD[9], 1);
TextDrawSetShadow(TDEditor_TD[9], 0);
TextDrawSetSelectable(TDEditor_TD[9], true);
TDEditor_TD[10] = TextDrawCreate(191.000000, 157.000000, "_");
TextDrawLetterSize(TDEditor_TD[10], 0.250799, 0.099200);
TextDrawTextSize(TDEditor_TD[10], 442.799957, 0.000000);
TextDrawAlignment(TDEditor_TD[10], 1);
TextDrawColor(TDEditor_TD[10], 65535);
TextDrawUseBox(TDEditor_TD[10], 1);
TextDrawBoxColor(TDEditor_TD[10], 255);
TextDrawSetShadow(TDEditor_TD[10], 0);
TextDrawSetOutline(TDEditor_TD[10], 1);
TextDrawBackgroundColor(TDEditor_TD[10], 255);
TextDrawFont(TDEditor_TD[10], 2);
TextDrawSetProportional(TDEditor_TD[10], 1);
TextDrawSetShadow(TDEditor_TD[10], 0);
TDEditor_TD[11] = TextDrawCreate(198.000000, 158.000000, "AK-47");
TextDrawLetterSize(TDEditor_TD[11], 0.280398, 1.614933);
TextDrawAlignment(TDEditor_TD[11], 1);
TextDrawColor(TDEditor_TD[11], 65535);
TextDrawSetShadow(TDEditor_TD[11], 0);
TextDrawSetOutline(TDEditor_TD[11], 1);
TextDrawBackgroundColor(TDEditor_TD[11], 255);
TextDrawFont(TDEditor_TD[11], 2);
TextDrawSetProportional(TDEditor_TD[11], 1);
TextDrawSetShadow(TDEditor_TD[11], 0);
TextDrawSetSelectable(TDEditor_TD[11], true);
TDEditor_TD[12] = TextDrawCreate(192.000000, 175.000000, "_");
TextDrawLetterSize(TDEditor_TD[12], 0.250799, 0.099200);
TextDrawTextSize(TDEditor_TD[12], 443.200073, 0.000000);
TextDrawAlignment(TDEditor_TD[12], 1);
TextDrawColor(TDEditor_TD[12], 65535);
TextDrawUseBox(TDEditor_TD[12], 1);
TextDrawBoxColor(TDEditor_TD[12], 255);
TextDrawSetShadow(TDEditor_TD[12], 0);
TextDrawSetOutline(TDEditor_TD[12], 1);
TextDrawBackgroundColor(TDEditor_TD[12], 255);
TextDrawFont(TDEditor_TD[12], 2);
TextDrawSetProportional(TDEditor_TD[12], 1);
TextDrawSetShadow(TDEditor_TD[12], 0);
TDEditor_TD[13] = TextDrawCreate(196.000000, 176.000000, "sNIPER");
TextDrawLetterSize(TDEditor_TD[13], 0.280398, 1.614933);
TextDrawAlignment(TDEditor_TD[13], 1);
TextDrawColor(TDEditor_TD[13], 65535);
TextDrawSetShadow(TDEditor_TD[13], 0);
TextDrawSetOutline(TDEditor_TD[13], 1);
TextDrawBackgroundColor(TDEditor_TD[13], 255);
TextDrawFont(TDEditor_TD[13], 2);
TextDrawSetProportional(TDEditor_TD[13], 1);
TextDrawSetShadow(TDEditor_TD[13], 0);
TextDrawSetSelectable(TDEditor_TD[13], true);
TDEditor_TD[14] = TextDrawCreate(191.000000, 192.000000, "_");
TextDrawLetterSize(TDEditor_TD[14], 0.250799, 0.099200);
TextDrawTextSize(TDEditor_TD[14], 442.400054, 0.000000);
TextDrawAlignment(TDEditor_TD[14], 1);
TextDrawColor(TDEditor_TD[14], 65535);
TextDrawUseBox(TDEditor_TD[14], 1);
TextDrawBoxColor(TDEditor_TD[14], 255);
TextDrawSetShadow(TDEditor_TD[14], 0);
TextDrawSetOutline(TDEditor_TD[14], 1);
TextDrawBackgroundColor(TDEditor_TD[14], 255);
TextDrawFont(TDEditor_TD[14], 2);
TextDrawSetProportional(TDEditor_TD[14], 1);
TextDrawSetShadow(TDEditor_TD[14], 0);
TDEditor_TD[15] = TextDrawCreate(196.000000, 193.000000, "deagle");
TextDrawLetterSize(TDEditor_TD[15], 0.280398, 1.614933);
TextDrawAlignment(TDEditor_TD[15], 1);
TextDrawColor(TDEditor_TD[15], 65535);
TextDrawSetShadow(TDEditor_TD[15], 0);
TextDrawSetOutline(TDEditor_TD[15], 1);
TextDrawBackgroundColor(TDEditor_TD[15], 255);
TextDrawFont(TDEditor_TD[15], 2);
TextDrawSetProportional(TDEditor_TD[15], 1);
TextDrawSetShadow(TDEditor_TD[15], 0);
TextDrawSetSelectable(TDEditor_TD[15], true);
TDEditor_TD[16] = TextDrawCreate(190.000000, 209.000000, "_");
TextDrawLetterSize(TDEditor_TD[16], 0.250799, 0.099200);
TextDrawTextSize(TDEditor_TD[16], 442.800079, 0.000000);
TextDrawAlignment(TDEditor_TD[16], 1);
TextDrawColor(TDEditor_TD[16], 65535);
TextDrawUseBox(TDEditor_TD[16], 1);
TextDrawBoxColor(TDEditor_TD[16], 255);
TextDrawSetShadow(TDEditor_TD[16], 0);
TextDrawSetOutline(TDEditor_TD[16], 1);
TextDrawBackgroundColor(TDEditor_TD[16], 255);
TextDrawFont(TDEditor_TD[16], 2);
TextDrawSetProportional(TDEditor_TD[16], 1);
TextDrawSetShadow(TDEditor_TD[16], 0);
TDEditor_TD[17] = TextDrawCreate(194.000000, 208.899993, "SAWN-OFF");
TextDrawLetterSize(TDEditor_TD[17], 0.280398, 1.614933);
TextDrawAlignment(TDEditor_TD[17], 1);
TextDrawColor(TDEditor_TD[17], 65535);
TextDrawSetShadow(TDEditor_TD[17], 0);
TextDrawSetOutline(TDEditor_TD[17], 1);
TextDrawBackgroundColor(TDEditor_TD[17], 255);
TextDrawFont(TDEditor_TD[17], 2);
TextDrawSetProportional(TDEditor_TD[17], 1);
TextDrawSetShadow(TDEditor_TD[17], 0);
TextDrawSetSelectable(TDEditor_TD[17], true);
TDEditor_TD[18] = TextDrawCreate(190.000000, 226.000000, "_");
TextDrawLetterSize(TDEditor_TD[18], 0.250799, 0.099200);
TextDrawTextSize(TDEditor_TD[18], 441.999938, 0.000000);
TextDrawAlignment(TDEditor_TD[18], 1);
TextDrawColor(TDEditor_TD[18], 65535);
TextDrawUseBox(TDEditor_TD[18], 1);
TextDrawBoxColor(TDEditor_TD[18], 255);
TextDrawSetShadow(TDEditor_TD[18], 0);
TextDrawSetOutline(TDEditor_TD[18], 1);
TextDrawBackgroundColor(TDEditor_TD[18], 255);
TextDrawFont(TDEditor_TD[18], 2);
TextDrawSetProportional(TDEditor_TD[18], 1);
TextDrawSetShadow(TDEditor_TD[18], 0);
TDEditor_TD[19] = TextDrawCreate(191.000000, 244.000000, "_");
TextDrawLetterSize(TDEditor_TD[19], 0.250799, 0.099200);
TextDrawTextSize(TDEditor_TD[19], 442.400024, 0.000000);
TextDrawAlignment(TDEditor_TD[19], 1);
TextDrawColor(TDEditor_TD[19], 65535);
TextDrawUseBox(TDEditor_TD[19], 1);
TextDrawBoxColor(TDEditor_TD[19], 255);
TextDrawSetShadow(TDEditor_TD[19], 0);
TextDrawSetOutline(TDEditor_TD[19], 1);
TextDrawBackgroundColor(TDEditor_TD[19], 255);
TextDrawFont(TDEditor_TD[19], 2);
TextDrawSetProportional(TDEditor_TD[19], 1);
TextDrawSetShadow(TDEditor_TD[19], 0);
TDEditor_TD[20] = TextDrawCreate(190.000000, 259.000000, "_");
TextDrawLetterSize(TDEditor_TD[20], 0.250799, 0.099200);
TextDrawTextSize(TDEditor_TD[20], 441.999969, 0.000000);
TextDrawAlignment(TDEditor_TD[20], 1);
TextDrawColor(TDEditor_TD[20], 65535);
TextDrawUseBox(TDEditor_TD[20], 1);
TextDrawBoxColor(TDEditor_TD[20], 255);
TextDrawSetShadow(TDEditor_TD[20], 0);
TextDrawSetOutline(TDEditor_TD[20], 1);
TextDrawBackgroundColor(TDEditor_TD[20], 255);
TextDrawFont(TDEditor_TD[20], 2);
TextDrawSetProportional(TDEditor_TD[20], 1);
TextDrawSetShadow(TDEditor_TD[20], 0);
TDEditor_TD[21] = TextDrawCreate(190.000000, 276.000000, "_");
TextDrawLetterSize(TDEditor_TD[21], 0.250799, 0.099200);
TextDrawTextSize(TDEditor_TD[21], 442.799957, 0.000000);
TextDrawAlignment(TDEditor_TD[21], 1);
TextDrawColor(TDEditor_TD[21], 65535);
TextDrawUseBox(TDEditor_TD[21], 1);
TextDrawBoxColor(TDEditor_TD[21], 255);
TextDrawSetShadow(TDEditor_TD[21], 0);
TextDrawSetOutline(TDEditor_TD[21], 1);
TextDrawBackgroundColor(TDEditor_TD[21], 255);
TextDrawFont(TDEditor_TD[21], 2);
TextDrawSetProportional(TDEditor_TD[21], 1);
TextDrawSetShadow(TDEditor_TD[21], 0);
TDEditor_TD[22] = TextDrawCreate(190.000000, 295.000000, "_");
TextDrawLetterSize(TDEditor_TD[22], 0.250799, 0.099200);
TextDrawTextSize(TDEditor_TD[22], 442.799957, 0.000000);
TextDrawAlignment(TDEditor_TD[22], 1);
TextDrawColor(TDEditor_TD[22], 65535);
TextDrawUseBox(TDEditor_TD[22], 1);
TextDrawBoxColor(TDEditor_TD[22], 255);
TextDrawSetShadow(TDEditor_TD[22], 0);
TextDrawSetOutline(TDEditor_TD[22], 1);
TextDrawBackgroundColor(TDEditor_TD[22], 255);
TextDrawFont(TDEditor_TD[22], 2);
TextDrawSetProportional(TDEditor_TD[22], 1);
TextDrawSetShadow(TDEditor_TD[22], 0);
TDEditor_TD[23] = TextDrawCreate(190.000000, 295.000000, "_");
TextDrawLetterSize(TDEditor_TD[23], 0.218399, 3.739198);
TextDrawTextSize(TDEditor_TD[23], 442.799957, 0.000000);
TextDrawAlignment(TDEditor_TD[23], 1);
TextDrawColor(TDEditor_TD[23], 65535);
TextDrawUseBox(TDEditor_TD[23], 1);
TextDrawBoxColor(TDEditor_TD[23], 255);
TextDrawSetShadow(TDEditor_TD[23], 0);
TextDrawSetOutline(TDEditor_TD[23], 1);
TextDrawBackgroundColor(TDEditor_TD[23], 255);
TextDrawFont(TDEditor_TD[23], 2);
TextDrawSetProportional(TDEditor_TD[23], 1);
TextDrawSetShadow(TDEditor_TD[23], 0);
TDEditor_TD[24] = TextDrawCreate(210.000000, 226.000000, "UZI");
TextDrawLetterSize(TDEditor_TD[24], 0.280398, 1.614933);
TextDrawAlignment(TDEditor_TD[24], 1);
TextDrawColor(TDEditor_TD[24], 65535);
TextDrawSetShadow(TDEditor_TD[24], 0);
TextDrawSetOutline(TDEditor_TD[24], 1);
TextDrawBackgroundColor(TDEditor_TD[24], 255);
TextDrawFont(TDEditor_TD[24], 2);
TextDrawSetProportional(TDEditor_TD[24], 1);
TextDrawSetShadow(TDEditor_TD[24], 0);
TextDrawSetSelectable(TDEditor_TD[24], true);
TDEditor_TD[25] = TextDrawCreate(208.000000, 243.000000, "tec");
TextDrawLetterSize(TDEditor_TD[25], 0.280398, 1.614933);
TextDrawAlignment(TDEditor_TD[25], 1);
TextDrawColor(TDEditor_TD[25], 65535);
TextDrawSetShadow(TDEditor_TD[25], 0);
TextDrawSetOutline(TDEditor_TD[25], 1);
TextDrawBackgroundColor(TDEditor_TD[25], 255);
TextDrawFont(TDEditor_TD[25], 2);
TextDrawSetProportional(TDEditor_TD[25], 1);
TextDrawSetShadow(TDEditor_TD[25], 0);
TextDrawSetSelectable(TDEditor_TD[25], true);
TDEditor_TD[26] = TextDrawCreate(209.000000, 260.000000, "rifle");
TextDrawLetterSize(TDEditor_TD[26], 0.280398, 1.614933);
TextDrawAlignment(TDEditor_TD[26], 1);
TextDrawColor(TDEditor_TD[26], 65535);
TextDrawSetShadow(TDEditor_TD[26], 0);
TextDrawSetOutline(TDEditor_TD[26], 1);
TextDrawBackgroundColor(TDEditor_TD[26], 255);
TextDrawFont(TDEditor_TD[26], 2);
TextDrawSetProportional(TDEditor_TD[26], 1);
TextDrawSetShadow(TDEditor_TD[26], 0);
TextDrawSetSelectable(TDEditor_TD[26], true);
TDEditor_TD[27] = TextDrawCreate(194.000000, 277.000000, "shotgun");
TextDrawLetterSize(TDEditor_TD[27], 0.280398, 1.614933);
TextDrawAlignment(TDEditor_TD[27], 1);
TextDrawColor(TDEditor_TD[27], 65535);
TextDrawSetShadow(TDEditor_TD[27], 0);
TextDrawSetOutline(TDEditor_TD[27], 1);
TextDrawBackgroundColor(TDEditor_TD[27], 255);
TextDrawFont(TDEditor_TD[27], 2);
TextDrawSetProportional(TDEditor_TD[27], 1);
TextDrawSetShadow(TDEditor_TD[27], 0);
TextDrawSetSelectable(TDEditor_TD[27], true);
TDEditor_TD[28] = TextDrawCreate(302.000000, 141.000000, "1.800$______________1.500");
TextDrawLetterSize(TDEditor_TD[28], 0.280398, 1.614933);
TextDrawAlignment(TDEditor_TD[28], 1);
TextDrawColor(TDEditor_TD[28], 65535);
TextDrawSetShadow(TDEditor_TD[28], 0);
TextDrawSetOutline(TDEditor_TD[28], 1);
TextDrawBackgroundColor(TDEditor_TD[28], 255);
TextDrawFont(TDEditor_TD[28], 2);
TextDrawSetProportional(TDEditor_TD[28], 1);
TextDrawSetShadow(TDEditor_TD[28], 0);
TDEditor_TD[29] = TextDrawCreate(300.000000, 158.000000, "3.000$______________2.500");
TextDrawLetterSize(TDEditor_TD[29], 0.280398, 1.614933);
TextDrawAlignment(TDEditor_TD[29], 1);
TextDrawColor(TDEditor_TD[29], 65535);
TextDrawSetShadow(TDEditor_TD[29], 0);
TextDrawSetOutline(TDEditor_TD[29], 1);
TextDrawBackgroundColor(TDEditor_TD[29], 255);
TextDrawFont(TDEditor_TD[29], 2);
TextDrawSetProportional(TDEditor_TD[29], 1);
TextDrawSetShadow(TDEditor_TD[29], 0);
TDEditor_TD[30] = TextDrawCreate(299.000000, 175.000000, "_1.500$______________500");
TextDrawLetterSize(TDEditor_TD[30], 0.280398, 1.614933);
TextDrawAlignment(TDEditor_TD[30], 1);
TextDrawColor(TDEditor_TD[30], 65535);
TextDrawSetShadow(TDEditor_TD[30], 0);
TextDrawSetOutline(TDEditor_TD[30], 1);
TextDrawBackgroundColor(TDEditor_TD[30], 255);
TextDrawFont(TDEditor_TD[30], 2);
TextDrawSetProportional(TDEditor_TD[30], 1);
TextDrawSetShadow(TDEditor_TD[30], 0);
TDEditor_TD[31] = TextDrawCreate(299.000000, 193.000000, "_1.500$______________500");
TextDrawLetterSize(TDEditor_TD[31], 0.280398, 1.614933);
TextDrawAlignment(TDEditor_TD[31], 1);
TextDrawColor(TDEditor_TD[31], 65535);
TextDrawSetShadow(TDEditor_TD[31], 0);
TextDrawSetOutline(TDEditor_TD[31], 1);
TextDrawBackgroundColor(TDEditor_TD[31], 255);
TextDrawFont(TDEditor_TD[31], 2);
TextDrawSetProportional(TDEditor_TD[31], 1);
TextDrawSetShadow(TDEditor_TD[31], 0);
TDEditor_TD[32] = TextDrawCreate(300.000000, 209.000000, "_2.500$_____________800");
TextDrawLetterSize(TDEditor_TD[32], 0.280398, 1.614933);
TextDrawAlignment(TDEditor_TD[32], 1);
TextDrawColor(TDEditor_TD[32], 65535);
TextDrawSetShadow(TDEditor_TD[32], 0);
TextDrawSetOutline(TDEditor_TD[32], 1);
TextDrawBackgroundColor(TDEditor_TD[32], 255);
TextDrawFont(TDEditor_TD[32], 2);
TextDrawSetProportional(TDEditor_TD[32], 1);
TextDrawSetShadow(TDEditor_TD[32], 0);
TDEditor_TD[33] = TextDrawCreate(301.000000, 228.000000, "_2.500$_____________700");
TextDrawLetterSize(TDEditor_TD[33], 0.280398, 1.614933);
TextDrawAlignment(TDEditor_TD[33], 1);
TextDrawColor(TDEditor_TD[33], 65535);
TextDrawSetShadow(TDEditor_TD[33], 0);
TextDrawSetOutline(TDEditor_TD[33], 1);
TextDrawBackgroundColor(TDEditor_TD[33], 255);
TextDrawFont(TDEditor_TD[33], 2);
TextDrawSetProportional(TDEditor_TD[33], 1);
TextDrawSetShadow(TDEditor_TD[33], 0);
TDEditor_TD[34] = TextDrawCreate(301.000000, 244.000000, "_1.250$______________600");
TextDrawLetterSize(TDEditor_TD[34], 0.280398, 1.614933);
TextDrawAlignment(TDEditor_TD[34], 1);
TextDrawColor(TDEditor_TD[34], 65535);
TextDrawSetShadow(TDEditor_TD[34], 0);
TextDrawSetOutline(TDEditor_TD[34], 1);
TextDrawBackgroundColor(TDEditor_TD[34], 255);
TextDrawFont(TDEditor_TD[34], 2);
TextDrawSetProportional(TDEditor_TD[34], 1);
TextDrawSetShadow(TDEditor_TD[34], 0);
TDEditor_TD[35] = TextDrawCreate(301.000000, 260.000000, "_800$________________400");
TextDrawLetterSize(TDEditor_TD[35], 0.280398, 1.614933);
TextDrawAlignment(TDEditor_TD[35], 1);
TextDrawColor(TDEditor_TD[35], 65535);
TextDrawSetShadow(TDEditor_TD[35], 0);
TextDrawSetOutline(TDEditor_TD[35], 1);
TextDrawBackgroundColor(TDEditor_TD[35], 255);
TextDrawFont(TDEditor_TD[35], 2);
TextDrawSetProportional(TDEditor_TD[35], 1);
TextDrawSetShadow(TDEditor_TD[35], 0);
TDEditor_TD[36] = TextDrawCreate(302.000000, 279.000000, "_200$________________250");
TextDrawLetterSize(TDEditor_TD[36], 0.280398, 1.614933);
TextDrawAlignment(TDEditor_TD[36], 1);
TextDrawColor(TDEditor_TD[36], 65535);
TextDrawSetShadow(TDEditor_TD[36], 0);
TextDrawSetOutline(TDEditor_TD[36], 1);
TextDrawBackgroundColor(TDEditor_TD[36], 255);
TextDrawFont(TDEditor_TD[36], 2);
TextDrawSetProportional(TDEditor_TD[36], 1);
TextDrawSetShadow(TDEditor_TD[36], 0);
TDEditor_TD[37] = TextDrawCreate(195.000000, 296.000000, "press_weapon_name_to_buy_it_!");
TextDrawLetterSize(TDEditor_TD[37], 0.155999, 2.970133);
TextDrawAlignment(TDEditor_TD[37], 1);
TextDrawColor(TDEditor_TD[37], -16776961);
TextDrawSetShadow(TDEditor_TD[37], 0);
TextDrawSetOutline(TDEditor_TD[37], 1);
TextDrawBackgroundColor(TDEditor_TD[37], 41215);
TextDrawFont(TDEditor_TD[37], 1);
TextDrawSetProportional(TDEditor_TD[37], 1);
TextDrawSetShadow(TDEditor_TD[37], 0);
TDEditor_TD[38] = TextDrawCreate(413.000000, 305.000000, "CLOSE_");
TextDrawLetterSize(TDEditor_TD[38], 0.205199, 2.753597);
TextDrawAlignment(TDEditor_TD[38], 1);
TextDrawColor(TDEditor_TD[38], -16776961);
TextDrawSetShadow(TDEditor_TD[38], 0);
TextDrawSetOutline(TDEditor_TD[38], 1);
TextDrawBackgroundColor(TDEditor_TD[38], 255);
TextDrawFont(TDEditor_TD[38], 2);
TextDrawSetProportional(TDEditor_TD[38], 1);
TextDrawSetShadow(TDEditor_TD[38], 0);
TextDrawSetSelectable(TDEditor_TD[38], true);
return 1;
}
public OnFilterScriptExit()
{
for(new i = 0;i<90;i++)
{
TextDrawHideForAll(TDEditor_TD[i]);
}
return 1;
}
public OnPlayerConnect(playerid)
{
SendClientMessage(playerid,-1,"Weapon Shop By Toxik");
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
for(new i = 0;i<90;i++)
{
TextDrawHideForPlayer(playerid,TDEditor_TD[i]);
}
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/Shop", cmdtext, true, 10) == 0)
{
for(new i = 0;i<90;i++)
{
TextDrawShowForPlayer(playerid, TDEditor_TD[i]);
SelectTextDraw(playerid, -1);
}
SendClientMessage(playerid,0x00FF00,"Shop Succefly Opened");
return 1;
}
return 1;
}
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
if(clickedid == TDEditor_TD[38])
{
for(new i = 0;i<90;i++)
{
CancelSelectTextDraw(playerid);
TextDrawHideForPlayer(playerid, TDEditor_TD[i]);
}
}
else if(clickedid == TDEditor_TD[9])
{
//Buy m4
if(GetPlayerMoney(playerid) < 1800)
{
SendClientMessage(playerid, -1, "You don't have enough money to purchase this item.");
return 1;
}
GivePlayerWeapon(playerid,WEAPON_M4,1500);
GivePlayerMoney(playerid,-1800);
SendClientMessage(playerid,0x00FF00,"You Bought M4-A1 with 1500 ammo");
}
else if(clickedid == TDEditor_TD[11])
{
//Buy AK
if(GetPlayerMoney(playerid) < 3000)
{
SendClientMessage(playerid, -1, "You don't have enough money to purchase this item.");
return 1;
}
GivePlayerWeapon(playerid,WEAPON_AK47,2500);
GivePlayerMoney(playerid,-3000);
SendClientMessage(playerid,0x00FF00,"You Bought AK-47 with 2500 ammo");
}
else if(clickedid == TDEditor_TD[13])
{
//Buy sniper
if(GetPlayerMoney(playerid) < 1500)
{
SendClientMessage(playerid, -1, "You don't have enough money to purchase this item.");
return 1;
}
GivePlayerWeapon(playerid,WEAPON_SNIPER,500);
GivePlayerMoney(playerid,-1500);
SendClientMessage(playerid,0x00FF00,"You Bought Sniper with 500 ammo");
}
else if(clickedid == TDEditor_TD[15])
{
//Buy deagle
if(GetPlayerMoney(playerid) < 1500)
{
SendClientMessage(playerid, -1, "You don't have enough money to purchase this item.");
return 1;
}
GivePlayerWeapon(playerid,WEAPON_DEAGLE,500);
GivePlayerMoney(playerid,-1500);
SendClientMessage(playerid,0x00FF00,"You Bought Deagle with 500 ammo");
}
else if(clickedid == TDEditor_TD[17])
{
//Buy sawn
if(GetPlayerMoney(playerid) < 2500)
{
SendClientMessage(playerid, -1, "You don't have enough money to purchase this item.");
return 1;
}
GivePlayerWeapon(playerid,WEAPON_SAWEDOFF,800);
GivePlayerMoney(playerid,-2500);
SendClientMessage(playerid,0x00FF00,"You Bought Sawn-off with 800 ammo");
}
else if(clickedid == TDEditor_TD[24])
{
//Buy Uzi
if(GetPlayerMoney(playerid) < 2500)
{
SendClientMessage(playerid, -1, "You don't have enough money to purchase this item.");
return 1;
}
GivePlayerWeapon(playerid,WEAPON_UZI,700);
GivePlayerMoney(playerid,-2500);
SendClientMessage(playerid,0x00FF00,"You Bought Uzi with 700 ammo");
}
else if(clickedid == TDEditor_TD[25])
{
//Buy tec
if(GetPlayerMoney(playerid) < 1250)
{
SendClientMessage(playerid, -1, "You don't have enough money to purchase this item.");
return 1;
}
GivePlayerWeapon(playerid,WEAPON_TEC9,600);
GivePlayerMoney(playerid,-1250);
SendClientMessage(playerid,0x00FF00,"You Bought Tec with 600 ammo");
}
else if(clickedid == TDEditor_TD[26])
{
//Buy rifle
if(GetPlayerMoney(playerid) < 800)
{
SendClientMessage(playerid, -1, "You don't have enough money to purchase this item.");
return 1;
}
GivePlayerWeapon(playerid,WEAPON_RIFLE,400);
GivePlayerMoney(playerid,-800);
SendClientMessage(playerid,0x00FF00,"You Bought Rifle with 400 ammo");
}
else if(clickedid == TDEditor_TD[27])
{
//Buy shotgun
if(GetPlayerMoney(playerid) < 200)
{
SendClientMessage(playerid, -1, "You don't have enough money to purchase this item.");
return 1;
}
GivePlayerWeapon(playerid,WEAPON_SHOTGUN,250);
GivePlayerMoney(playerid,-200);
SendClientMessage(playerid,0x00FF00,"You Bought Shotgun with 250 ammo");
}
return 1;
}
The layout is horrible, colors don't look right, and it's all misaligned.
'i = 0' , i it's need to be 0 anyway ... every initialiser without defined value it's 0. 'i<90', why 90 ? I see only 38 TD , so 'i<39' , or 'i<=38'
Amd yeah , colors suck, textdraw suck, a simple dialog was right (and enough i think). But , but... was a nice ideea, just that was not the place to use selectable textdraws.
That will make script to send 'SelectTextDraw(playerid, -1)' 90(1(0)+89) times , that suck again xD