Advertisement
JasperSchellekens

Jaspers Woodcutting job

Apr 13th, 2017
1,052
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 91.23 KB | None | 0 0
  1. #include <a_samp>
  2. #include <zcmd>
  3. #include <streamer>
  4. #include <a_actor>
  5. #include <dini>
  6. //==============================================================================
  7. #define     MAX_CREATE_TREES        1000
  8. #define     MAX_DROP_ITEMS          1000
  9. #define     GREEN                   0x80C837FF
  10. #define     COLOR_RED               0xFF0000AA
  11. #define     RED                     0xFF0000FF
  12. #define     ORANGE                  0xFF8000FF
  13. #define     COLOR_YELLOW            0xFFFF00AA
  14. #define     COLOR_LIGHTBLUE         0x33CCFFAA
  15. #define     COLOR_GREY              0xAFAFAFAA
  16. #define     YELLOW                  0xFFFF00FF
  17. #define     DIALOGWOODSELL          5050
  18. #define     DIALOGSKILLS            5040
  19. #define     DIALOGINV               5060
  20. //==============================================================================
  21. enum TreeData
  22. {
  23.     Float:TreePosX,
  24.     Float:TreePosY,
  25.     Float:TreePosZ,
  26.     TreeVWorld,
  27.     TreeInterior,
  28.     TreeModelID,
  29.     Toggled,
  30. };
  31. //==============================================================================
  32. enum pInv
  33. {
  34.     MaxItems = 100,
  35.     InvLogs[MaxItems],
  36.     InvSlots[MaxItems],
  37. };
  38. //==============================================================================
  39. enum pSkills
  40. {
  41.     MaxLevel = 10,
  42.     WoodCuttingLevel[MaxLevel],
  43.     WoodCuttingXP,
  44. };
  45. //==============================================================================
  46. enum pInfo
  47. {
  48.     WoodcuttingDuty2,
  49. };
  50. //==============================================================================
  51. enum
  52. {
  53.     DIALOG_NONE=12345,
  54.     DIALOG_ERROR=12346,
  55.     DIALOG_VEHICLE=500,
  56.     DIALOG_VEHICLE_BUY,
  57.     DIALOG_VEHICLE_SELL,
  58.     DIALOG_FINDVEHICLE,
  59.     DIALOG_TRUNK,
  60.     DIALOG_TRUNK_ACTION,
  61.     DIALOG_VEHICLE_PLATE,
  62.     DIALOG_FUEL,
  63.     DIALOG_EDITVEHICLE
  64. };
  65. //==============================================================================
  66. new Temp[MAX_PLAYERS] = 0;
  67. new WoodcuttingDuty;
  68. new Oldskin[MAX_PLAYERS];
  69. new IsLogged[MAX_PLAYERS];
  70. new Died[MAX_PLAYERS];
  71. new TalkingToDaryll[MAX_PLAYERS];
  72. new TalkingToDaryll2[MAX_PLAYERS];
  73. new TalkingToDaryll3[MAX_PLAYERS];
  74. new PlayerSkills[MAX_PLAYERS][pSkills];
  75. new PlayerInfo[MAX_PLAYERS][pInfo];
  76. new Inventory[MAX_PLAYERS][pInv];
  77. new WoodcuttingActor1;
  78. new WoodcuttingActor2;
  79. new WoodcuttingActor3;
  80. new WoodcuttingActor4;
  81. new TreeInfo[MAX_DROP_ITEMS][TreeData];
  82. new Text3D:Label3[MAX_CREATE_TREES];
  83. new CuttingTree[MAX_PLAYERS];
  84. new Tree[MAX_CREATE_TREES];
  85. new Text:Textdraw10;
  86. new Text:Textdraw11;
  87. new Text:Textdraw12;
  88. new Text:Textdraw13;
  89. new Text:Textdraw14;
  90. new Text:Textdraw15;
  91. new Text:Textdraw17;
  92. new Text:Textdraw20;
  93. new Text:Textdraw21;
  94. new Text:Textdraw22;
  95. new Text:Textdraw23;
  96. new Text:Textdraw27;
  97. new Float:pX[MAX_PLAYERS];
  98. new Float:pY[MAX_PLAYERS];
  99. new Float:pZ[MAX_PLAYERS];
  100. //==============================================================================
  101. public OnFilterScriptInit()
  102. {
  103.     WoodcuttingDuty=CreateDynamicPickup(1314,1,-1965.3787,-2434.6853,34.0163,-1);
  104.     WoodcuttingActor1 = CreateActor(27, -1968.8035,-2438.0771,30.6563, 0.0);
  105.     ApplyActorAnimation(WoodcuttingActor1, "DEALER", "shop_pay", 4.1, 0, 0, 0, 0, 0);
  106.     WoodcuttingActor2 = CreateActor(27, -1956.1770,-2443.1902,30.6250, 4.0);
  107.     ApplyActorAnimation(WoodcuttingActor2, "DEALER", "shop_pay", 4.1, 0, 0, 0, 0, 0);
  108.     WoodcuttingActor3 = CreateActor(27, -1961.7620,-2439.6802,30.6250, 18.0);
  109.     ApplyActorAnimation(WoodcuttingActor3, "DEALER", "shop_pay", 4.1, 0, 0, 0, 0, 0);
  110.     WoodcuttingActor4 = CreateActor(27, -1963.8519,-2433.9194,34.0163, 43.0);
  111.     ApplyActorAnimation(WoodcuttingActor4, "DEALER", "shop_pay", 4.1, 0, 0, 0, 0, 0);
  112.    
  113.     Textdraw10 = TextDrawCreate(159.000000,313.000000,"                                                                  ");
  114.     Textdraw11 = TextDrawCreate(166.000000,321.000000,"Daryll says: Hello there stranger!");
  115.     Textdraw12 = TextDrawCreate(166.000000,336.000000,"Daryll says: I am the owner of this company, and it looks like you are");
  116.     Textdraw13 = TextDrawCreate(166.000000,348.000000,"looking for a job.");
  117.     Textdraw14 = TextDrawCreate(166.000000,361.000000,"Daryll says: Well, you've come to the right place to get a good paid job.");
  118.     Textdraw15 = TextDrawCreate(166.000000,374.000000,"Daryll says: Go upstairs, get some working clothes, a helmet and chainsaw.");
  119.     Textdraw17 = TextDrawCreate(167.000000,411.000000,"Press 'Y' to accept this job. Press 'N' to refuse the job");
  120.     TextDrawUseBox(Textdraw10,1);
  121.     TextDrawBoxColor(Textdraw10,0x00000099);
  122.     TextDrawTextSize(Textdraw10,570.000000,21.000000);
  123.     TextDrawAlignment(Textdraw10,0);
  124.     TextDrawAlignment(Textdraw11,0);
  125.     TextDrawAlignment(Textdraw12,0);
  126.     TextDrawAlignment(Textdraw13,0);
  127.     TextDrawAlignment(Textdraw14,0);
  128.     TextDrawAlignment(Textdraw15,0);
  129.     TextDrawAlignment(Textdraw17,0);
  130.     TextDrawBackgroundColor(Textdraw10,0x000000ff);
  131.     TextDrawBackgroundColor(Textdraw11,0x000000ff);
  132.     TextDrawBackgroundColor(Textdraw12,0x000000ff);
  133.     TextDrawBackgroundColor(Textdraw13,0x000000ff);
  134.     TextDrawBackgroundColor(Textdraw14,0x000000ff);
  135.     TextDrawBackgroundColor(Textdraw15,0x000000ff);
  136.     TextDrawBackgroundColor(Textdraw17,0x000000ff);
  137.     TextDrawFont(Textdraw10,1);
  138.     TextDrawLetterSize(Textdraw10,13.500001,12.100000);
  139.     TextDrawFont(Textdraw11,1);
  140.     TextDrawLetterSize(Textdraw11,0.299999,1.300000);
  141.     TextDrawFont(Textdraw12,1);
  142.     TextDrawLetterSize(Textdraw12,0.299999,1.100000);
  143.     TextDrawFont(Textdraw13,1);
  144.     TextDrawLetterSize(Textdraw13,0.299999,1.200000);
  145.     TextDrawFont(Textdraw14,1);
  146.     TextDrawLetterSize(Textdraw14,0.299999,1.200000);
  147.     TextDrawFont(Textdraw15,1);
  148.     TextDrawLetterSize(Textdraw15,0.299999,1.100000);
  149.     TextDrawFont(Textdraw17,1);
  150.     TextDrawLetterSize(Textdraw17,0.399999,1.200000);
  151.     TextDrawColor(Textdraw10,0xffffffff);
  152.     TextDrawColor(Textdraw11,0xffffffff);
  153.     TextDrawColor(Textdraw12,0xffffffff);
  154.     TextDrawColor(Textdraw13,0xffffffff);
  155.     TextDrawColor(Textdraw14,0xffffffff);
  156.     TextDrawColor(Textdraw15,0xffffffff);
  157.     TextDrawColor(Textdraw17,0xffffffff);
  158.     TextDrawSetOutline(Textdraw11,1);
  159.     TextDrawSetOutline(Textdraw12,1);
  160.     TextDrawSetOutline(Textdraw13,1);
  161.     TextDrawSetOutline(Textdraw14,1);
  162.     TextDrawSetOutline(Textdraw15,1);
  163.     TextDrawSetOutline(Textdraw17,1);
  164.     TextDrawSetProportional(Textdraw10,1);
  165.     TextDrawSetProportional(Textdraw11,1);
  166.     TextDrawSetProportional(Textdraw12,1);
  167.     TextDrawSetProportional(Textdraw13,1);
  168.     TextDrawSetProportional(Textdraw14,1);
  169.     TextDrawSetProportional(Textdraw15,1);
  170.     TextDrawSetProportional(Textdraw17,1);
  171.     TextDrawSetShadow(Textdraw10,7);
  172.     TextDrawSetShadow(Textdraw11,7);
  173.     TextDrawSetShadow(Textdraw12,1);
  174.     TextDrawSetShadow(Textdraw13,1);
  175.     TextDrawSetShadow(Textdraw14,1);
  176.     TextDrawSetShadow(Textdraw15,1);
  177.     TextDrawSetShadow(Textdraw17,1);
  178.  
  179.     Textdraw20 = TextDrawCreate(159.000000,313.000000,"                                                                  ");
  180.     Textdraw21 = TextDrawCreate(166.000000,321.000000,"Darryl says: Hello there!");
  181.     Textdraw22 = TextDrawCreate(166.000000,336.000000,"Darryl says: You can get on duty upstair to suitup and get a chainsaw");
  182.     Textdraw23 = TextDrawCreate(166.000000,348.000000,"Darryl says: Don't tell me you wan't to resign from your job.");
  183.     Textdraw27 = TextDrawCreate(167.000000,411.000000,"Press 'N' to resign from your job and 'H' to close this.");
  184.     TextDrawUseBox(Textdraw20,1);
  185.     TextDrawBoxColor(Textdraw20,0x00000099);
  186.     TextDrawTextSize(Textdraw20,570.000000,21.000000);
  187.     TextDrawAlignment(Textdraw20,0);
  188.     TextDrawAlignment(Textdraw21,0);
  189.     TextDrawAlignment(Textdraw22,0);
  190.     TextDrawAlignment(Textdraw23,0);
  191.     TextDrawAlignment(Textdraw27,0);
  192.     TextDrawBackgroundColor(Textdraw20,0x000000ff);
  193.     TextDrawBackgroundColor(Textdraw21,0x000000ff);
  194.     TextDrawBackgroundColor(Textdraw22,0x000000ff);
  195.     TextDrawBackgroundColor(Textdraw23,0x000000ff);
  196.     TextDrawBackgroundColor(Textdraw27,0x000000ff);
  197.     TextDrawFont(Textdraw20,1);
  198.     TextDrawLetterSize(Textdraw20,13.500001,12.100000);
  199.     TextDrawFont(Textdraw21,1);
  200.     TextDrawLetterSize(Textdraw21,0.299999,1.300000);
  201.     TextDrawFont(Textdraw12,1);
  202.     TextDrawLetterSize(Textdraw22,0.299999,1.100000);
  203.     TextDrawFont(Textdraw13,1);
  204.     TextDrawLetterSize(Textdraw23,0.299999,1.200000);
  205.     TextDrawFont(Textdraw17,1);
  206.     TextDrawLetterSize(Textdraw27,0.399999,1.200000);
  207.     TextDrawColor(Textdraw20,0xffffffff);
  208.     TextDrawColor(Textdraw21,0xffffffff);
  209.     TextDrawColor(Textdraw22,0xffffffff);
  210.     TextDrawColor(Textdraw23,0xffffffff);
  211.     TextDrawColor(Textdraw27,0xffffffff);
  212.     TextDrawSetOutline(Textdraw21,1);
  213.     TextDrawSetOutline(Textdraw22,1);
  214.     TextDrawSetOutline(Textdraw23,1);
  215.     TextDrawSetOutline(Textdraw27,1);
  216.     TextDrawSetProportional(Textdraw20,1);
  217.     TextDrawSetProportional(Textdraw21,1);
  218.     TextDrawSetProportional(Textdraw22,1);
  219.     TextDrawSetProportional(Textdraw23,1);
  220.     TextDrawSetProportional(Textdraw27,1);
  221.     TextDrawSetShadow(Textdraw20,7);
  222.     TextDrawSetShadow(Textdraw21,7);
  223.     TextDrawSetShadow(Textdraw22,1);
  224.     TextDrawSetShadow(Textdraw23,1);
  225.     TextDrawSetShadow(Textdraw27,1);
  226.     //===================================Mapping===========================================
  227.     new g_Object_Woodcutting[234];
  228.     new g_Vehicle_Woodcutting[4];
  229.     g_Object_Woodcutting[0] = CreateTree(-1975.4630, -2465.3850, 29.7474, 0, 0, 700);
  230.     g_Object_Woodcutting[1] = CreateTree(-1967.4128, -2465.3850, 29.7474, 0, 0, 700);
  231.     g_Object_Woodcutting[2] = CreateTree(-1953.6922, -2476.2167, 29.7474, 0, 0, 700);
  232.     g_Object_Woodcutting[3] = CreateTree(-1953.6922, -2481.9753, 29.7474, 0, 0, 700);
  233.     g_Object_Woodcutting[4] = CreateTree(-1983.9721, -2472.5239, 29.7474, 0, 0, 700);
  234.     g_Object_Woodcutting[5] = CreateTree(-1970.9918, -2487.8649, 29.7474, 0, 0, 700);
  235.     g_Object_Woodcutting[6] = CreateTree(-1962.6715, -2481.6245, 29.7474, 0, 0, 700);
  236.     g_Object_Woodcutting[7] = CreateTree(-1943.5307, -2474.3339, 29.7474, 0, 0, 700);
  237.     g_Object_Woodcutting[8] = CreateTree(-1943.5307, -2474.3339, 29.7474, 0, 0, 700);
  238.     g_Object_Woodcutting[9] = CreateTree(-1931.7911, -2474.3339, 30.3174, 0, 0, 700);
  239.     g_Object_Woodcutting[10] = CreateObject(19364, -1974.6407, -2435.0217, 31.2457, 0.0000, 0.0000, 45.3998); //wall012
  240.     SetObjectMaterial(g_Object_Woodcutting[10], 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0xFFFFFFFF);
  241.     g_Object_Woodcutting[11] = CreateTree(-1931.7911, -2507.0161, 32.1674, 0, 0, 700);
  242.     g_Object_Woodcutting[12] = CreateTree(-1955.0915, -2503.2363, 33.5775, 0, 0, 700);
  243.     g_Object_Woodcutting[13] = CreateTree(-1955.0915, -2514.8686, 36.1375, 0, 0, 700);
  244.     g_Object_Woodcutting[14] = CreateTree(-1948.2414, -2526.0559, 38.0774, 0, 0, 700);
  245.     g_Object_Woodcutting[15] = CreateTree(-1925.5108, -2526.0559, 35.2475, 0, 0, 700);
  246.     g_Object_Woodcutting[16] = CreateTree(-1906.2713, -2507.0161, 34.0074, 0, 0, 700);
  247.     g_Object_Woodcutting[17] = CreateTree(-1906.2713, -2438.6323, 30.1474, 0, 0, 700);
  248.     g_Object_Woodcutting[18] = CreateTree(-1998.3739, -2475.0439, 29.6674, 0, 0, 700);
  249.     g_Object_Woodcutting[19] = CreateTree(-1995.9614, -2456.0026, 29.7474, 0, 0, 700);
  250.     g_Object_Woodcutting[20] = CreateTree(-2014.7331, -2477.9643, 29.7474, 0, 0, 700);
  251.     g_Object_Woodcutting[21] = CreateTree(-2014.7331, -2459.2055, 29.9375, 0, 0, 700);
  252.     g_Object_Woodcutting[22] = CreateTree(-2027.5633, -2444.0854, 29.9375, 0, 0, 700);
  253.     g_Object_Woodcutting[23] = CreateTree(-2011.6031, -2430.1052, 29.9375, 0, 0, 700);
  254.     g_Object_Woodcutting[24] = CreateTree(-2048.1035, -2417.6447, 29.9375, 0, 0, 700);
  255.     g_Object_Woodcutting[25] = CreateTree(-2031.7934, -2423.8945, 29.9375, 0, 0, 700);
  256.     g_Object_Woodcutting[26] = CreateTree(-2031.7934, -2411.2148, 29.9375, 0, 0, 700);
  257.     g_Object_Woodcutting[27] = CreateTree(-2050.2636, -2397.1950, 29.6275, 0, 0, 700);
  258.     g_Object_Woodcutting[28] = CreateTree(-2068.4438, -2381.4633, 29.6275, 0, 0, 700);
  259.     g_Object_Woodcutting[29] = CreateTree(-1968.1745, -2381.4633, 29.1774, 0, 0, 700);
  260.     g_Object_Woodcutting[30] = CreateTree(-1949.8138, -2381.4633, 29.1175, 0, 0, 700);
  261.     g_Object_Woodcutting[31] = CreateTree(-1947.6933, -2354.0830, 31.2374, 0, 0, 700);
  262.     g_Object_Woodcutting[32] = CreateTree(-1968.5234, -2347.9020, 31.4575, 0, 0, 700);
  263.     g_Object_Woodcutting[33] = CreateTree(-1953.8327, -2321.7817, 36.8474, 0, 0, 700);
  264.     g_Object_Woodcutting[34] = CreateTree(-1979.1234, -2314.7114, 35.9075, 0, 0, 700);
  265.     g_Object_Woodcutting[35] = CreateTree(-1965.9925, -2291.7319, 40.2374, 0, 0, 700);
  266.     g_Object_Woodcutting[36] = CreateTree(-1993.7232, -2291.7319, 35.5675, 0, 0, 700);
  267.     g_Object_Woodcutting[37] = CreateTree(-1993.7232, -2269.6010, 41.3375, 0, 0, 700);
  268.     g_Object_Woodcutting[38] = CreateTree(-2017.0229, -2269.6010, 34.6775, 0, 0, 700);
  269.     g_Object_Woodcutting[39] = CreateTree(-2017.0229, -2297.6816, 33.4075, 0, 0, 700);
  270.     g_Object_Woodcutting[40] = CreateObject(19412, -1970.0595, -2439.3354, 31.2271, 0.0000, 0.0000, -134.7999); //wall060
  271.     SetObjectMaterial(g_Object_Woodcutting[40], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
  272.     g_Object_Woodcutting[41] = CreateObject(19364, -1967.7912, -2439.4057, 31.2457, 0.0000, 0.0000, -44.4999); //wall012
  273.     SetObjectMaterial(g_Object_Woodcutting[41], 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0xFFFFFFFF);
  274.     g_Object_Woodcutting[42] = CreateObject(19360, -1964.0050, -2432.0085, 31.2450, 0.0000, 0.0000, 45.3998); //wall008
  275.     SetObjectMaterial(g_Object_Woodcutting[42], 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0xFFFFFFFF);
  276.     g_Object_Woodcutting[43] = CreateObject(19364, -1965.5141, -2430.3461, 31.2457, 0.0000, 0.0000, 45.3998); //wall012
  277.     g_Object_Woodcutting[44] = CreateObject(19364, -1967.7995, -2428.0913, 31.2457, 0.0000, 0.0000, 45.3998); //wall012
  278.     g_Object_Woodcutting[45] = CreateObject(19364, -1974.6230, -2432.6767, 31.2457, 0.0000, 0.0000, -44.4999); //wall012
  279.     g_Object_Woodcutting[46] = CreateObject(19364, -1972.3944, -2430.4079, 31.2457, 0.0000, 0.0000, -44.4999); //wall012
  280.     SetObjectMaterial(g_Object_Woodcutting[46], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
  281.     g_Object_Woodcutting[47] = CreateObject(19364, -1970.1661, -2428.1401, 31.2457, 0.0000, 0.0000, -44.4999); //wall012
  282.     g_Object_Woodcutting[48] = CreateObject(19360, -1974.4167, -2432.6796, 31.2250, 0.0000, 0.0000, -44.5000); //wall008
  283.     SetObjectMaterial(g_Object_Woodcutting[48], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
  284.     g_Object_Woodcutting[49] = CreateObject(19393, -1963.3221, -2434.8408, 31.2465, 0.0000, 0.0000, -44.5998); //wall041
  285.     SetObjectMaterial(g_Object_Woodcutting[49], 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0xFFFFFFFF);
  286.     g_Object_Woodcutting[50] = CreateObject(19412, -1965.6474, -2437.0039, 31.2271, 0.0000, 0.0000, -44.4999); //wall060
  287.     SetObjectMaterial(g_Object_Woodcutting[50], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
  288.     g_Object_Woodcutting[51] = CreateObject(19366, -1971.2185, -2435.9758, 31.2420, 0.0000, 0.0000, -44.4999); //wall014
  289.     SetObjectMaterial(g_Object_Woodcutting[51], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
  290.     g_Object_Woodcutting[52] = CreateObject(19360, -1967.5113, -2429.6540, 31.2250, 0.0000, 0.0000, -44.5000); //wall008
  291.     g_Object_Woodcutting[53] = CreateObject(19360, -1967.7281, -2429.8740, 31.0049, 0.0000, 0.0000, -44.5000); //wall008
  292.     g_Object_Woodcutting[54] = CreateObject(19360, -1967.9448, -2430.0935, 30.7849, 0.0000, 0.0000, -44.5000); //wall008
  293.     g_Object_Woodcutting[55] = CreateObject(19360, -1968.1618, -2430.3137, 30.5650, 0.0000, 0.0000, -44.5000); //wall008
  294.     g_Object_Woodcutting[56] = CreateObject(19360, -1968.3856, -2430.5405, 30.3449, 0.0000, 0.0000, -44.5000); //wall008
  295.     g_Object_Woodcutting[57] = CreateObject(19360, -1968.6025, -2430.7612, 30.1350, 0.0000, 0.0000, -44.5000); //wall008
  296.     g_Object_Woodcutting[58] = CreateObject(19360, -1968.8260, -2430.9885, 29.9050, 0.0000, 0.0000, -44.5000); //wall008
  297.     g_Object_Woodcutting[59] = CreateObject(19360, -1969.0429, -2431.2094, 29.6849, 0.0000, 0.0000, -44.5000); //wall008
  298.     g_Object_Woodcutting[60] = CreateObject(19360, -1969.2596, -2431.4294, 29.4750, 0.0000, 0.0000, -44.5000); //wall008
  299.     g_Object_Woodcutting[61] = CreateObject(19360, -1969.4836, -2431.6567, 29.2350, 0.0000, 0.0000, -44.5000); //wall008
  300.     g_Object_Woodcutting[62] = CreateObject(19360, -1969.7004, -2431.8769, 29.0249, 0.0000, 0.0000, -44.5000); //wall008
  301.     g_Object_Woodcutting[63] = CreateObject(19360, -1969.9173, -2432.0971, 28.8150, 0.0000, 0.0000, -44.5000); //wall008
  302.     g_Object_Woodcutting[64] = CreateObject(19360, -1970.1341, -2432.3171, 28.5849, 0.0000, 0.0000, -44.5000); //wall008
  303.     g_Object_Woodcutting[65] = CreateObject(19360, -1970.3576, -2432.5441, 28.3850, 0.0000, 0.0000, -44.5000); //wall008
  304.     g_Object_Woodcutting[66] = CreateObject(19360, -1970.5815, -2432.7717, 28.1550, 0.0000, 0.0000, -44.5000); //wall008
  305.     g_Object_Woodcutting[67] = CreateObject(19360, -1970.7983, -2432.9914, 27.9349, 0.0000, 0.0000, -44.5000); //wall008
  306.     g_Object_Woodcutting[68] = CreateObject(19366, -1964.4096, -2433.7783, 29.5704, 0.0000, -90.0000, 45.2999); //wall014
  307.     g_Object_Woodcutting[69] = CreateObject(19366, -1966.8642, -2436.2565, 29.5704, 0.0000, -90.0000, 45.2999); //wall014
  308.     g_Object_Woodcutting[70] = CreateObject(19366, -1968.8134, -2438.2219, 29.5704, 0.0000, -90.0000, 45.2999); //wall014
  309.     g_Object_Woodcutting[71] = CreateObject(19366, -1970.5681, -2436.4838, 29.5704, 0.0000, -90.0000, 45.2999); //wall014
  310.     g_Object_Woodcutting[72] = CreateObject(19366, -1968.1131, -2434.0056, 29.5704, 0.0000, -90.0000, 45.2999); //wall014
  311.     g_Object_Woodcutting[73] = CreateObject(19366, -1966.2844, -2432.1608, 29.5704, 0.0000, -90.0000, 45.2999); //wall014
  312.     g_Object_Woodcutting[74] = CreateObject(19366, -1972.6717, -2434.3906, 29.5704, 0.0000, -90.0000, 45.2999); //wall014
  313.     g_Object_Woodcutting[75] = CreateObject(19366, -1970.2093, -2431.9045, 29.5704, 0.0000, -90.0000, 45.2999); //wall014
  314.     g_Object_Woodcutting[76] = CreateObject(19366, -1967.7480, -2429.4194, 29.5704, 0.0000, -90.0000, 45.2999); //wall014
  315.     g_Object_Woodcutting[77] = CreateObject(19366, -1973.3950, -2433.7165, 29.5704, 0.0000, -90.0000, 45.2999); //wall014
  316.     g_Object_Woodcutting[78] = CreateObject(19360, -1965.7856, -2430.2561, 31.2450, 0.0000, 0.0000, 45.3998); //wall008
  317.     SetObjectMaterial(g_Object_Woodcutting[78], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
  318.     g_Object_Woodcutting[79] = CreateObject(19360, -1974.5091, -2432.7741, 34.7149, 0.0000, 0.0000, -44.5000); //wall008
  319.     SetObjectMaterial(g_Object_Woodcutting[79], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
  320.     g_Object_Woodcutting[80] = CreateObject(19360, -1963.3575, -2432.6516, 31.2450, 0.0000, 0.0000, 45.3998); //wall008
  321.     SetObjectMaterial(g_Object_Woodcutting[80], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
  322.     g_Object_Woodcutting[81] = CreateObject(19412, -1970.1690, -2439.4370, 31.2371, 0.0000, 0.0000, -134.8000); //wall060
  323.     SetObjectMaterial(g_Object_Woodcutting[81], 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0xFFFFFFFF);
  324.     g_Object_Woodcutting[82] = CreateObject(19360, -1972.2882, -2437.1289, 31.2450, 0.0000, 0.0000, 45.3998); //wall008
  325.     SetObjectMaterial(g_Object_Woodcutting[82], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
  326.     g_Object_Woodcutting[83] = CreateObject(19360, -1974.5666, -2434.8801, 31.2450, 0.0000, 0.0000, 45.3998); //wall008
  327.     SetObjectMaterial(g_Object_Woodcutting[83], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
  328.     g_Object_Woodcutting[84] = CreateObject(19360, -1971.7054, -2429.9233, 31.2250, 0.0000, 0.0000, -44.5000); //wall008
  329.     SetObjectMaterial(g_Object_Woodcutting[84], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
  330.     g_Object_Woodcutting[85] = CreateObject(19360, -1973.9555, -2432.2116, 31.2250, 0.0000, 0.0000, -44.5000); //wall008
  331.     SetObjectMaterial(g_Object_Woodcutting[85], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
  332.     g_Object_Woodcutting[86] = CreateObject(14877, -1970.1003, -2430.2863, 30.8925, 0.0000, 0.0000, 45.3998); //michelle-stairs
  333.     SetObjectMaterial(g_Object_Woodcutting[86], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
  334.     g_Object_Woodcutting[87] = CreateObject(19360, -1967.7933, -2439.1906, 31.2250, 0.0000, 0.0000, -44.5000); //wall008
  335.     SetObjectMaterial(g_Object_Woodcutting[87], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
  336.     g_Object_Woodcutting[88] = CreateObject(19386, -1963.4318, -2434.7529, 31.2367, 0.0000, 0.0000, -44.5000); //wall034
  337.     SetObjectMaterial(g_Object_Woodcutting[88], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
  338.     g_Object_Woodcutting[89] = CreateObject(19412, -1965.5480, -2437.1022, 31.2472, 0.0000, 0.0000, -44.4999); //wall060
  339.     SetObjectMaterial(g_Object_Woodcutting[89], 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0xFFFFFFFF);
  340.     g_Object_Woodcutting[90] = CreateObject(19412, -1969.5511, -2434.2858, 31.2271, 0.0000, 0.0000, -44.4999); //wall060
  341.     SetObjectMaterial(g_Object_Woodcutting[90], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
  342.     g_Object_Woodcutting[91] = CreateObject(19364, -1967.9167, -2439.5332, 31.2457, 0.0000, 0.0000, -44.4999); //wall012
  343.     SetObjectMaterial(g_Object_Woodcutting[91], 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0xFFFFFFFF);
  344.     g_Object_Woodcutting[92] = CreateObject(19366, -1968.4627, -2433.1721, 31.2420, 0.0000, 0.0000, -44.4999); //wall014
  345.     SetObjectMaterial(g_Object_Woodcutting[92], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
  346.     g_Object_Woodcutting[93] = CreateObject(19366, -1966.3059, -2433.1582, 31.2420, 0.0000, 0.0000, -134.4996); //wall014
  347.     SetObjectMaterial(g_Object_Woodcutting[93], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
  348.     g_Object_Woodcutting[94] = CreateObject(19466, -1970.2631, -2439.3107, 31.3913, 0.0000, 0.0000, 44.9000); //window001
  349.     g_Object_Woodcutting[95] = CreateObject(19355, -1964.7397, -2433.6740, 32.9007, 0.0000, 89.9999, -44.5998); //wall003
  350.     g_Object_Woodcutting[96] = CreateObject(19355, -1966.9809, -2435.9443, 32.9007, 0.0000, 89.9999, -44.5998); //wall003
  351.     g_Object_Woodcutting[97] = CreateObject(19355, -1969.0224, -2438.0026, 32.9007, 0.0000, 89.9999, -44.5998); //wall003
  352.     g_Object_Woodcutting[98] = CreateObject(19355, -1966.8431, -2431.5954, 32.9007, 0.0000, 89.9999, -44.5998); //wall003
  353.     g_Object_Woodcutting[99] = CreateObject(19355, -1969.0837, -2433.8664, 32.9007, 0.0000, 89.9999, -44.5998); //wall003
  354.     g_Object_Woodcutting[100] = CreateObject(19355, -1971.1440, -2435.9475, 32.9007, 0.0000, 89.9999, -44.5998); //wall003
  355.     g_Object_Woodcutting[101] = CreateObject(19364, -1972.3548, -2437.2763, 31.2457, 0.0000, 0.0000, 45.3998); //wall012
  356.     SetObjectMaterial(g_Object_Woodcutting[101], 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0xFFFFFFFF);
  357.     g_Object_Woodcutting[102] = CreateObject(19466, -1965.6462, -2437.1413, 31.3713, 0.0000, 0.0000, 135.5001); //window001
  358.     g_Object_Woodcutting[103] = CreateObject(19466, -1969.7763, -2434.5361, 31.3013, 0.0000, 0.0000, 135.5001); //window001
  359.     g_Object_Woodcutting[104] = CreateObject(19364, -1963.2358, -2432.5932, 31.2457, 0.0000, 0.0000, 45.3998); //wall012
  360.     SetObjectMaterial(g_Object_Woodcutting[104], 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0xFFFFFFFF);
  361.     g_Object_Woodcutting[105] = CreateObject(19364, -1965.5964, -2437.1574, 34.7157, 0.0000, 0.0000, -44.4999); //wall012
  362.     SetObjectMaterial(g_Object_Woodcutting[105], 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0xFFFFFFFF);
  363.     g_Object_Woodcutting[106] = CreateObject(19412, -1967.8315, -2439.4223, 34.7371, 0.0000, 0.0000, -44.4999); //wall060
  364.     SetObjectMaterial(g_Object_Woodcutting[106], 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0xFFFFFFFF);
  365.     g_Object_Woodcutting[107] = CreateObject(19412, -1970.0911, -2439.5148, 34.7271, 0.0000, 0.0000, -134.8000); //wall060
  366.     SetObjectMaterial(g_Object_Woodcutting[107], 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0xFFFFFFFF);
  367.     g_Object_Woodcutting[108] = CreateObject(19412, -1972.3542, -2437.2661, 34.7271, 0.0000, 0.0000, -134.8000); //wall060
  368.     SetObjectMaterial(g_Object_Woodcutting[108], 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0xFFFFFFFF);
  369.     g_Object_Woodcutting[109] = CreateObject(19364, -1974.6407, -2435.0217, 34.7356, 0.0000, 0.0000, 45.3998); //wall012
  370.     SetObjectMaterial(g_Object_Woodcutting[109], 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0xFFFFFFFF);
  371.     g_Object_Woodcutting[110] = CreateObject(19412, -1963.2274, -2434.7375, 34.7371, 0.0000, 0.0000, -44.4999); //wall060
  372.     SetObjectMaterial(g_Object_Woodcutting[110], 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0xFFFFFFFF);
  373.     g_Object_Woodcutting[111] = CreateObject(19364, -1965.4079, -2436.9521, 34.7157, 0.0000, 0.0000, -44.4999); //wall012
  374.     SetObjectMaterial(g_Object_Woodcutting[111], 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0xFFFFFFFF);
  375.     g_Object_Woodcutting[112] = CreateObject(19412, -1963.2493, -2432.5861, 34.7271, 0.0000, 0.0000, -134.8000); //wall060
  376.     SetObjectMaterial(g_Object_Woodcutting[112], 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0xFFFFFFFF);
  377.     g_Object_Woodcutting[113] = CreateObject(19412, -1965.4923, -2430.3610, 34.7271, 0.0000, 0.0000, -134.8000); //wall060
  378.     SetObjectMaterial(g_Object_Woodcutting[113], 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0xFFFFFFFF);
  379.     g_Object_Woodcutting[114] = CreateObject(19364, -1974.5644, -2432.6865, 34.7257, 0.0000, 0.0000, -44.4999); //wall012
  380.     SetObjectMaterial(g_Object_Woodcutting[114], 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0xFFFFFFFF);
  381.     g_Object_Woodcutting[115] = CreateObject(19364, -1972.3215, -2430.4038, 34.7257, 0.0000, 0.0000, -44.4999); //wall012
  382.     SetObjectMaterial(g_Object_Woodcutting[115], 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0xFFFFFFFF);
  383.     g_Object_Woodcutting[116] = CreateObject(19364, -1970.8354, -2428.8896, 34.7257, 0.0000, 0.0000, -44.4999); //wall012
  384.     SetObjectMaterial(g_Object_Woodcutting[116], 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0xFFFFFFFF);
  385.     g_Object_Woodcutting[117] = CreateObject(19364, -1970.0014, -2428.0405, 34.7257, 0.0000, 0.0000, -44.4999); //wall012
  386.     SetObjectMaterial(g_Object_Woodcutting[117], 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0xFFFFFFFF);
  387.     g_Object_Woodcutting[118] = CreateObject(19364, -1967.7576, -2428.1176, 34.7256, 0.0000, 0.0000, 45.3998); //wall012
  388.     SetObjectMaterial(g_Object_Woodcutting[118], 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0xFFFFFFFF);
  389.     g_Object_Woodcutting[119] = CreateObject(19360, -1965.4797, -2430.5585, 31.2450, 0.0000, 0.0000, 45.3998); //wall008
  390.     SetObjectMaterial(g_Object_Woodcutting[119], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
  391.     g_Object_Woodcutting[120] = CreateObject(19466, -1967.8463, -2439.3781, 34.6513, 0.0000, 0.0000, 135.5001); //window001
  392.     g_Object_Woodcutting[121] = CreateObject(19466, -1963.1436, -2434.5920, 34.6513, 0.0000, 0.0000, 135.5001); //window001
  393.     g_Object_Woodcutting[122] = CreateObject(19466, -1970.0933, -2439.4807, 34.8613, 0.0000, 0.0000, 44.9000); //window001
  394.     g_Object_Woodcutting[123] = CreateObject(19466, -1972.3027, -2437.2644, 34.8613, 0.0000, 0.0000, 44.9000); //window001
  395.     g_Object_Woodcutting[124] = CreateObject(19466, -1965.4259, -2430.4084, 34.8613, 0.0000, 0.0000, 44.9000); //window001
  396.     g_Object_Woodcutting[125] = CreateObject(19466, -1963.1671, -2432.6740, 34.8613, 0.0000, 0.0000, 44.9000); //window001
  397.     g_Object_Woodcutting[126] = CreateObject(1491, -1963.8631, -2435.3637, 29.5065, 0.0000, 0.0000, 45.1000); //Gen_doorINT01
  398.     SetObjectMaterial(g_Object_Woodcutting[126], 0, 3193, "cxref_desert", "sw_barnfence01", 0xFFFFFFFF);
  399.     g_Object_Woodcutting[127] = CreateObject(19360, -1972.2666, -2430.4916, 34.7149, 0.0000, 0.0000, -44.5000); //wall008
  400.     SetObjectMaterial(g_Object_Woodcutting[127], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
  401.     g_Object_Woodcutting[128] = CreateObject(19360, -1970.0168, -2428.2016, 34.7149, 0.0000, 0.0000, -44.5000); //wall008
  402.     SetObjectMaterial(g_Object_Woodcutting[128], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
  403.     g_Object_Woodcutting[129] = CreateObject(19412, -1969.9887, -2439.4062, 34.7172, 0.0000, 0.0000, -134.7999); //wall060
  404.     SetObjectMaterial(g_Object_Woodcutting[129], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
  405.     g_Object_Woodcutting[130] = CreateObject(19412, -1972.2460, -2437.1667, 34.7072, 0.0000, 0.0000, -134.7999); //wall060
  406.     SetObjectMaterial(g_Object_Woodcutting[130], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
  407.     g_Object_Woodcutting[131] = CreateObject(19412, -1965.5725, -2430.4479, 34.7172, 0.0000, 0.0000, -134.7999); //wall060
  408.     SetObjectMaterial(g_Object_Woodcutting[131], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
  409.     g_Object_Woodcutting[132] = CreateObject(19412, -1963.3303, -2432.6738, 34.7172, 0.0000, 0.0000, -134.7999); //wall060
  410.     SetObjectMaterial(g_Object_Woodcutting[132], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
  411.     g_Object_Woodcutting[133] = CreateObject(19412, -1967.8728, -2439.3823, 34.7371, 0.0000, 0.0000, -44.4999); //wall060
  412.     SetObjectMaterial(g_Object_Woodcutting[133], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
  413.     g_Object_Woodcutting[134] = CreateObject(2001, -1969.0848, -2439.5764, 32.9977, 0.0000, 0.0000, 0.0000); //nu_plant_ofc
  414.     g_Object_Woodcutting[135] = CreateObject(19412, -1963.2678, -2434.7111, 34.7371, 0.0000, 0.0000, -44.4999); //wall060
  415.     SetObjectMaterial(g_Object_Woodcutting[135], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
  416.     g_Object_Woodcutting[136] = CreateObject(19427, -1962.4927, -2438.5625, 29.5871, -0.0999, 90.0000, -104.0000); //wall067
  417.     SetObjectMaterial(g_Object_Woodcutting[136], 0, 3897, "libertyhi", "concretebuild64", 0xFFFFFFFF);
  418.     g_Object_Woodcutting[137] = CreateObject(19360, -1965.4710, -2436.9465, 34.7449, 0.0000, 0.0000, -44.5000); //wall008
  419.     SetObjectMaterial(g_Object_Woodcutting[137], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
  420.     g_Object_Woodcutting[138] = CreateObject(19360, -1966.1152, -2437.6025, 34.7449, 0.0000, 0.0000, -44.5000); //wall008
  421.     SetObjectMaterial(g_Object_Woodcutting[138], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
  422.     g_Object_Woodcutting[139] = CreateObject(19427, -1962.3786, -2436.2158, 29.5744, -0.2999, 90.2999, -57.3000); //wall067
  423.     SetObjectMaterial(g_Object_Woodcutting[139], 0, 3897, "libertyhi", "concretebuild64", 0xFFFFFFFF);
  424.     g_Object_Woodcutting[140] = CreateObject(19360, -1974.5240, -2434.9226, 34.7149, 0.0000, 0.0000, 45.3998); //wall008
  425.     SetObjectMaterial(g_Object_Woodcutting[140], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
  426.     g_Object_Woodcutting[141] = CreateObject(19427, -1963.3299, -2441.9201, 29.5871, -0.0999, 90.0000, -104.0000); //wall067
  427.     SetObjectMaterial(g_Object_Woodcutting[141], 0, 3897, "libertyhi", "concretebuild64", 0xFFFFFFFF);
  428.     g_Object_Woodcutting[142] = CreateObject(19360, -1967.7458, -2428.2924, 34.7149, 0.0000, 0.0000, 45.3998); //wall008
  429.     SetObjectMaterial(g_Object_Woodcutting[142], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
  430.     g_Object_Woodcutting[143] = CreateObject(19427, -1964.8450, -2444.2119, 29.6069, -0.2999, 90.0000, -142.9000); //wall067
  431.     SetObjectMaterial(g_Object_Woodcutting[143], 0, 3897, "libertyhi", "concretebuild64", 0xFFFFFFFF);
  432.     g_Object_Woodcutting[144] = CreateObject(19427, -1967.5974, -2445.3852, 29.6113, -0.2999, 90.0000, -171.3999); //wall067
  433.     SetObjectMaterial(g_Object_Woodcutting[144], 0, 3897, "libertyhi", "concretebuild64", 0xFFFFFFFF);
  434.     g_Object_Woodcutting[145] = CreateObject(19427, -1970.2515, -2444.7971, 29.6062, -0.2999, 90.0000, 146.6000); //wall067
  435.     SetObjectMaterial(g_Object_Woodcutting[145], 0, 3897, "libertyhi", "concretebuild64", 0xFFFFFFFF);
  436.     g_Object_Woodcutting[146] = CreateObject(19355, -1969.1199, -2438.3439, 36.5607, 0.0000, 89.9999, -44.5998); //wall003
  437.     SetObjectMaterial(g_Object_Woodcutting[146], 0, 3881, "apsecurity_sfxrf", "ws_rooftarmac2", 0xFFFFFFFF);
  438.     g_Object_Woodcutting[147] = CreateObject(14872, -1964.3249, -2438.5837, 29.9062, 0.0000, 0.0000, 0.0000); //Kylie_logs
  439.     g_Object_Woodcutting[148] = CreateObject(18566, -1958.1168, -2440.8874, 29.9762, 0.0000, -0.6999, -44.2000); //Cs_Logs02
  440.     g_Object_Woodcutting[149] = CreateObject(19355, -1964.4068, -2433.5688, 36.5607, 0.0000, 89.9999, -44.5998); //wall003
  441.     SetObjectMaterial(g_Object_Woodcutting[149], 0, 3881, "apsecurity_sfxrf", "ws_rooftarmac2", 0xFFFFFFFF);
  442.     g_Object_Woodcutting[150] = CreateObject(684, -1968.5705, -2441.7910, 30.1683, 0.5999, 0.0000, -107.2000); //sm_fir_log02
  443.     g_Object_Woodcutting[151] = CreateObject(19355, -1966.6345, -2435.8234, 36.5607, 0.0000, 89.9999, -44.5998); //wall003
  444.     SetObjectMaterial(g_Object_Woodcutting[151], 0, 3881, "apsecurity_sfxrf", "ws_rooftarmac2", 0xFFFFFFFF);
  445.     g_Object_Woodcutting[152] = CreateObject(19355, -1968.5424, -2437.7631, 36.5607, 0.0000, 89.9999, -44.5998); //wall003
  446.     SetObjectMaterial(g_Object_Woodcutting[152], 0, 3881, "apsecurity_sfxrf", "ws_rooftarmac2", 0xFFFFFFFF);
  447.     g_Object_Woodcutting[153] = CreateObject(19355, -1971.5831, -2435.9113, 36.5607, 0.0000, 89.9999, -44.5998); //wall003
  448.     SetObjectMaterial(g_Object_Woodcutting[153], 0, 3881, "apsecurity_sfxrf", "ws_rooftarmac2", 0xFFFFFFFF);
  449.     g_Object_Woodcutting[154] = CreateObject(19355, -1973.5266, -2433.9899, 36.5607, 0.0000, 89.9999, -44.5998); //wall003
  450.     SetObjectMaterial(g_Object_Woodcutting[154], 0, 3881, "apsecurity_sfxrf", "ws_rooftarmac2", 0xFFFFFFFF);
  451.     g_Object_Woodcutting[155] = CreateObject(19427, -1962.5141, -2444.5202, 29.5710, 0.0000, 89.9999, -60.4000); //wall067
  452.     SetObjectMaterial(g_Object_Woodcutting[155], 0, 3897, "libertyhi", "concretebuild64", 0xFFFFFFFF);
  453.     g_Object_Woodcutting[156] = CreateObject(19364, -1974.6975, -2434.9650, 34.7356, 0.0000, 0.0000, 45.3998); //wall012
  454.     SetObjectMaterial(g_Object_Woodcutting[156], 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0xFFFFFFFF);
  455.     g_Object_Woodcutting[157] = CreateObject(19427, -1963.5214, -2445.1701, 29.5777, -0.2999, 90.1999, -26.6000); //wall067
  456.     SetObjectMaterial(g_Object_Woodcutting[157], 0, 3897, "libertyhi", "concretebuild64", 0xFFFFFFFF);
  457.     g_Object_Woodcutting[158] = CreateObject(19355, -1971.4381, -2431.8791, 36.5607, 0.0000, 89.9999, -44.5998); //wall003
  458.     SetObjectMaterial(g_Object_Woodcutting[158], 0, 3881, "apsecurity_sfxrf", "ws_rooftarmac2", 0xFFFFFFFF);
  459.     g_Object_Woodcutting[159] = CreateObject(19355, -1969.2818, -2429.6936, 36.5607, 0.0000, 89.9999, -44.5998); //wall003
  460.     SetObjectMaterial(g_Object_Woodcutting[159], 0, 3881, "apsecurity_sfxrf", "ws_rooftarmac2", 0xFFFFFFFF);
  461.     g_Object_Woodcutting[160] = CreateObject(19355, -1968.8095, -2429.2187, 36.5607, 0.0000, 89.9999, -44.5998); //wall003
  462.     SetObjectMaterial(g_Object_Woodcutting[160], 0, 3881, "apsecurity_sfxrf", "ws_rooftarmac2", 0xFFFFFFFF);
  463.     g_Object_Woodcutting[161] = CreateObject(19427, -1960.3918, -2446.7365, 29.5754, -0.2999, 90.1999, -26.6000); //wall067
  464.     SetObjectMaterial(g_Object_Woodcutting[161], 0, 3897, "libertyhi", "concretebuild64", 0xFFFFFFFF);
  465.     g_Object_Woodcutting[162] = CreateObject(19355, -1966.7449, -2431.2565, 36.5607, 0.0000, 89.9999, -44.5998); //wall003
  466.     SetObjectMaterial(g_Object_Woodcutting[162], 0, 3881, "apsecurity_sfxrf", "ws_rooftarmac2", 0xFFFFFFFF);
  467.     g_Object_Woodcutting[163] = CreateObject(19355, -1969.0633, -2433.6049, 36.5607, 0.0000, 89.9999, -44.5998); //wall003
  468.     SetObjectMaterial(g_Object_Woodcutting[163], 0, 3881, "apsecurity_sfxrf", "ws_rooftarmac2", 0xFFFFFFFF);
  469.     g_Object_Woodcutting[164] = CreateObject(19355, -1969.3807, -2433.9235, 36.5607, 0.0000, 89.9999, -44.5998); //wall003
  470.     SetObjectMaterial(g_Object_Woodcutting[164], 0, 3881, "apsecurity_sfxrf", "ws_rooftarmac2", 0xFFFFFFFF);
  471.     g_Object_Woodcutting[165] = CreateObject(19427, -1957.2805, -2448.2956, 29.5633, -0.2999, 90.1999, -26.6000); //wall067
  472.     SetObjectMaterial(g_Object_Woodcutting[165], 0, 3897, "libertyhi", "concretebuild64", 0xFFFFFFFF);
  473.     g_Object_Woodcutting[166] = CreateObject(19366, -1968.8061, -2438.2187, 32.9304, 0.0000, -90.0000, 45.2999); //wall014
  474.     g_Object_Woodcutting[167] = CreateObject(19427, -1956.6796, -2448.5959, 29.5617, -0.2999, 90.1999, -26.1000); //wall067
  475.     SetObjectMaterial(g_Object_Woodcutting[167], 0, 3897, "libertyhi", "concretebuild64", 0xFFFFFFFF);
  476.     g_Object_Woodcutting[168] = CreateObject(19366, -1970.8829, -2436.1672, 32.9304, 0.0000, -90.0000, 45.2999); //wall014
  477.     g_Object_Woodcutting[169] = CreateObject(19366, -1971.2230, -2435.8278, 32.9204, 0.0000, -90.0000, 45.2999); //wall014
  478.     g_Object_Woodcutting[170] = CreateObject(19366, -1968.7873, -2433.3723, 32.9204, 0.0000, -90.0000, 45.2999); //wall014
  479.     g_Object_Woodcutting[171] = CreateObject(19366, -1967.0294, -2431.5981, 32.9204, 0.0000, -90.0000, 45.2999); //wall014
  480.     g_Object_Woodcutting[172] = CreateObject(1215, -1957.0529, -2447.1728, 29.9128, 0.0000, 0.0000, 0.0000); //bollardlight
  481.     g_Object_Woodcutting[173] = CreateObject(19366, -1968.0633, -2428.5056, 32.9204, 0.0000, -90.0000, 45.2999); //wall014
  482.     g_Object_Woodcutting[174] = CreateObject(1215, -1960.8831, -2445.4624, 29.9128, 0.0000, 0.0000, 0.0000); //bollardlight
  483.     g_Object_Woodcutting[175] = CreateObject(1215, -1961.1932, -2437.8935, 29.9128, 0.0000, 0.0000, 0.0000); //bollardlight
  484.     g_Object_Woodcutting[176] = CreateObject(1215, -1969.3833, -2446.5939, 29.9128, 0.0000, 0.0000, 0.0000); //bollardlight
  485.     g_Object_Woodcutting[177] = CreateObject(1215, -1964.9735, -2445.6437, 29.9128, 0.0000, 0.0000, 0.0000); //bollardlight
  486.     g_Object_Woodcutting[178] = CreateObject(19355, -1969.0224, -2438.0026, 32.9007, 0.0000, 89.9999, -44.5998); //wall003
  487.     g_Object_Woodcutting[179] = CreateObject(19366, -1966.3660, -2435.7456, 32.9304, 0.0000, -90.0000, 45.2999); //wall014
  488.     g_Object_Woodcutting[180] = CreateObject(1215, -1972.0235, -2444.8840, 29.9128, 0.0000, 0.0000, 0.0000); //bollardlight
  489.     g_Object_Woodcutting[181] = CreateObject(19366, -1964.5792, -2433.9443, 32.9304, 0.0000, -90.0000, 45.2999); //wall014
  490.     g_Object_Woodcutting[182] = CreateObject(19366, -1968.4764, -2433.7458, 32.9304, 0.0000, -90.0000, 45.2999); //wall014
  491.     g_Object_Woodcutting[183] = CreateObject(19366, -1966.6549, -2431.9055, 32.9304, 0.0000, -90.0000, 45.2999); //wall014
  492.     g_Object_Woodcutting[184] = CreateObject(2372, -1972.8142, -2435.8442, 32.8385, 0.0000, 0.0000, -44.4999); //CLOTHES_RAIL2
  493.     g_Object_Woodcutting[185] = CreateObject(2372, -1969.3244, -2432.2937, 32.8385, 0.0000, 0.0000, -44.4999); //CLOTHES_RAIL2
  494.     g_Object_Woodcutting[186] = CreateObject(2372, -1971.0544, -2434.0527, 32.8385, 0.0000, 0.0000, -44.4999); //CLOTHES_RAIL2
  495.     g_Object_Woodcutting[187] = CreateObject(2372, -1970.1787, -2432.3818, 31.0643, 33.3999, -0.3999, -44.4999); //CLOTHES_RAIL2
  496.     g_Object_Woodcutting[188] = CreateObject(2372, -1971.4663, -2433.6899, 29.8180, 36.0999, -0.3999, -44.4999); //CLOTHES_RAIL2
  497.     g_Object_Woodcutting[189] = CreateObject(2047, -1971.4468, -2438.3125, 33.5140, 0.0000, 0.0000, -44.7000); //CJ_FLAG1
  498.     SetObjectMaterial(g_Object_Woodcutting[189], 0, 17562, "coast_apts", "forlease_law", 0xFFFFFFFF);
  499.     g_Object_Woodcutting[190] = CreateObject(2372, -1973.1917, -2432.0083, 29.8282, 33.3999, -0.3999, -44.4999); //CLOTHES_RAIL2
  500.     g_Object_Woodcutting[191] = CreateObject(19360, -1967.9379, -2437.0927, 34.7149, 0.0000, 0.0000, 45.3998); //wall008
  501.     SetObjectMaterial(g_Object_Woodcutting[191], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
  502.     g_Object_Woodcutting[192] = CreateObject(2047, -1965.4241, -2437.1201, 33.5140, 0.0000, 0.0000, 45.0999); //CJ_FLAG1
  503.     SetObjectMaterial(g_Object_Woodcutting[192], 0, 17562, "coast_apts", "forlease_law", 0xFFFFFFFF);
  504.     g_Object_Woodcutting[193] = CreateObject(2372, -1971.9038, -2430.6994, 31.0393, 33.3999, -0.3999, -44.4999); //CLOTHES_RAIL2
  505.     g_Object_Woodcutting[194] = CreateObject(19386, -1967.9617, -2434.9528, 34.7768, 0.0000, 0.0000, -44.5000); //wall034
  506.     SetObjectMaterial(g_Object_Woodcutting[194], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
  507.     g_Object_Woodcutting[195] = CreateObject(19360, -1965.6998, -2432.6425, 34.7449, 0.0000, 0.0000, -44.5000); //wall008
  508.     SetObjectMaterial(g_Object_Woodcutting[195], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
  509.     g_Object_Woodcutting[196] = CreateObject(19355, -1968.7537, -2433.2927, 36.5607, 0.0000, 89.9999, -44.5998); //wall003
  510.     SetObjectMaterial(g_Object_Woodcutting[196], 0, 3881, "apsecurity_sfxrf", "ws_rooftarmac2", 0xFFFFFFFF);
  511.     g_Object_Woodcutting[197] = CreateObject(19386, -1970.0708, -2437.0986, 34.7768, 0.0000, 0.0000, -44.5000); //wall034
  512.     SetObjectMaterial(g_Object_Woodcutting[197], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
  513.     g_Object_Woodcutting[198] = CreateObject(2602, -1967.5815, -2438.1320, 33.5423, 0.0000, 0.0000, -43.9999); //Police_cell_Toilet
  514.     g_Object_Woodcutting[199] = CreateObject(1208, -1970.5034, -2438.2148, 32.9957, 0.0000, 0.0000, -45.0000); //washer
  515.     g_Object_Woodcutting[200] = CreateObject(1491, -1968.5153, -2435.4980, 33.0665, 0.0000, 0.0000, 45.1000); //Gen_doorINT01
  516.     SetObjectMaterial(g_Object_Woodcutting[200], 0, 3193, "cxref_desert", "sw_barnfence01", 0xFFFFFFFF);
  517.     g_Object_Woodcutting[201] = CreateObject(2525, -1968.7233, -2437.1738, 33.0146, 0.0000, 0.0000, -43.5999); //CJ_TOILET4
  518.     g_Object_Woodcutting[202] = CreateObject(1491, -1970.6119, -2437.6008, 33.0665, 0.0000, 0.0000, 45.1000); //Gen_doorINT01
  519.     SetObjectMaterial(g_Object_Woodcutting[202], 0, 3193, "cxref_desert", "sw_barnfence01", 0xFFFFFFFF);
  520.     g_Object_Woodcutting[203] = CreateObject(2011, -1968.7795, -2427.8095, 33.0366, 0.0000, 0.0000, 0.0000); //nu_plant2_ofc
  521.     g_Object_Woodcutting[204] = CreateObject(2011, -1965.2836, -2431.6413, 33.0366, 0.0000, 0.0000, -47.1999); //nu_plant2_ofc
  522.     g_Object_Woodcutting[205] = CreateObject(2010, -1967.0959, -2429.4943, 33.0506, 0.0000, 0.0000, 0.0000); //nu_plant3_ofc
  523.     g_Object_Woodcutting[206] = CreateObject(2010, -1968.2453, -2431.5444, 33.0506, 0.0000, 0.0000, 0.0000); //nu_plant3_ofc
  524.     g_Object_Woodcutting[207] = CreateObject(2010, -1969.2525, -2432.5869, 33.0506, 0.0000, 0.0000, 46.0000); //nu_plant3_ofc
  525.     g_Object_Woodcutting[208] = CreateObject(2010, -1970.8511, -2434.2387, 33.0506, 0.0000, 0.0000, 46.0000); //nu_plant3_ofc
  526.     g_Object_Woodcutting[209] = CreateObject(2010, -1972.5119, -2435.9584, 33.0506, 0.0000, 0.0000, 46.0000); //nu_plant3_ofc
  527.     g_Object_Woodcutting[210] = CreateObject(11729, -1964.6337, -2432.0798, 32.9845, 0.0000, 0.0000, 45.3999); //GymLockerClosed1
  528.     g_Object_Woodcutting[211] = CreateObject(11729, -1965.1043, -2432.5566, 32.9845, 0.0000, 0.0000, 45.3999); //GymLockerClosed1
  529.     g_Object_Woodcutting[212] = CreateObject(11729, -1965.5754, -2433.0319, 32.9845, 0.0000, 0.0000, 45.3999); //GymLockerClosed1
  530.     g_Object_Woodcutting[213] = CreateObject(11729, -1966.0395, -2433.5004, 32.9845, 0.0000, 0.0000, 45.3999); //GymLockerClosed1
  531.     g_Object_Woodcutting[214] = CreateObject(11729, -1966.4964, -2433.9619, 32.9845, 0.0000, 0.0000, 45.3999); //GymLockerClosed1
  532.     g_Object_Woodcutting[215] = CreateObject(11729, -1966.9403, -2434.4086, 32.9845, 0.0000, 0.0000, 45.3999); //GymLockerClosed1
  533.     g_Object_Woodcutting[216] = CreateObject(11729, -1966.7388, -2437.6813, 32.9845, 0.0000, 0.0000, -133.9999); //GymLockerClosed1
  534.     g_Object_Woodcutting[217] = CreateObject(1998, -1971.5286, -2437.0822, 29.6522, 0.0000, 0.0000, -44.8000); //officedesk1l
  535.     g_Object_Woodcutting[218] = CreateObject(11729, -1966.2736, -2437.1987, 32.9845, 0.0000, 0.0000, -133.9999); //GymLockerClosed1
  536.     g_Object_Woodcutting[219] = CreateObject(11729, -1965.8218, -2436.7321, 32.9845, 0.0000, 0.0000, -133.9999); //GymLockerClosed1
  537.     g_Object_Woodcutting[220] = CreateObject(11729, -1965.3770, -2436.2727, 32.9845, 0.0000, 0.0000, -133.9999); //GymLockerClosed1
  538.     g_Object_Woodcutting[221] = CreateObject(11729, -1964.9256, -2435.8051, 32.9845, 0.0000, 0.0000, -133.9999); //GymLockerClosed1
  539.     g_Object_Woodcutting[222] = CreateObject(11729, -1964.4598, -2435.3242, 32.9845, 0.0000, 0.0000, -133.9999); //GymLockerClosed1
  540.     g_Object_Woodcutting[223] = CreateObject(1998, -1968.7211, -2435.6831, 29.6522, 0.0000, 0.0000, 134.7000); //officedesk1l
  541.     g_Object_Woodcutting[224] = CreateObject(2162, -1967.0363, -2432.5717, 29.6345, 0.0000, 0.0000, -45.4999); //MED_OFFICE_UNIT_1
  542.     g_Object_Woodcutting[225] = CreateObject(19173, -1967.7828, -2439.0612, 31.4275, 0.0000, 0.0000, 45.5000); //SAMPPicture2
  543.     g_Object_Woodcutting[226] = CreateObject(2167, -1965.8095, -2433.8693, 29.6720, 0.0000, 0.0000, -47.3000); //MED_OFFICE_UNIT_7
  544.     g_Object_Woodcutting[227] = CreateObject(2819, -1964.9758, -2433.6093, 33.0548, 0.0000, 0.0000, -44.2999); //gb_bedclothes01
  545.     g_Object_Woodcutting[228] = CreateObject(2167, -1965.8095, -2433.8693, 31.1420, 0.0000, 0.0000, -47.3000); //MED_OFFICE_UNIT_7
  546.     g_Object_Woodcutting[229] = CreateObject(1671, -1969.2082, -2434.5048, 30.2202, 0.0000, 0.0000, -13.1000); //swivelchair_A
  547.     g_Object_Woodcutting[230] = CreateObject(948, -1968.9310, -2439.5122, 29.6255, 0.0000, 0.0000, -48.3000); //Plant_Pot_10
  548.     g_Object_Woodcutting[231] = CreateObject(948, -1966.8945, -2437.6049, 29.6255, 0.0000, 0.0000, -43.6000); //Plant_Pot_10
  549.     g_Object_Woodcutting[232] = CreateObject(1671, -1970.7286, -2437.8664, 30.2202, 0.0000, 0.0000, 146.7998); //swivelchair_A
  550.     g_Object_Woodcutting[233] = CreateObject(19170, -1970.7266, -2435.6208, 31.7894, 89.9000, 0.0000, 46.4999); //GTASAMap7
  551.     g_Vehicle_Woodcutting[0] = CreateVehicle(455, -1984.0598, -2432.1713, 31.0618, 181.1750, 174, 16, -1); //Flatbed
  552.     g_Vehicle_Woodcutting[1] = CreateVehicle(554, -1979.9715, -2435.0617, 30.7164, 174.8892, 16, 174, -1); //Yosemite
  553.     g_Vehicle_Woodcutting[2] = CreateVehicle(554, -1976.4658, -2437.5302, 30.7118, 175.2527, 16, 174, -1); //Yosemite
  554.     g_Vehicle_Woodcutting[3] = CreateVehicle(471, -1973.3297, -2438.9379, 30.0970, 179.5702, 16, 174, -1); //Quad
  555.     CreateDynamic3DTextLabel("Press H to interact",ORANGE,-1968.8035,-2438.0771,30.6563,12);
  556. }
  557. //==============================================================================
  558. public OnPlayerConnect(playerid)
  559. {
  560.     LoadStats(playerid);
  561.     return 1;
  562. }
  563. //==============================================================================
  564. public OnPlayerSpawn(playerid)
  565. {
  566.     LoadStats(playerid);
  567.     if(PlayerInfo[playerid][WoodcuttingDuty2] == 1)
  568.             {
  569.                 Oldskin[playerid] = GetPlayerSkin(playerid);
  570.                 PlayerInfo[playerid][WoodcuttingDuty2] = 1;
  571.                 SetPlayerSkin(playerid, 27);
  572.                 GivePlayerWeapon(playerid,9,1);
  573.             }
  574.     return 1;
  575. }
  576. //==============================================================================
  577. stock LoadStats(playerid)
  578. {
  579.     new file[64];
  580.     format(file, sizeof(file), "Woodcutting/%s.ini", GetName(playerid));
  581.     TalkingToDaryll2[playerid] = dini_Int(file,"TalkingToDaryll2");
  582.     PlayerSkills[playerid][WoodCuttingLevel] = dini_Int(file,"WoodCuttingLevel");
  583.     PlayerSkills[playerid][WoodCuttingXP] = dini_Int(file,"WoodCuttingXP");
  584.     PlayerInfo[playerid][WoodcuttingDuty2] = dini_Int(file,"WoodCuttingDuty2");
  585.     Inventory[playerid][InvSlots] = dini_Int(file,"InvSlots");
  586.     Inventory[playerid][InvLogs] = dini_Int(file,"InvLogs");
  587.     return 1;
  588. }
  589. //==============================================================================
  590. stock SStats(playerid)
  591. {
  592.     if(IsPlayerConnectedEx(playerid))
  593.     {
  594.         new file[64];
  595.         format(file, sizeof(file), "Woodcutting/%s.ini", GetName(playerid));
  596.         if(!dini_Exists(file)) dini_Create(file);
  597.         dini_IntSet(file, "TalkingToDaryll2",TalkingToDaryll2[playerid]);
  598.         dini_IntSet(file, "WoodCuttingLevel",PlayerSkills[playerid][WoodCuttingLevel]);
  599.         dini_IntSet(file, "WoodCuttingXP",PlayerSkills[playerid][WoodCuttingXP]);
  600.         dini_IntSet(file, "WoodCuttingDuty2",PlayerInfo[playerid][WoodcuttingDuty2]);
  601.         dini_IntSet(file, "InvSlots",Inventory[playerid][InvSlots]);
  602.         dini_IntSet(file, "InvLogs",Inventory[playerid][InvLogs]);
  603.     }
  604.     return 1;
  605. }
  606. //==============================================================================
  607. stock GetName(playerid)
  608. {
  609.     new name[MAX_PLAYER_NAME];
  610.     GetPlayerName(playerid, name, sizeof(name));
  611.     return name;
  612. }
  613. //==============================================================================
  614. stock WoodCuttingTraining(playerid)
  615. {
  616.     if(PlayerSkills[playerid][WoodCuttingLevel] == 0)
  617.     {
  618.         if(PlayerSkills[playerid][WoodCuttingXP] > 75)
  619.         {
  620.             SendClientMessage(playerid, GREEN, "Congratulations! You've just advanced a WoodCutting Level. Your Level is now level 1!");
  621.             PlayerSkills[playerid][WoodCuttingLevel] += 1;
  622.         }
  623.     }
  624.     if(PlayerSkills[playerid][WoodCuttingLevel] == 1)
  625.     {
  626.         if(PlayerSkills[playerid][WoodCuttingXP] > 200)
  627.         {
  628.             SendClientMessage(playerid, GREEN, "Congratulations! You've just advanced a WoodCutting Level. Your Level is now level 2!");
  629.             PlayerSkills[playerid][WoodCuttingLevel] += 1;
  630.         }
  631.     }
  632.     if(PlayerSkills[playerid][WoodCuttingLevel] == 2)
  633.     {
  634.         if(PlayerSkills[playerid][WoodCuttingXP] > 500)
  635.         {
  636.             SendClientMessage(playerid, GREEN, "Congratulations! You've just advanced a WoodCutting Level. Your Level is now level 3!");
  637.             PlayerSkills[playerid][WoodCuttingLevel] += 1;
  638.         }
  639.     }
  640.     if(PlayerSkills[playerid][WoodCuttingLevel] == 3)
  641.     {
  642.         if(PlayerSkills[playerid][WoodCuttingXP] > 1000)
  643.         {
  644.             SendClientMessage(playerid, GREEN, "Congratulations! You've just advanced a WoodCutting Level. Your Level is now level 4!");
  645.             PlayerSkills[playerid][WoodCuttingLevel] += 1;
  646.         }
  647.     }
  648.     if(PlayerSkills[playerid][WoodCuttingLevel] == 4)
  649.     {
  650.         if(PlayerSkills[playerid][WoodCuttingXP] > 1700)
  651.         {
  652.             SendClientMessage(playerid, GREEN, "Congratulations! You've just advanced a WoodCutting Level. Your Level is now level 5!");
  653.             PlayerSkills[playerid][WoodCuttingLevel] += 1;
  654.         }
  655.     }
  656.     if(PlayerSkills[playerid][WoodCuttingLevel] == 5)
  657.     {
  658.         if(PlayerSkills[playerid][WoodCuttingXP] > 2300)
  659.         {
  660.             SendClientMessage(playerid, GREEN, "Congratulations! You've just advanced a WoodCutting Level. Your Level is now level 6!");
  661.             PlayerSkills[playerid][WoodCuttingLevel] += 1;
  662.         }
  663.     }
  664.     if(PlayerSkills[playerid][WoodCuttingLevel] == 6)
  665.     {
  666.         if(PlayerSkills[playerid][WoodCuttingXP] > 3100)
  667.         {
  668.             SendClientMessage(playerid, GREEN, "Congratulations! You've just advanced a WoodCutting Level. Your Level is now level 7!");
  669.             PlayerSkills[playerid][WoodCuttingLevel] += 1;
  670.         }
  671.     }
  672.     if(PlayerSkills[playerid][WoodCuttingLevel] == 7)
  673.     {
  674.         if(PlayerSkills[playerid][WoodCuttingXP] > 3700)
  675.         {
  676.             SendClientMessage(playerid, GREEN, "Congratulations! You've just advanced a WoodCutting Level. Your Level is now level 8!");
  677.             PlayerSkills[playerid][WoodCuttingLevel] += 1;
  678.         }
  679.     }
  680.     if(PlayerSkills[playerid][WoodCuttingLevel] == 8)
  681.     {
  682.         if(PlayerSkills[playerid][WoodCuttingXP] > 4200)
  683.         {
  684.             SendClientMessage(playerid, GREEN, "Congratulations! You've just advanced a WoodCutting Level. Your Level is now level 9!");
  685.             PlayerSkills[playerid][WoodCuttingLevel] += 1;
  686.         }
  687.     }
  688.     if(PlayerSkills[playerid][WoodCuttingLevel] == 9)
  689.     {
  690.         if(PlayerSkills[playerid][WoodCuttingXP] > 5000)
  691.         {
  692.             SendClientMessage(playerid, GREEN, "Congratulations! You've just advanced a WoodCutting Level. Your Level is now level 10!");
  693.             PlayerSkills[playerid][WoodCuttingLevel] += 1;
  694.         }
  695.     }
  696. }
  697. //==============================================================================
  698. stock IsPlayerConnectedEx(playerid)
  699. {
  700.     if (IsPlayerConnected(playerid)&&IsLogged[playerid]==1&&Died[playerid]==0&&playerid!=INVALID_PLAYER_ID) return 1;
  701.     return 0;
  702. }
  703. stock PlayerName(playerid)
  704. {
  705.     new playername[24];
  706.     GetPlayerName(playerid,playername,24);
  707.     return playername;
  708. }
  709. //==============================================================================
  710. stock GetPlayerNameEx(playerid) {
  711.  
  712.     new
  713.         sz_playerName[MAX_PLAYER_NAME],
  714.         i_pos;
  715.  
  716.     GetPlayerName(playerid, sz_playerName, MAX_PLAYER_NAME);
  717.     while ((i_pos = strfind(sz_playerName, "_", false, i_pos)) != -1) sz_playerName[i_pos] = ' ';
  718.     return sz_playerName;
  719. }
  720. //==============================================================================
  721. stock CreateTree(Float:X, Float:Y, Float:Z, world,interior,modelid)
  722. {
  723.         for(new i = 0; i < sizeof(TreeInfo); i++)
  724.         {
  725.             if(TreeInfo[i][TreePosX] == 0.0 && TreeInfo[i][TreePosY] == 0.0 && TreeInfo[i][TreePosZ] == 0.0)
  726.             {
  727.                 TreeInfo[i][TreePosX] = X;
  728.                 TreeInfo[i][TreePosY] = Y;
  729.                 TreeInfo[i][TreePosZ] = Z;
  730.                 TreeInfo[i][TreeVWorld] = world;
  731.                 TreeInfo[i][TreeInterior] = interior;
  732.                 TreeInfo[i][TreeModelID] = modelid;
  733.                 Label3[i] = Create3DTextLabel("Tree (Use chainsaw)", ORANGE,X,Y,Z+2.0, 10.0,world, 0);
  734.                 Tree[i] = CreateDynamicObject(modelid, X, Y, Z,0,0,0, world);
  735.                 return 1;
  736.             }
  737.         }
  738.         return 1;
  739. }
  740. //==============================================================================
  741. public OnDialogResponse(playerid,dialogid,response,listitem,inputtext[])
  742. {
  743.     if(dialogid == DIALOGINV)
  744.         {
  745.                 if(response)
  746.                 {
  747.                         if(listitem == 0)
  748.                         {
  749.                                 ShowPlayerDialog(playerid, DIALOGINV+1, DIALOG_STYLE_LIST, "Server Menu", "Make your selection\n ---------  \nInventory\nWoodcutting Skill", "Select", "Cancel");
  750.                         }
  751.                 }
  752.                 return 1;
  753.         }
  754.     if(dialogid == DIALOGINV+1)
  755.         {
  756.                 if(response)
  757.                 {
  758.                         if(listitem == 0)
  759.                         {
  760.                                 ShowPlayerDialog(playerid, DIALOGINV+1, DIALOG_STYLE_LIST, "Server Menu", "Make your selection\n ---------  \nInventory\nWoodcutting Skill", "Select", "Cancel");
  761.                         }
  762.                         if(listitem == 1)
  763.                         {
  764.                                 ShowPlayerDialog(playerid, DIALOGINV+1, DIALOG_STYLE_LIST, "Server Menu", "Make your selection\n ---------  \nInventory\nWoodcutting Skill", "Select", "Cancel");
  765.                         }
  766.                         if(listitem == 2)
  767.                         {
  768.                                 new string[256];
  769.                                 new string2[200];
  770.                                 format(string, sizeof(string), "Logs: [%d]\n",Inventory[playerid][InvLogs]);
  771.                                 strcat(string2,string);
  772.                                 ShowPlayerDialog(playerid, DIALOG_NONE, DIALOG_STYLE_MSGBOX, "WoodCutting", string2, "Ok", "");
  773.                         }
  774.                         if(listitem == 3)
  775.                         {
  776.                                 new string[256];
  777.                                 new string2[200];
  778.                                 format(string, sizeof(string), "WoodCutting Level: [%d]\n",PlayerSkills[playerid][WoodCuttingLevel]);
  779.                                 strcat(string2,string);
  780.                                 if(PlayerSkills[playerid][WoodCuttingLevel] == 0)
  781.                                 {
  782.                                 format(string, sizeof(string), "WoodCutting XP: [%d/75]",PlayerSkills[playerid][WoodCuttingXP]);
  783.                                 strcat(string2,string);
  784.                                 }
  785.                                 if(PlayerSkills[playerid][WoodCuttingLevel] == 1)
  786.                                 {
  787.                                 format(string, sizeof(string), "WoodCutting XP: [%d/200]",PlayerSkills[playerid][WoodCuttingXP]);
  788.                                 strcat(string2,string);
  789.                                 }
  790.                                 if(PlayerSkills[playerid][WoodCuttingLevel] == 2)
  791.                                 {
  792.                                 format(string, sizeof(string), "WoodCutting XP: [%d/500]",PlayerSkills[playerid][WoodCuttingXP]);
  793.                                 strcat(string2,string);
  794.                                 }
  795.                                 if(PlayerSkills[playerid][WoodCuttingLevel] == 3)
  796.                                 {
  797.                                 format(string, sizeof(string), "WoodCutting XP: [%d/1000]",PlayerSkills[playerid][WoodCuttingXP]);
  798.                                 strcat(string2,string);
  799.                                 }
  800.                                 if(PlayerSkills[playerid][WoodCuttingLevel] == 4)
  801.                                 {
  802.                                 format(string, sizeof(string), "WoodCutting XP: [%d/1700]",PlayerSkills[playerid][WoodCuttingXP]);
  803.                                 strcat(string2,string);
  804.                                 }
  805.                                 if(PlayerSkills[playerid][WoodCuttingLevel] == 5)
  806.                                 {
  807.                                 format(string, sizeof(string), "WoodCutting XP: [%d/2300]",PlayerSkills[playerid][WoodCuttingXP]);
  808.                                 strcat(string2,string);
  809.                                 }
  810.                                 if(PlayerSkills[playerid][WoodCuttingLevel] == 6)
  811.                                 {
  812.                                 format(string, sizeof(string), "WoodCutting XP: [%d/3100]",PlayerSkills[playerid][WoodCuttingXP]);
  813.                                 strcat(string2,string);
  814.                                 }
  815.                                 if(PlayerSkills[playerid][WoodCuttingLevel] == 7)
  816.                                 {
  817.                                 format(string, sizeof(string), "WoodCutting XP: [%d/3700]",PlayerSkills[playerid][WoodCuttingXP]);
  818.                                 strcat(string2,string);
  819.                                 }
  820.                                 if(PlayerSkills[playerid][WoodCuttingLevel] == 8)
  821.                                 {
  822.                                 format(string, sizeof(string), "WoodCutting XP: [%d/4200]",PlayerSkills[playerid][WoodCuttingXP]);
  823.                                 strcat(string2,string);
  824.                                 }
  825.                                 if(PlayerSkills[playerid][WoodCuttingLevel] == 9)
  826.                                 {
  827.                                 format(string, sizeof(string), "WoodCutting XP: [%d/5000]",PlayerSkills[playerid][WoodCuttingXP]);
  828.                                 strcat(string2,string);
  829.                                 }
  830.                                 if(PlayerSkills[playerid][WoodCuttingLevel] == 10)
  831.                                 {
  832.                                 format(string, sizeof(string), "WoodCutting XP: [%d]",PlayerSkills[playerid][WoodCuttingXP]);
  833.                                 format(string, sizeof(string), "You have reached the max level in woodcutting");
  834.                                 strcat(string2,string);
  835.                                 }
  836.                                 ShowPlayerDialog(playerid, DIALOG_NONE, DIALOG_STYLE_MSGBOX, "WoodCutting", string2, "Ok", "");
  837.                                 }
  838.                 }
  839.                 return 1;
  840.         }
  841.     if(dialogid == DIALOGWOODSELL)
  842.         {
  843.                 if(response)
  844.                 {
  845.                         if(listitem == 0)
  846.                         {
  847.                                 ShowPlayerDialog(playerid, DIALOGWOODSELL+1, DIALOG_STYLE_LIST, "Wood Company", "Make your selection\n ---------  \nTalk to Daryll\nSell Wood\nWoodcutting Skill", "Select", "Cancel");
  848.                         }
  849.                 }
  850.                 return 1;
  851.         }
  852.     if(dialogid == DIALOGWOODSELL+1)
  853.         {
  854.                 if(response)
  855.                 {
  856.                         if(listitem == 0)
  857.                         {
  858.                                 ShowPlayerDialog(playerid, DIALOGWOODSELL+1, DIALOG_STYLE_LIST, "Wood Company", "Make your selection\n ---------  \nTalk to Daryll\nSell Wood\nWoodcutting Skill", "Select", "Cancel");
  859.                         }
  860.                         if(listitem == 1)
  861.                         {
  862.                                 ShowPlayerDialog(playerid, DIALOGWOODSELL+1, DIALOG_STYLE_LIST, "Wood Company", "Make your selection\n ---------  \nTalk to Daryll\nSell Wood\nWoodcutting Skill", "Select", "Cancel");
  863.                         }
  864.                         if(listitem == 2)
  865.                         {
  866.                                 if(TalkingToDaryll2[playerid]==0)
  867.                                 {
  868.                                     TextDrawShowForPlayer(playerid,Textdraw10);
  869.                                     TextDrawShowForPlayer(playerid,Textdraw11);
  870.                                     TextDrawShowForPlayer(playerid,Textdraw12);
  871.                                     TextDrawShowForPlayer(playerid,Textdraw13);
  872.                                     TextDrawShowForPlayer(playerid,Textdraw14);
  873.                                     TextDrawShowForPlayer(playerid,Textdraw15);
  874.                                     TextDrawShowForPlayer(playerid,Textdraw17);
  875.                                     TalkingToDaryll[playerid]=1;
  876.                                     TogglePlayerControllable(playerid, 0);
  877.                                     GetPlayerPos(playerid,pX[playerid],pY[playerid],pZ[playerid]);
  878.                                     SetPlayerCameraPos(playerid,-1970.3198,-2436.8523,31.4647);
  879.                                     SetPlayerCameraLookAt(playerid,-1968.4719,-2437.4597,30.6563);
  880.                                 }
  881.                                 else
  882.                                 {
  883.                                     TextDrawShowForPlayer(playerid,Textdraw20);
  884.                                     TextDrawShowForPlayer(playerid,Textdraw21);
  885.                                     TextDrawShowForPlayer(playerid,Textdraw22);
  886.                                     TextDrawShowForPlayer(playerid,Textdraw23);
  887.                                     TextDrawShowForPlayer(playerid,Textdraw27);
  888.                                     TalkingToDaryll3[playerid]=1;
  889.                                     TogglePlayerControllable(playerid, 0);
  890.                                     GetPlayerPos(playerid,pX[playerid],pY[playerid],pZ[playerid]);
  891.                                     SetPlayerCameraPos(playerid,-1970.3198,-2436.8523,31.4647);
  892.                                     SetPlayerCameraLookAt(playerid,-1968.4719,-2437.4597,30.6563);
  893.                                 }
  894.                         }
  895.                         if(listitem == 3)
  896.                         {
  897.                                 if(TalkingToDaryll2[playerid]==0) return SendClientMessage(playerid,YELLOW,"Talk to Darryl and accept the job first");
  898.                                 ShowPlayerDialog(playerid, DIALOGWOODSELL+2, DIALOG_STYLE_INPUT, "Wood Company", "Enter the amount you want to sell(max 20 each time)", "Select", "Cancel");
  899.                         }
  900.                         if(listitem == 4)
  901.                         {
  902.                                 new string[256];
  903.                                 new string2[200];
  904.                                 format(string, sizeof(string), "WoodCutting Level: [%d]\n",PlayerSkills[playerid][WoodCuttingLevel]);
  905.                                 strcat(string2,string);
  906.                                 if(PlayerSkills[playerid][WoodCuttingLevel] == 0)
  907.                                 {
  908.                                 format(string, sizeof(string), "WoodCutting XP: [%d/75]",PlayerSkills[playerid][WoodCuttingXP]);
  909.                                 strcat(string2,string);
  910.                                 }
  911.                                 if(PlayerSkills[playerid][WoodCuttingLevel] == 1)
  912.                                 {
  913.                                 format(string, sizeof(string), "WoodCutting XP: [%d/200]",PlayerSkills[playerid][WoodCuttingXP]);
  914.                                 strcat(string2,string);
  915.                                 }
  916.                                 if(PlayerSkills[playerid][WoodCuttingLevel] == 2)
  917.                                 {
  918.                                 format(string, sizeof(string), "WoodCutting XP: [%d/500]",PlayerSkills[playerid][WoodCuttingXP]);
  919.                                 strcat(string2,string);
  920.                                 }
  921.                                 if(PlayerSkills[playerid][WoodCuttingLevel] == 3)
  922.                                 {
  923.                                 format(string, sizeof(string), "WoodCutting XP: [%d/1000]",PlayerSkills[playerid][WoodCuttingXP]);
  924.                                 strcat(string2,string);
  925.                                 }
  926.                                 if(PlayerSkills[playerid][WoodCuttingLevel] == 4)
  927.                                 {
  928.                                 format(string, sizeof(string), "WoodCutting XP: [%d/1700]",PlayerSkills[playerid][WoodCuttingXP]);
  929.                                 strcat(string2,string);
  930.                                 }
  931.                                 if(PlayerSkills[playerid][WoodCuttingLevel] == 5)
  932.                                 {
  933.                                 format(string, sizeof(string), "WoodCutting XP: [%d/2300]",PlayerSkills[playerid][WoodCuttingXP]);
  934.                                 strcat(string2,string);
  935.                                 }
  936.                                 if(PlayerSkills[playerid][WoodCuttingLevel] == 6)
  937.                                 {
  938.                                 format(string, sizeof(string), "WoodCutting XP: [%d/3100]",PlayerSkills[playerid][WoodCuttingXP]);
  939.                                 strcat(string2,string);
  940.                                 }
  941.                                 if(PlayerSkills[playerid][WoodCuttingLevel] == 7)
  942.                                 {
  943.                                 format(string, sizeof(string), "WoodCutting XP: [%d/3700]",PlayerSkills[playerid][WoodCuttingXP]);
  944.                                 strcat(string2,string);
  945.                                 }
  946.                                 if(PlayerSkills[playerid][WoodCuttingLevel] == 8)
  947.                                 {
  948.                                 format(string, sizeof(string), "WoodCutting XP: [%d/4200]",PlayerSkills[playerid][WoodCuttingXP]);
  949.                                 strcat(string2,string);
  950.                                 }
  951.                                 if(PlayerSkills[playerid][WoodCuttingLevel] == 9)
  952.                                 {
  953.                                 format(string, sizeof(string), "WoodCutting XP: [%d/5000]",PlayerSkills[playerid][WoodCuttingXP]);
  954.                                 strcat(string2,string);
  955.                                 }
  956.                                 if(PlayerSkills[playerid][WoodCuttingLevel] == 10)
  957.                                 {
  958.                                 format(string, sizeof(string), "WoodCutting XP: [%d/7500]",PlayerSkills[playerid][WoodCuttingXP]);
  959.                                 strcat(string2,string);
  960.                                 }
  961.                                 ShowPlayerDialog(playerid, DIALOG_NONE, DIALOG_STYLE_MSGBOX, "WoodCutting", string2, "Ok", "");
  962.                                 }
  963.                 }
  964.                 return 1;
  965.         }
  966.     if(dialogid == DIALOGWOODSELL+2)
  967.         {
  968.                 if(response)
  969.                 {
  970.                     if(strval(inputtext) > 0 && strval(inputtext) < 21)
  971.                     {
  972.                     if(strval(inputtext) == 1)
  973.                     {
  974.                         if(Inventory[playerid][InvLogs] >= 1)
  975.                         {
  976.                         Inventory[playerid][InvLogs] -= 1;
  977.                         Inventory[playerid][InvSlots] -= 1;
  978.                         SendClientMessage(playerid,YELLOW,"You have sold 1 pile of logs to Darryl for 200$");
  979.                         GameTextForPlayer(playerid,"~G~+$200",2000,1);
  980.                         GivePlayerMoney(playerid,200);
  981.                         }else return SendClientMessage(playerid,RED,"You don't have that many logs");
  982.                     }
  983.                     if(strval(inputtext) == 2)
  984.                     {
  985.                         if(Inventory[playerid][InvLogs] >= 2)
  986.                         {
  987.                         Inventory[playerid][InvLogs] -= 2;
  988.                         Inventory[playerid][InvSlots] -= 2;
  989.                         SendClientMessage(playerid,YELLOW,"You have sold 2 pile of logs to Darryl for 400$");
  990.                         GameTextForPlayer(playerid,"~G~+$400",2000,1);
  991.                         GivePlayerMoney(playerid,400);
  992.                         }else return SendClientMessage(playerid,RED,"You don't have that many logs");
  993.                     }
  994.                     if(strval(inputtext) == 3)
  995.                     {
  996.                         if(Inventory[playerid][InvLogs] >= 3)
  997.                         {
  998.                         Inventory[playerid][InvLogs] -= 3;
  999.                         Inventory[playerid][InvSlots] -= 3;
  1000.                         SendClientMessage(playerid,YELLOW,"You have sold 3 pile of logs to Darryl for 600$");
  1001.                         GameTextForPlayer(playerid,"~G~+$600",2000,1);
  1002.                         GivePlayerMoney(playerid,600);
  1003.                         }else return SendClientMessage(playerid,RED,"You don't have that many logs");
  1004.                     }
  1005.                     if(strval(inputtext) == 4)
  1006.                     {
  1007.                         if(Inventory[playerid][InvLogs] >= 4)
  1008.                         {
  1009.                         Inventory[playerid][InvLogs] -= 4;
  1010.                         Inventory[playerid][InvSlots] -= 4;
  1011.                         SendClientMessage(playerid,YELLOW,"You have sold 4 pile of logs to Darryl for 800$");
  1012.                         GameTextForPlayer(playerid,"~G~+$800",2000,1);
  1013.                         GivePlayerMoney(playerid,800);
  1014.                         }else return SendClientMessage(playerid,RED,"You don't have that many logs");
  1015.                     }
  1016.                     if(strval(inputtext) == 5)
  1017.                     {
  1018.                         if(Inventory[playerid][InvLogs] >= 5)
  1019.                         {
  1020.                         Inventory[playerid][InvLogs] -= 5;
  1021.                         Inventory[playerid][InvSlots] -= 5;
  1022.                         SendClientMessage(playerid,YELLOW,"You have sold 5 pile of logs to Darryl for 1000$");
  1023.                         GameTextForPlayer(playerid,"~G~+$1000",2000,1);
  1024.                         GivePlayerMoney(playerid,1000);
  1025.                         }else return SendClientMessage(playerid,RED,"You don't have that many logs");
  1026.                     }
  1027.                     if(strval(inputtext) == 6)
  1028.                     {
  1029.                         if(Inventory[playerid][InvLogs] >= 6)
  1030.                         {
  1031.                         Inventory[playerid][InvLogs] -= 6;
  1032.                         Inventory[playerid][InvSlots] -= 6;
  1033.                         SendClientMessage(playerid,YELLOW,"You have sold 6 pile of logs to Darryl for 1200$");
  1034.                         GameTextForPlayer(playerid,"~G~+$1200",2000,1);
  1035.                         GivePlayerMoney(playerid,1200);
  1036.                         }else return SendClientMessage(playerid,RED,"You don't have that many logs");
  1037.                     }
  1038.                     if(strval(inputtext) == 7)
  1039.                     {
  1040.                         if(Inventory[playerid][InvLogs] >= 7)
  1041.                         {
  1042.                         Inventory[playerid][InvLogs] -= 7;
  1043.                         Inventory[playerid][InvSlots] -= 7;
  1044.                         SendClientMessage(playerid,YELLOW,"You have sold 7 pile of logs to Darryl for 1400$");
  1045.                         GameTextForPlayer(playerid,"~G~+$1400",2000,1);
  1046.                         GivePlayerMoney(playerid,1400);
  1047.                         }else return SendClientMessage(playerid,RED,"You don't have that many logs");
  1048.                     }
  1049.                     if(strval(inputtext) == 8)
  1050.                     {
  1051.                         if(Inventory[playerid][InvLogs] >= 8)
  1052.                         {
  1053.                         Inventory[playerid][InvLogs] -= 8;
  1054.                         Inventory[playerid][InvSlots] -= 8;
  1055.                         SendClientMessage(playerid,YELLOW,"You have sold 8 pile of logs to Darryl for 1600$");
  1056.                         GameTextForPlayer(playerid,"~G~+$1600",2000,1);
  1057.                         GivePlayerMoney(playerid,1600);
  1058.                         }else return SendClientMessage(playerid,RED,"You don't have that many logs");
  1059.                     }
  1060.                     if(strval(inputtext) == 9)
  1061.                     {
  1062.                         if(Inventory[playerid][InvLogs] >= 9)
  1063.                         {
  1064.                         Inventory[playerid][InvLogs] -= 9;
  1065.                         Inventory[playerid][InvSlots] -= 9;
  1066.                         SendClientMessage(playerid,YELLOW,"You have sold 9 pile of logs to Darryl for 1800$");
  1067.                         GameTextForPlayer(playerid,"~G~+$1800",2000,1);
  1068.                         GivePlayerMoney(playerid,1800);
  1069.                         }else return SendClientMessage(playerid,RED,"You don't have that many logs");
  1070.                     }
  1071.                     if(strval(inputtext) == 10)
  1072.                     {
  1073.                         if(Inventory[playerid][InvLogs] >= 10)
  1074.                         {
  1075.                         Inventory[playerid][InvLogs] -= 10;
  1076.                         Inventory[playerid][InvSlots] -= 10;
  1077.                         SendClientMessage(playerid,YELLOW,"You have sold 10 pile of logs to Darryl for 2000$");
  1078.                         GameTextForPlayer(playerid,"~G~+$2000",2000,1);
  1079.                         GivePlayerMoney(playerid,2000);
  1080.                         }else return SendClientMessage(playerid,RED,"You don't have that many logs");
  1081.                     }
  1082.                     if(strval(inputtext) == 11)
  1083.                     {
  1084.                         if(Inventory[playerid][InvLogs] >= 11)
  1085.                         {
  1086.                         Inventory[playerid][InvLogs] -= 11;
  1087.                         Inventory[playerid][InvSlots] -= 11;
  1088.                         SendClientMessage(playerid,YELLOW,"You have sold 11 pile of logs to Darryl for 2200$");
  1089.                         GameTextForPlayer(playerid,"~G~+$2200",2000,1);
  1090.                         GivePlayerMoney(playerid,2200);
  1091.                         }else return SendClientMessage(playerid,RED,"You don't have that many logs");
  1092.                     }
  1093.                     if(strval(inputtext) == 12)
  1094.                     {
  1095.                         if(Inventory[playerid][InvLogs] >= 12)
  1096.                         {
  1097.                         Inventory[playerid][InvLogs] -= 12;
  1098.                         Inventory[playerid][InvSlots] -= 12;
  1099.                         SendClientMessage(playerid,YELLOW,"You have sold 12 pile of logs to Darryl for 2400$");
  1100.                         GameTextForPlayer(playerid,"~G~+$2400",2000,1);
  1101.                         GivePlayerMoney(playerid,2400);
  1102.                         }else return SendClientMessage(playerid,RED,"You don't have that many logs");
  1103.                     }
  1104.                     if(strval(inputtext) == 13)
  1105.                     {
  1106.                         if(Inventory[playerid][InvLogs] >= 13)
  1107.                         {
  1108.                         Inventory[playerid][InvLogs] -= 13;
  1109.                         Inventory[playerid][InvSlots] -= 13;
  1110.                         SendClientMessage(playerid,YELLOW,"You have sold 13 pile of logs to Darryl for 2600$");
  1111.                         GameTextForPlayer(playerid,"~G~+$2600",2000,1);
  1112.                         GivePlayerMoney(playerid,2600);
  1113.                         }else return SendClientMessage(playerid,RED,"You don't have that many logs");
  1114.                     }
  1115.                     if(strval(inputtext) == 14)
  1116.                     {
  1117.                         if(Inventory[playerid][InvLogs] >= 14)
  1118.                         {
  1119.                         Inventory[playerid][InvLogs] -= 14;
  1120.                         Inventory[playerid][InvSlots] -= 14;
  1121.                         SendClientMessage(playerid,YELLOW,"You have sold 14 pile of logs to Darryl for 2800$");
  1122.                         GameTextForPlayer(playerid,"~G~+$2800",2000,1);
  1123.                         GivePlayerMoney(playerid,2800);
  1124.                         }else return SendClientMessage(playerid,RED,"You don't have that many logs");
  1125.                     }
  1126.                     if(strval(inputtext) == 15)
  1127.                     {
  1128.                         if(Inventory[playerid][InvLogs] >= 15)
  1129.                         {
  1130.                         Inventory[playerid][InvLogs] -= 15;
  1131.                         Inventory[playerid][InvSlots] -= 15;
  1132.                         SendClientMessage(playerid,YELLOW,"You have sold 15 pile of logs to Darryl for 3000$");
  1133.                         GameTextForPlayer(playerid,"~G~+$3000",2000,1);
  1134.                         GivePlayerMoney(playerid,3000);
  1135.                         }else return SendClientMessage(playerid,RED,"You don't have that many logs");
  1136.                     }
  1137.                     if(strval(inputtext) == 16)
  1138.                     {
  1139.                         if(Inventory[playerid][InvLogs] >= 16)
  1140.                         {
  1141.                         Inventory[playerid][InvLogs] -= 16;
  1142.                         Inventory[playerid][InvSlots] -= 16;
  1143.                         SendClientMessage(playerid,YELLOW,"You have sold 16 pile of logs to Darryl for 3200$");
  1144.                         GameTextForPlayer(playerid,"~G~+$3200",2000,1);
  1145.                         GivePlayerMoney(playerid,3200);
  1146.                         }else return SendClientMessage(playerid,RED,"You don't have that many logs");
  1147.                     }
  1148.                     if(strval(inputtext) == 17)
  1149.                     {
  1150.                         if(Inventory[playerid][InvLogs] >= 17)
  1151.                         {
  1152.                         Inventory[playerid][InvLogs] -= 17;
  1153.                         Inventory[playerid][InvSlots] -= 17;
  1154.                         SendClientMessage(playerid,YELLOW,"You have sold 17 pile of logs to Darryl for 3400$");
  1155.                         GameTextForPlayer(playerid,"~G~+$3400",2000,1);
  1156.                         GivePlayerMoney(playerid,3400);
  1157.                         }else return SendClientMessage(playerid,RED,"You don't have that many logs");
  1158.                     }
  1159.                     if(strval(inputtext) == 18)
  1160.                     {
  1161.                         if(Inventory[playerid][InvLogs] >= 18)
  1162.                         {
  1163.                         Inventory[playerid][InvLogs] -= 18;
  1164.                         Inventory[playerid][InvSlots] -= 18;
  1165.                         SendClientMessage(playerid,YELLOW,"You have sold 18 pile of logs to Darryl for 3600$");
  1166.                         GameTextForPlayer(playerid,"~G~+$3600",2000,1);
  1167.                         GivePlayerMoney(playerid,3600);
  1168.                         }else return SendClientMessage(playerid,RED,"You don't have that many logs");
  1169.                     }
  1170.                     if(strval(inputtext) == 19)
  1171.                     {
  1172.                         if(Inventory[playerid][InvLogs] >= 19)
  1173.                         {
  1174.                         Inventory[playerid][InvLogs] -= 19;
  1175.                         Inventory[playerid][InvSlots] -= 19;
  1176.                         SendClientMessage(playerid,YELLOW,"You have sold 19 pile of logs to Darryl for 3800$");
  1177.                         GameTextForPlayer(playerid,"~G~+$3800",2000,1);
  1178.                         GivePlayerMoney(playerid,3800);
  1179.                         }else return SendClientMessage(playerid,RED,"You don't have that many logs");
  1180.                     }
  1181.                     if(strval(inputtext) == 20)
  1182.                     {
  1183.                         if(Inventory[playerid][InvLogs] >= 20)
  1184.                         {
  1185.                         Inventory[playerid][InvLogs] -= 20;
  1186.                         Inventory[playerid][InvSlots] -= 20;
  1187.                         SendClientMessage(playerid,YELLOW,"You have sold 20 pile of logs to Darryl for 4000$");
  1188.                         GameTextForPlayer(playerid,"~G~+$4000",2000,1);
  1189.                         GivePlayerMoney(playerid,4000);
  1190.                         }else return SendClientMessage(playerid,RED,"You don't have that many logs");
  1191.                     }
  1192.                     }else return SendClientMessage(playerid,RED,"You can't sell less then 1 or more then 20 logs each time you interact with Darryl.");
  1193.                 }
  1194.                 return 1;
  1195.     }
  1196.     return 0;
  1197. }
  1198. //==============================================================================
  1199. public OnPlayerClickMap(playerid,Float:fX,Float:fY,Float:fZ)
  1200. {
  1201.     if(IsPlayerInAnyVehicle(playerid)){SetVehiclePos(GetPlayerVehicleID(playerid),fX,fY,fZ+5);}
  1202.     else{SetPlayerPosFindZ(playerid,fX,fY,fZ+5);}
  1203.     return 1;
  1204. }
  1205. //==============================================================================
  1206. public OnPlayerPickUpDynamicPickup(playerid,pickupid)
  1207. {
  1208.     if(pickupid==WoodcuttingDuty)
  1209.     {
  1210.         GameTextForPlayer(playerid,"Press H to go On/Off duty.",800,1);
  1211.     }
  1212.     return 1;
  1213. }
  1214. //==============================================================================
  1215. public OnPlayerKeyStateChange(playerid,newkeys,oldkeys)
  1216. {
  1217.     if(newkeys==KEY_YES)
  1218.     {
  1219.         if(TalkingToDaryll[playerid]==1)
  1220.         {
  1221.             SendClientMessage(playerid,GREEN,"Job accepted.");
  1222.             TextDrawHideForPlayer(playerid,Textdraw10);
  1223.             TextDrawHideForPlayer(playerid,Textdraw11);
  1224.             TextDrawHideForPlayer(playerid,Textdraw12);
  1225.             TextDrawHideForPlayer(playerid,Textdraw13);
  1226.             TextDrawHideForPlayer(playerid,Textdraw14);
  1227.             TextDrawHideForPlayer(playerid,Textdraw15);
  1228.             TextDrawHideForPlayer(playerid,Textdraw17);
  1229.             TalkingToDaryll[playerid]=0;
  1230.             TalkingToDaryll2[playerid]=1;
  1231.             TogglePlayerControllable(playerid, 1);
  1232.             SetCameraBehindPlayer(playerid);
  1233.             SetPlayerPos(playerid,pX[playerid],pY[playerid],pZ[playerid]);
  1234.             SStats(playerid);
  1235.         }
  1236.         else
  1237.         {
  1238.             ShowPlayerDialog(playerid, DIALOGINV+1, DIALOG_STYLE_LIST, "Server Menu", "Make your selection\n ---------  \nInventory\nWoodcutting Skill", "Select", "Cancel");
  1239.         }
  1240.     }
  1241.     if(newkeys==KEY_CTRL_BACK)
  1242.     {
  1243.         if(IsPlayerInRangeOfPoint(playerid,2,-1968.8035,-2438.0771,30.6563))
  1244.         {
  1245.             ShowPlayerDialog(playerid, DIALOGWOODSELL+1, DIALOG_STYLE_LIST, "Wood Company", "Make your selection\n ---------  \nTalk to Daryll\nSell Wood\nWoodcutting Skill", "Select", "Cancel");
  1246.         }
  1247.         if(IsPlayerInRangeOfPoint(playerid,2,-1965.3787,-2434.6853,34.0163))
  1248.         {
  1249.             if(PlayerInfo[playerid][WoodcuttingDuty2] == 0)
  1250.             {
  1251.                 Oldskin[playerid] = GetPlayerSkin(playerid);
  1252.                 PlayerInfo[playerid][WoodcuttingDuty2] = 1;
  1253.                 SetPlayerSkin(playerid, 27);
  1254.                 GivePlayerWeapon(playerid,9,1);
  1255.                 SendClientMessage(playerid, GREEN, "You are now on woodcutting duty.");
  1256.                 SStats(playerid);
  1257.             }
  1258.             else
  1259.             {
  1260.                 PlayerInfo[playerid][WoodcuttingDuty2] = 0;
  1261.                 SetPlayerSkin(playerid, Oldskin[playerid]);
  1262.                 SendClientMessage(playerid, GREEN, "You are not on woodcutting duty anymore.");
  1263.                 SStats(playerid);
  1264.             }
  1265.         }
  1266.     }
  1267.     if(newkeys==KEY_NO)
  1268.     {
  1269.         if(TalkingToDaryll[playerid]==1)
  1270.         {
  1271.             SendClientMessage(playerid,RED,"Job refused.");
  1272.             TextDrawHideForPlayer(playerid,Textdraw10);
  1273.             TextDrawHideForPlayer(playerid,Textdraw11);
  1274.             TextDrawHideForPlayer(playerid,Textdraw12);
  1275.             TextDrawHideForPlayer(playerid,Textdraw13);
  1276.             TextDrawHideForPlayer(playerid,Textdraw14);
  1277.             TextDrawHideForPlayer(playerid,Textdraw15);
  1278.             TextDrawHideForPlayer(playerid,Textdraw17);
  1279.             TalkingToDaryll[playerid]=0;
  1280.             TogglePlayerControllable(playerid, 1);
  1281.             SetCameraBehindPlayer(playerid);
  1282.             SetPlayerPos(playerid,pX[playerid],pY[playerid],pZ[playerid]);
  1283.             SStats(playerid);
  1284.         }
  1285.         if(TalkingToDaryll3[playerid]==1)
  1286.         {
  1287.             SendClientMessage(playerid,RED,"Resigned from woodcutting job.");
  1288.             TextDrawHideForPlayer(playerid,Textdraw20);
  1289.             TextDrawHideForPlayer(playerid,Textdraw21);
  1290.             TextDrawHideForPlayer(playerid,Textdraw22);
  1291.             TextDrawHideForPlayer(playerid,Textdraw23);
  1292.             TextDrawHideForPlayer(playerid,Textdraw27);
  1293.             TalkingToDaryll[playerid]=0;
  1294.             TalkingToDaryll2[playerid]=0;
  1295.             TalkingToDaryll3[playerid]=0;
  1296.             TogglePlayerControllable(playerid, 1);
  1297.             SetCameraBehindPlayer(playerid);
  1298.             SetPlayerPos(playerid,pX[playerid],pY[playerid],pZ[playerid]);
  1299.             SStats(playerid);
  1300.         }
  1301.     }
  1302.     if(newkeys & KEY_FIRE)
  1303.     {
  1304.         if(GetPlayerWeapon(playerid) == 9)
  1305.         {
  1306.         for(new i = 0; i < sizeof(TreeInfo); i++)
  1307.         {
  1308.             if (IsPlayerInRangeOfPoint(playerid, 5.0,TreeInfo[i][TreePosX],TreeInfo[i][TreePosY],TreeInfo[i][TreePosZ]))
  1309.             {
  1310.                 if(GetPlayerVirtualWorld(playerid) == TreeInfo[i][TreeVWorld] && GetPlayerInterior(playerid) == TreeInfo[i][TreeInterior])
  1311.                 {
  1312.                     if(TreeInfo[i][Toggled] == 0)
  1313.                     {
  1314.                             if(PlayerInfo[playerid][WoodcuttingDuty2] == 0) return ShowPlayerDialog(playerid, DIALOG_NONE, DIALOG_STYLE_MSGBOX, "WoodCutting", "You are not on woodcutting duty", "OK", "");
  1315.                             if(gettime() - Temp[playerid] < 3)  return ShowPlayerDialog(playerid, DIALOG_NONE, DIALOG_STYLE_MSGBOX, "WoodCutting", "You should rest a few seconds", "OK", "");
  1316.                             if(Inventory[playerid][InvSlots] > 19) return SendClientMessage(playerid,RED,"Your inventory is full.");
  1317.                             Temp[playerid] = gettime();
  1318.                             CuttingTree[playerid] += 1;
  1319.                             SStats(playerid);
  1320.                             if(PlayerSkills[playerid][WoodCuttingLevel] == 0)
  1321.                             {
  1322.                                 if(CuttingTree[playerid] > 3)
  1323.                                 {
  1324.                                     SendClientMessage(playerid, GREEN, "Congratulations! You've cut down a tree from your surroundings.");
  1325.                                     TreeInfo[i][Toggled] = 1;
  1326.                                     Delete3DTextLabel(Label3[i]);
  1327.                                     DestroyDynamicObject(Tree[i]);
  1328.                                     Inventory[playerid][InvSlots] += 1;
  1329.                                     Inventory[playerid][InvLogs] += 1;
  1330.                                     PlayerSkills[playerid][WoodCuttingXP] += 7;
  1331.                                     WoodCuttingTraining(playerid);
  1332.                                     CuttingTree[playerid] = 0;
  1333.                                     SendClientMessage(playerid,YELLOW,"You have gained some XP and some logs.");
  1334.                                 }
  1335.                                 else
  1336.                                 {
  1337.                                     SendClientMessage(playerid, RED, "You failed to cut down a tree from your surroundings.");
  1338.                                 }
  1339.                             }
  1340.                             if(PlayerSkills[playerid][WoodCuttingLevel] == 1)
  1341.                             {
  1342.                                 if(CuttingTree[playerid] > 3)
  1343.                                 {
  1344.                                     SendClientMessage(playerid, GREEN, "Congratulations! You've cut down a tree from your surroundings.");
  1345.                                     TreeInfo[i][Toggled] = 1;
  1346.                                     Delete3DTextLabel(Label3[i]);
  1347.                                     DestroyDynamicObject(Tree[i]);
  1348.                                     Inventory[playerid][InvSlots] += 1;
  1349.                                     Inventory[playerid][InvLogs] += 1;
  1350.                                     PlayerSkills[playerid][WoodCuttingXP] += 7;
  1351.                                     WoodCuttingTraining(playerid);
  1352.                                     CuttingTree[playerid] = 0;
  1353.                                     SendClientMessage(playerid,YELLOW,"You have gained some XP and some logs.");
  1354.                                 }
  1355.                                 else
  1356.                                 {
  1357.                                     SendClientMessage(playerid, RED, "You failed to cut down a tree from your surroundings.");
  1358.                                 }
  1359.                             }
  1360.                             if(PlayerSkills[playerid][WoodCuttingLevel] == 2)
  1361.                             {
  1362.                                 if(CuttingTree[playerid] > 3)
  1363.                                 {
  1364.                                     SendClientMessage(playerid, GREEN, "Congratulations! You've cut down a tree from your surroundings.");
  1365.                                     TreeInfo[i][Toggled] = 1;
  1366.                                     Delete3DTextLabel(Label3[i]);
  1367.                                     DestroyDynamicObject(Tree[i]);
  1368.                                     Inventory[playerid][InvSlots] += 1;
  1369.                                     Inventory[playerid][InvLogs] += 1;
  1370.                                     PlayerSkills[playerid][WoodCuttingXP] += 7;
  1371.                                     WoodCuttingTraining(playerid);
  1372.                                     CuttingTree[playerid] = 0;
  1373.                                     SendClientMessage(playerid,YELLOW,"You have gained some XP and some logs.");
  1374.                                 }
  1375.                                 else
  1376.                                 {
  1377.                                     SendClientMessage(playerid, RED, "You failed to cut down a tree from your surroundings.");
  1378.                                 }
  1379.                             }
  1380.                             if(PlayerSkills[playerid][WoodCuttingLevel] == 3)
  1381.                             {
  1382.                                 if(CuttingTree[playerid] > 3)
  1383.                                 {
  1384.                                     SendClientMessage(playerid, GREEN, "Congratulations! You've cut down a tree from your surroundings.");
  1385.                                     TreeInfo[i][Toggled] = 1;
  1386.                                     Delete3DTextLabel(Label3[i]);
  1387.                                     DestroyDynamicObject(Tree[i]);
  1388.                                     Inventory[playerid][InvSlots] += 1;
  1389.                                     Inventory[playerid][InvLogs] += 1;
  1390.                                     PlayerSkills[playerid][WoodCuttingXP] += 7;
  1391.                                     WoodCuttingTraining(playerid);
  1392.                                     CuttingTree[playerid] = 0;
  1393.                                     SendClientMessage(playerid,YELLOW,"You have gained some XP and some logs.");
  1394.                                 }
  1395.                                 else
  1396.                                 {
  1397.                                     SendClientMessage(playerid, RED, "You failed to cut down a tree from your surroundings.");
  1398.                                 }
  1399.                             }
  1400.                             if(PlayerSkills[playerid][WoodCuttingLevel] == 4)
  1401.                             {
  1402.                                 if(CuttingTree[playerid] > 3)
  1403.                                 {
  1404.                                     SendClientMessage(playerid, GREEN, "Congratulations! You've cut down a tree from your surroundings.");
  1405.                                     TreeInfo[i][Toggled] = 1;
  1406.                                     Delete3DTextLabel(Label3[i]);
  1407.                                     DestroyDynamicObject(Tree[i]);
  1408.                                     Inventory[playerid][InvSlots] += 1;
  1409.                                     Inventory[playerid][InvLogs] += 1;
  1410.                                     PlayerSkills[playerid][WoodCuttingXP] += 7;
  1411.                                     WoodCuttingTraining(playerid);
  1412.                                     CuttingTree[playerid] = 0;
  1413.                                     SendClientMessage(playerid,YELLOW,"You have gained some XP and some logs.");
  1414.                                 }
  1415.                                 else
  1416.                                 {
  1417.                                     SendClientMessage(playerid, RED, "You failed to cut down a tree from your surroundings.");
  1418.                                 }
  1419.                             }
  1420.                             if(PlayerSkills[playerid][WoodCuttingLevel] == 5)
  1421.                             {
  1422.                                 if(CuttingTree[playerid] > 3)
  1423.                                 {
  1424.                                     SendClientMessage(playerid, GREEN, "Congratulations! You've cut down a tree from your surroundings.");
  1425.                                     TreeInfo[i][Toggled] = 1;
  1426.                                     Delete3DTextLabel(Label3[i]);
  1427.                                     DestroyDynamicObject(Tree[i]);
  1428.                                     Inventory[playerid][InvSlots] += 1;
  1429.                                     Inventory[playerid][InvLogs] += 1;
  1430.                                     PlayerSkills[playerid][WoodCuttingXP] += 7;
  1431.                                     WoodCuttingTraining(playerid);
  1432.                                     CuttingTree[playerid] = 0;
  1433.                                     SendClientMessage(playerid,YELLOW,"You have gained some XP and some logs.");
  1434.                                 }
  1435.                                 else
  1436.                                 {
  1437.                                     SendClientMessage(playerid, RED, "You failed to cut down a tree from your surroundings.");
  1438.                                 }
  1439.                             }
  1440.                             if(PlayerSkills[playerid][WoodCuttingLevel] == 6)
  1441.                             {
  1442.                                 if(CuttingTree[playerid] > 3)
  1443.                                 {
  1444.                                     SendClientMessage(playerid, GREEN, "Congratulations! You've cut down a tree from your surroundings.");
  1445.                                     TreeInfo[i][Toggled] = 1;
  1446.                                     Delete3DTextLabel(Label3[i]);
  1447.                                     DestroyDynamicObject(Tree[i]);
  1448.                                     Inventory[playerid][InvSlots] += 1;
  1449.                                     Inventory[playerid][InvLogs] += 1;
  1450.                                     PlayerSkills[playerid][WoodCuttingXP] += 7;
  1451.                                     WoodCuttingTraining(playerid);
  1452.                                     CuttingTree[playerid] = 0;
  1453.                                     SendClientMessage(playerid,YELLOW,"You have gained some XP and some logs.");
  1454.                                 }
  1455.                                 else
  1456.                                 {
  1457.                                     SendClientMessage(playerid, RED, "You failed to cut down a tree from your surroundings.");
  1458.                                 }
  1459.                             }
  1460.                             if(PlayerSkills[playerid][WoodCuttingLevel] == 7)
  1461.                             {
  1462.                                 if(CuttingTree[playerid] > 2)
  1463.                                 {
  1464.                                     SendClientMessage(playerid, GREEN, "Congratulations! You've cut down a tree from your surroundings.");
  1465.                                     TreeInfo[i][Toggled] = 1;
  1466.                                     Delete3DTextLabel(Label3[i]);
  1467.                                     DestroyDynamicObject(Tree[i]);
  1468.                                     Inventory[playerid][InvSlots] += 1;
  1469.                                     Inventory[playerid][InvLogs] += 1;
  1470.                                     PlayerSkills[playerid][WoodCuttingXP] += 7;
  1471.                                     WoodCuttingTraining(playerid);
  1472.                                     CuttingTree[playerid] = 0;
  1473.                                     SendClientMessage(playerid,YELLOW,"You have gained some XP and some logs.");
  1474.                                 }
  1475.                                 else
  1476.                                 {
  1477.                                     SendClientMessage(playerid, RED, "You failed to cut down a tree from your surroundings.");
  1478.                                 }
  1479.                             }
  1480.                             if(PlayerSkills[playerid][WoodCuttingLevel] == 8)
  1481.                             {
  1482.                                 if(CuttingTree[playerid] > 2)
  1483.                                 {
  1484.                                     SendClientMessage(playerid, GREEN, "Congratulations! You've cut down a tree from your surroundings.");
  1485.                                     TreeInfo[i][Toggled] = 1;
  1486.                                     Delete3DTextLabel(Label3[i]);
  1487.                                     DestroyDynamicObject(Tree[i]);
  1488.                                     Inventory[playerid][InvSlots] += 1;
  1489.                                     Inventory[playerid][InvLogs] += 1;
  1490.                                     PlayerSkills[playerid][WoodCuttingXP] += 7;
  1491.                                     WoodCuttingTraining(playerid);
  1492.                                     CuttingTree[playerid] = 0;
  1493.                                     SendClientMessage(playerid,YELLOW,"You have gained some XP and some logs.");
  1494.                                 }
  1495.                                 else
  1496.                                 {
  1497.                                     SendClientMessage(playerid, RED, "You failed to cut down a tree from your surroundings.");
  1498.                                 }
  1499.                             }
  1500.                             if(PlayerSkills[playerid][WoodCuttingLevel] == 9)
  1501.                             {
  1502.                                 if(CuttingTree[playerid] > 1)
  1503.                                 {
  1504.                                     SendClientMessage(playerid, GREEN, "Congratulations! You've cut down a tree from your surroundings.");
  1505.                                     TreeInfo[i][Toggled] = 1;
  1506.                                     Delete3DTextLabel(Label3[i]);
  1507.                                     DestroyDynamicObject(Tree[i]);
  1508.                                     Inventory[playerid][InvSlots] += 1;
  1509.                                     Inventory[playerid][InvLogs] += 1;
  1510.                                     PlayerSkills[playerid][WoodCuttingXP] += 7;
  1511.                                     WoodCuttingTraining(playerid);
  1512.                                     CuttingTree[playerid] = 0;
  1513.                                     SendClientMessage(playerid,YELLOW,"You have gained some XP and some logs.");
  1514.                                 }
  1515.                                 else
  1516.                                 {
  1517.                                     SendClientMessage(playerid, RED, "You failed to cut down a tree from your surroundings.");
  1518.                                 }
  1519.                             }
  1520.                             if(PlayerSkills[playerid][WoodCuttingLevel] == 10)
  1521.                             {
  1522.                                     SendClientMessage(playerid, GREEN, "Congratulations! You've cut down a tree from your surroundings.");
  1523.                                     TreeInfo[i][Toggled] = 1;
  1524.                                     Delete3DTextLabel(Label3[i]);
  1525.                                     DestroyDynamicObject(Tree[i]);
  1526.                                     Inventory[playerid][InvSlots] += 1;
  1527.                                     Inventory[playerid][InvLogs] += 1;
  1528.                                     PlayerSkills[playerid][WoodCuttingXP] += 7;
  1529.                                     WoodCuttingTraining(playerid);
  1530.                                     CuttingTree[playerid] = 0;
  1531.                                     SendClientMessage(playerid,YELLOW,"You have gained some XP and some logs.");
  1532.                             }
  1533.                             return 1;
  1534.                     }
  1535.                 }else return 0;
  1536.             }
  1537.         }
  1538.         }
  1539.     }
  1540.     return 1;
  1541. }
  1542.  
  1543. //==============================================================================
  1544. CMD:gotowoodcutting(playerid,params[])
  1545. {
  1546.     SetPlayerPos(playerid,-1964.5818,-2448.0806,30.6250);
  1547.     return 1;
  1548. }
  1549. //==============================================================================
  1550. CMD:respawntrees(playerid,params[])
  1551. {
  1552.     if(gettime() - Temp[playerid] < 30)  return ShowPlayerDialog(playerid, DIALOG_NONE, DIALOG_STYLE_MSGBOX, "WoodCutting", "No need to respawn the trees now.", "OK", "");Temp[playerid] = gettime();
  1553.     CreateTree(-1975.4630, -2465.3850, 29.7474, 0, 0, 700);
  1554.     CreateTree(-1967.4128, -2465.3850, 29.7474, 0, 0, 700);
  1555.     CreateTree(-1953.6922, -2476.2167, 29.7474, 0, 0, 700);
  1556.     CreateTree(-1953.6922, -2481.9753, 29.7474, 0, 0, 700);
  1557.     CreateTree(-1983.9721, -2472.5239, 29.7474, 0, 0, 700);
  1558.     CreateTree(-1970.9918, -2487.8649, 29.7474, 0, 0, 700);
  1559.     CreateTree(-1962.6715, -2481.6245, 29.7474, 0, 0, 700);
  1560.     CreateTree(-1943.5307, -2474.3339, 29.7474, 0, 0, 700);
  1561.     CreateTree(-1943.5307, -2474.3339, 29.7474, 0, 0, 700);
  1562.     CreateTree(-1931.7911, -2474.3339, 30.3174, 0, 0, 700);
  1563.     CreateTree(-1931.7911, -2507.0161, 32.1674, 0, 0, 700);
  1564.     CreateTree(-1955.0915, -2503.2363, 33.5775, 0, 0, 700);
  1565.     CreateTree(-1955.0915, -2514.8686, 36.1375, 0, 0, 700);
  1566.     CreateTree(-1948.2414, -2526.0559, 38.0774, 0, 0, 700);
  1567.     CreateTree(-1925.5108, -2526.0559, 35.2475, 0, 0, 700);
  1568.     CreateTree(-1906.2713, -2507.0161, 34.0074, 0, 0, 700);
  1569.     CreateTree(-1906.2713, -2438.6323, 30.1474, 0, 0, 700);
  1570.     CreateTree(-1998.3739, -2475.0439, 29.6674, 0, 0, 700);
  1571.     CreateTree(-1995.9614, -2456.0026, 29.7474, 0, 0, 700);
  1572.     CreateTree(-2014.7331, -2477.9643, 29.7474, 0, 0, 700);
  1573.     CreateTree(-2014.7331, -2459.2055, 29.9375, 0, 0, 700);
  1574.     CreateTree(-2027.5633, -2444.0854, 29.9375, 0, 0, 700);
  1575.     CreateTree(-2011.6031, -2430.1052, 29.9375, 0, 0, 700);
  1576.     CreateTree(-2048.1035, -2417.6447, 29.9375, 0, 0, 700);
  1577.     CreateTree(-2031.7934, -2423.8945, 29.9375, 0, 0, 700);
  1578.     CreateTree(-2031.7934, -2411.2148, 29.9375, 0, 0, 700);
  1579.     CreateTree(-2050.2636, -2397.1950, 29.6275, 0, 0, 700);
  1580.     CreateTree(-2068.4438, -2381.4633, 29.6275, 0, 0, 700);
  1581.     CreateTree(-1968.1745, -2381.4633, 29.1774, 0, 0, 700);
  1582.     CreateTree(-1949.8138, -2381.4633, 29.1175, 0, 0, 700);
  1583.     CreateTree(-1947.6933, -2354.0830, 31.2374, 0, 0, 700);
  1584.     CreateTree(-1968.5234, -2347.9020, 31.4575, 0, 0, 700);
  1585.     CreateTree(-1953.8327, -2321.7817, 36.8474, 0, 0, 700);
  1586.     CreateTree(-1979.1234, -2314.7114, 35.9075, 0, 0, 700);
  1587.     CreateTree(-1965.9925, -2291.7319, 40.2374, 0, 0, 700);
  1588.     CreateTree(-1993.7232, -2291.7319, 35.5675, 0, 0, 700);
  1589.     CreateTree(-1993.7232, -2269.6010, 41.3375, 0, 0, 700);
  1590.     CreateTree(-2017.0229, -2269.6010, 34.6775, 0, 0, 700);
  1591.     CreateTree(-2017.0229, -2297.6816, 33.4075, 0, 0, 700);
  1592.     return 1;
  1593. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement