Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <zcmd>
- #include <streamer>
- #include <a_actor>
- #include <dini>
- //==============================================================================
- #define MAX_CREATE_TREES 1000
- #define MAX_DROP_ITEMS 1000
- #define GREEN 0x80C837FF
- #define COLOR_RED 0xFF0000AA
- #define RED 0xFF0000FF
- #define ORANGE 0xFF8000FF
- #define COLOR_YELLOW 0xFFFF00AA
- #define COLOR_LIGHTBLUE 0x33CCFFAA
- #define COLOR_GREY 0xAFAFAFAA
- #define YELLOW 0xFFFF00FF
- #define DIALOGWOODSELL 5050
- #define DIALOGSKILLS 5040
- #define DIALOGINV 5060
- //==============================================================================
- enum TreeData
- {
- Float:TreePosX,
- Float:TreePosY,
- Float:TreePosZ,
- TreeVWorld,
- TreeInterior,
- TreeModelID,
- Toggled,
- };
- //==============================================================================
- enum pInv
- {
- MaxItems = 100,
- InvLogs[MaxItems],
- InvSlots[MaxItems],
- };
- //==============================================================================
- enum pSkills
- {
- MaxLevel = 10,
- WoodCuttingLevel[MaxLevel],
- WoodCuttingXP,
- };
- //==============================================================================
- enum pInfo
- {
- WoodcuttingDuty2,
- };
- //==============================================================================
- enum
- {
- DIALOG_NONE=12345,
- DIALOG_ERROR=12346,
- DIALOG_VEHICLE=500,
- DIALOG_VEHICLE_BUY,
- DIALOG_VEHICLE_SELL,
- DIALOG_FINDVEHICLE,
- DIALOG_TRUNK,
- DIALOG_TRUNK_ACTION,
- DIALOG_VEHICLE_PLATE,
- DIALOG_FUEL,
- DIALOG_EDITVEHICLE
- };
- //==============================================================================
- new Temp[MAX_PLAYERS] = 0;
- new WoodcuttingDuty;
- new Oldskin[MAX_PLAYERS];
- new IsLogged[MAX_PLAYERS];
- new Died[MAX_PLAYERS];
- new TalkingToDaryll[MAX_PLAYERS];
- new TalkingToDaryll2[MAX_PLAYERS];
- new TalkingToDaryll3[MAX_PLAYERS];
- new PlayerSkills[MAX_PLAYERS][pSkills];
- new PlayerInfo[MAX_PLAYERS][pInfo];
- new Inventory[MAX_PLAYERS][pInv];
- new WoodcuttingActor1;
- new WoodcuttingActor2;
- new WoodcuttingActor3;
- new WoodcuttingActor4;
- new TreeInfo[MAX_DROP_ITEMS][TreeData];
- new Text3D:Label3[MAX_CREATE_TREES];
- new CuttingTree[MAX_PLAYERS];
- new Tree[MAX_CREATE_TREES];
- new Text:Textdraw10;
- new Text:Textdraw11;
- new Text:Textdraw12;
- new Text:Textdraw13;
- new Text:Textdraw14;
- new Text:Textdraw15;
- new Text:Textdraw17;
- new Text:Textdraw20;
- new Text:Textdraw21;
- new Text:Textdraw22;
- new Text:Textdraw23;
- new Text:Textdraw27;
- new Float:pX[MAX_PLAYERS];
- new Float:pY[MAX_PLAYERS];
- new Float:pZ[MAX_PLAYERS];
- //==============================================================================
- public OnFilterScriptInit()
- {
- WoodcuttingDuty=CreateDynamicPickup(1314,1,-1965.3787,-2434.6853,34.0163,-1);
- WoodcuttingActor1 = CreateActor(27, -1968.8035,-2438.0771,30.6563, 0.0);
- ApplyActorAnimation(WoodcuttingActor1, "DEALER", "shop_pay", 4.1, 0, 0, 0, 0, 0);
- WoodcuttingActor2 = CreateActor(27, -1956.1770,-2443.1902,30.6250, 4.0);
- ApplyActorAnimation(WoodcuttingActor2, "DEALER", "shop_pay", 4.1, 0, 0, 0, 0, 0);
- WoodcuttingActor3 = CreateActor(27, -1961.7620,-2439.6802,30.6250, 18.0);
- ApplyActorAnimation(WoodcuttingActor3, "DEALER", "shop_pay", 4.1, 0, 0, 0, 0, 0);
- WoodcuttingActor4 = CreateActor(27, -1963.8519,-2433.9194,34.0163, 43.0);
- ApplyActorAnimation(WoodcuttingActor4, "DEALER", "shop_pay", 4.1, 0, 0, 0, 0, 0);
- Textdraw10 = TextDrawCreate(159.000000,313.000000," ");
- Textdraw11 = TextDrawCreate(166.000000,321.000000,"Daryll says: Hello there stranger!");
- Textdraw12 = TextDrawCreate(166.000000,336.000000,"Daryll says: I am the owner of this company, and it looks like you are");
- Textdraw13 = TextDrawCreate(166.000000,348.000000,"looking for a job.");
- Textdraw14 = TextDrawCreate(166.000000,361.000000,"Daryll says: Well, you've come to the right place to get a good paid job.");
- Textdraw15 = TextDrawCreate(166.000000,374.000000,"Daryll says: Go upstairs, get some working clothes, a helmet and chainsaw.");
- Textdraw17 = TextDrawCreate(167.000000,411.000000,"Press 'Y' to accept this job. Press 'N' to refuse the job");
- TextDrawUseBox(Textdraw10,1);
- TextDrawBoxColor(Textdraw10,0x00000099);
- TextDrawTextSize(Textdraw10,570.000000,21.000000);
- TextDrawAlignment(Textdraw10,0);
- TextDrawAlignment(Textdraw11,0);
- TextDrawAlignment(Textdraw12,0);
- TextDrawAlignment(Textdraw13,0);
- TextDrawAlignment(Textdraw14,0);
- TextDrawAlignment(Textdraw15,0);
- TextDrawAlignment(Textdraw17,0);
- TextDrawBackgroundColor(Textdraw10,0x000000ff);
- TextDrawBackgroundColor(Textdraw11,0x000000ff);
- TextDrawBackgroundColor(Textdraw12,0x000000ff);
- TextDrawBackgroundColor(Textdraw13,0x000000ff);
- TextDrawBackgroundColor(Textdraw14,0x000000ff);
- TextDrawBackgroundColor(Textdraw15,0x000000ff);
- TextDrawBackgroundColor(Textdraw17,0x000000ff);
- TextDrawFont(Textdraw10,1);
- TextDrawLetterSize(Textdraw10,13.500001,12.100000);
- TextDrawFont(Textdraw11,1);
- TextDrawLetterSize(Textdraw11,0.299999,1.300000);
- TextDrawFont(Textdraw12,1);
- TextDrawLetterSize(Textdraw12,0.299999,1.100000);
- TextDrawFont(Textdraw13,1);
- TextDrawLetterSize(Textdraw13,0.299999,1.200000);
- TextDrawFont(Textdraw14,1);
- TextDrawLetterSize(Textdraw14,0.299999,1.200000);
- TextDrawFont(Textdraw15,1);
- TextDrawLetterSize(Textdraw15,0.299999,1.100000);
- TextDrawFont(Textdraw17,1);
- TextDrawLetterSize(Textdraw17,0.399999,1.200000);
- TextDrawColor(Textdraw10,0xffffffff);
- TextDrawColor(Textdraw11,0xffffffff);
- TextDrawColor(Textdraw12,0xffffffff);
- TextDrawColor(Textdraw13,0xffffffff);
- TextDrawColor(Textdraw14,0xffffffff);
- TextDrawColor(Textdraw15,0xffffffff);
- TextDrawColor(Textdraw17,0xffffffff);
- TextDrawSetOutline(Textdraw11,1);
- TextDrawSetOutline(Textdraw12,1);
- TextDrawSetOutline(Textdraw13,1);
- TextDrawSetOutline(Textdraw14,1);
- TextDrawSetOutline(Textdraw15,1);
- TextDrawSetOutline(Textdraw17,1);
- TextDrawSetProportional(Textdraw10,1);
- TextDrawSetProportional(Textdraw11,1);
- TextDrawSetProportional(Textdraw12,1);
- TextDrawSetProportional(Textdraw13,1);
- TextDrawSetProportional(Textdraw14,1);
- TextDrawSetProportional(Textdraw15,1);
- TextDrawSetProportional(Textdraw17,1);
- TextDrawSetShadow(Textdraw10,7);
- TextDrawSetShadow(Textdraw11,7);
- TextDrawSetShadow(Textdraw12,1);
- TextDrawSetShadow(Textdraw13,1);
- TextDrawSetShadow(Textdraw14,1);
- TextDrawSetShadow(Textdraw15,1);
- TextDrawSetShadow(Textdraw17,1);
- Textdraw20 = TextDrawCreate(159.000000,313.000000," ");
- Textdraw21 = TextDrawCreate(166.000000,321.000000,"Darryl says: Hello there!");
- Textdraw22 = TextDrawCreate(166.000000,336.000000,"Darryl says: You can get on duty upstair to suitup and get a chainsaw");
- Textdraw23 = TextDrawCreate(166.000000,348.000000,"Darryl says: Don't tell me you wan't to resign from your job.");
- Textdraw27 = TextDrawCreate(167.000000,411.000000,"Press 'N' to resign from your job and 'H' to close this.");
- TextDrawUseBox(Textdraw20,1);
- TextDrawBoxColor(Textdraw20,0x00000099);
- TextDrawTextSize(Textdraw20,570.000000,21.000000);
- TextDrawAlignment(Textdraw20,0);
- TextDrawAlignment(Textdraw21,0);
- TextDrawAlignment(Textdraw22,0);
- TextDrawAlignment(Textdraw23,0);
- TextDrawAlignment(Textdraw27,0);
- TextDrawBackgroundColor(Textdraw20,0x000000ff);
- TextDrawBackgroundColor(Textdraw21,0x000000ff);
- TextDrawBackgroundColor(Textdraw22,0x000000ff);
- TextDrawBackgroundColor(Textdraw23,0x000000ff);
- TextDrawBackgroundColor(Textdraw27,0x000000ff);
- TextDrawFont(Textdraw20,1);
- TextDrawLetterSize(Textdraw20,13.500001,12.100000);
- TextDrawFont(Textdraw21,1);
- TextDrawLetterSize(Textdraw21,0.299999,1.300000);
- TextDrawFont(Textdraw12,1);
- TextDrawLetterSize(Textdraw22,0.299999,1.100000);
- TextDrawFont(Textdraw13,1);
- TextDrawLetterSize(Textdraw23,0.299999,1.200000);
- TextDrawFont(Textdraw17,1);
- TextDrawLetterSize(Textdraw27,0.399999,1.200000);
- TextDrawColor(Textdraw20,0xffffffff);
- TextDrawColor(Textdraw21,0xffffffff);
- TextDrawColor(Textdraw22,0xffffffff);
- TextDrawColor(Textdraw23,0xffffffff);
- TextDrawColor(Textdraw27,0xffffffff);
- TextDrawSetOutline(Textdraw21,1);
- TextDrawSetOutline(Textdraw22,1);
- TextDrawSetOutline(Textdraw23,1);
- TextDrawSetOutline(Textdraw27,1);
- TextDrawSetProportional(Textdraw20,1);
- TextDrawSetProportional(Textdraw21,1);
- TextDrawSetProportional(Textdraw22,1);
- TextDrawSetProportional(Textdraw23,1);
- TextDrawSetProportional(Textdraw27,1);
- TextDrawSetShadow(Textdraw20,7);
- TextDrawSetShadow(Textdraw21,7);
- TextDrawSetShadow(Textdraw22,1);
- TextDrawSetShadow(Textdraw23,1);
- TextDrawSetShadow(Textdraw27,1);
- //===================================Mapping===========================================
- new g_Object_Woodcutting[234];
- new g_Vehicle_Woodcutting[4];
- g_Object_Woodcutting[0] = CreateTree(-1975.4630, -2465.3850, 29.7474, 0, 0, 700);
- g_Object_Woodcutting[1] = CreateTree(-1967.4128, -2465.3850, 29.7474, 0, 0, 700);
- g_Object_Woodcutting[2] = CreateTree(-1953.6922, -2476.2167, 29.7474, 0, 0, 700);
- g_Object_Woodcutting[3] = CreateTree(-1953.6922, -2481.9753, 29.7474, 0, 0, 700);
- g_Object_Woodcutting[4] = CreateTree(-1983.9721, -2472.5239, 29.7474, 0, 0, 700);
- g_Object_Woodcutting[5] = CreateTree(-1970.9918, -2487.8649, 29.7474, 0, 0, 700);
- g_Object_Woodcutting[6] = CreateTree(-1962.6715, -2481.6245, 29.7474, 0, 0, 700);
- g_Object_Woodcutting[7] = CreateTree(-1943.5307, -2474.3339, 29.7474, 0, 0, 700);
- g_Object_Woodcutting[8] = CreateTree(-1943.5307, -2474.3339, 29.7474, 0, 0, 700);
- g_Object_Woodcutting[9] = CreateTree(-1931.7911, -2474.3339, 30.3174, 0, 0, 700);
- g_Object_Woodcutting[10] = CreateObject(19364, -1974.6407, -2435.0217, 31.2457, 0.0000, 0.0000, 45.3998); //wall012
- SetObjectMaterial(g_Object_Woodcutting[10], 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0xFFFFFFFF);
- g_Object_Woodcutting[11] = CreateTree(-1931.7911, -2507.0161, 32.1674, 0, 0, 700);
- g_Object_Woodcutting[12] = CreateTree(-1955.0915, -2503.2363, 33.5775, 0, 0, 700);
- g_Object_Woodcutting[13] = CreateTree(-1955.0915, -2514.8686, 36.1375, 0, 0, 700);
- g_Object_Woodcutting[14] = CreateTree(-1948.2414, -2526.0559, 38.0774, 0, 0, 700);
- g_Object_Woodcutting[15] = CreateTree(-1925.5108, -2526.0559, 35.2475, 0, 0, 700);
- g_Object_Woodcutting[16] = CreateTree(-1906.2713, -2507.0161, 34.0074, 0, 0, 700);
- g_Object_Woodcutting[17] = CreateTree(-1906.2713, -2438.6323, 30.1474, 0, 0, 700);
- g_Object_Woodcutting[18] = CreateTree(-1998.3739, -2475.0439, 29.6674, 0, 0, 700);
- g_Object_Woodcutting[19] = CreateTree(-1995.9614, -2456.0026, 29.7474, 0, 0, 700);
- g_Object_Woodcutting[20] = CreateTree(-2014.7331, -2477.9643, 29.7474, 0, 0, 700);
- g_Object_Woodcutting[21] = CreateTree(-2014.7331, -2459.2055, 29.9375, 0, 0, 700);
- g_Object_Woodcutting[22] = CreateTree(-2027.5633, -2444.0854, 29.9375, 0, 0, 700);
- g_Object_Woodcutting[23] = CreateTree(-2011.6031, -2430.1052, 29.9375, 0, 0, 700);
- g_Object_Woodcutting[24] = CreateTree(-2048.1035, -2417.6447, 29.9375, 0, 0, 700);
- g_Object_Woodcutting[25] = CreateTree(-2031.7934, -2423.8945, 29.9375, 0, 0, 700);
- g_Object_Woodcutting[26] = CreateTree(-2031.7934, -2411.2148, 29.9375, 0, 0, 700);
- g_Object_Woodcutting[27] = CreateTree(-2050.2636, -2397.1950, 29.6275, 0, 0, 700);
- g_Object_Woodcutting[28] = CreateTree(-2068.4438, -2381.4633, 29.6275, 0, 0, 700);
- g_Object_Woodcutting[29] = CreateTree(-1968.1745, -2381.4633, 29.1774, 0, 0, 700);
- g_Object_Woodcutting[30] = CreateTree(-1949.8138, -2381.4633, 29.1175, 0, 0, 700);
- g_Object_Woodcutting[31] = CreateTree(-1947.6933, -2354.0830, 31.2374, 0, 0, 700);
- g_Object_Woodcutting[32] = CreateTree(-1968.5234, -2347.9020, 31.4575, 0, 0, 700);
- g_Object_Woodcutting[33] = CreateTree(-1953.8327, -2321.7817, 36.8474, 0, 0, 700);
- g_Object_Woodcutting[34] = CreateTree(-1979.1234, -2314.7114, 35.9075, 0, 0, 700);
- g_Object_Woodcutting[35] = CreateTree(-1965.9925, -2291.7319, 40.2374, 0, 0, 700);
- g_Object_Woodcutting[36] = CreateTree(-1993.7232, -2291.7319, 35.5675, 0, 0, 700);
- g_Object_Woodcutting[37] = CreateTree(-1993.7232, -2269.6010, 41.3375, 0, 0, 700);
- g_Object_Woodcutting[38] = CreateTree(-2017.0229, -2269.6010, 34.6775, 0, 0, 700);
- g_Object_Woodcutting[39] = CreateTree(-2017.0229, -2297.6816, 33.4075, 0, 0, 700);
- g_Object_Woodcutting[40] = CreateObject(19412, -1970.0595, -2439.3354, 31.2271, 0.0000, 0.0000, -134.7999); //wall060
- SetObjectMaterial(g_Object_Woodcutting[40], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
- g_Object_Woodcutting[41] = CreateObject(19364, -1967.7912, -2439.4057, 31.2457, 0.0000, 0.0000, -44.4999); //wall012
- SetObjectMaterial(g_Object_Woodcutting[41], 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0xFFFFFFFF);
- g_Object_Woodcutting[42] = CreateObject(19360, -1964.0050, -2432.0085, 31.2450, 0.0000, 0.0000, 45.3998); //wall008
- SetObjectMaterial(g_Object_Woodcutting[42], 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0xFFFFFFFF);
- g_Object_Woodcutting[43] = CreateObject(19364, -1965.5141, -2430.3461, 31.2457, 0.0000, 0.0000, 45.3998); //wall012
- g_Object_Woodcutting[44] = CreateObject(19364, -1967.7995, -2428.0913, 31.2457, 0.0000, 0.0000, 45.3998); //wall012
- g_Object_Woodcutting[45] = CreateObject(19364, -1974.6230, -2432.6767, 31.2457, 0.0000, 0.0000, -44.4999); //wall012
- g_Object_Woodcutting[46] = CreateObject(19364, -1972.3944, -2430.4079, 31.2457, 0.0000, 0.0000, -44.4999); //wall012
- SetObjectMaterial(g_Object_Woodcutting[46], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
- g_Object_Woodcutting[47] = CreateObject(19364, -1970.1661, -2428.1401, 31.2457, 0.0000, 0.0000, -44.4999); //wall012
- g_Object_Woodcutting[48] = CreateObject(19360, -1974.4167, -2432.6796, 31.2250, 0.0000, 0.0000, -44.5000); //wall008
- SetObjectMaterial(g_Object_Woodcutting[48], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
- g_Object_Woodcutting[49] = CreateObject(19393, -1963.3221, -2434.8408, 31.2465, 0.0000, 0.0000, -44.5998); //wall041
- SetObjectMaterial(g_Object_Woodcutting[49], 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0xFFFFFFFF);
- g_Object_Woodcutting[50] = CreateObject(19412, -1965.6474, -2437.0039, 31.2271, 0.0000, 0.0000, -44.4999); //wall060
- SetObjectMaterial(g_Object_Woodcutting[50], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
- g_Object_Woodcutting[51] = CreateObject(19366, -1971.2185, -2435.9758, 31.2420, 0.0000, 0.0000, -44.4999); //wall014
- SetObjectMaterial(g_Object_Woodcutting[51], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
- g_Object_Woodcutting[52] = CreateObject(19360, -1967.5113, -2429.6540, 31.2250, 0.0000, 0.0000, -44.5000); //wall008
- g_Object_Woodcutting[53] = CreateObject(19360, -1967.7281, -2429.8740, 31.0049, 0.0000, 0.0000, -44.5000); //wall008
- g_Object_Woodcutting[54] = CreateObject(19360, -1967.9448, -2430.0935, 30.7849, 0.0000, 0.0000, -44.5000); //wall008
- g_Object_Woodcutting[55] = CreateObject(19360, -1968.1618, -2430.3137, 30.5650, 0.0000, 0.0000, -44.5000); //wall008
- g_Object_Woodcutting[56] = CreateObject(19360, -1968.3856, -2430.5405, 30.3449, 0.0000, 0.0000, -44.5000); //wall008
- g_Object_Woodcutting[57] = CreateObject(19360, -1968.6025, -2430.7612, 30.1350, 0.0000, 0.0000, -44.5000); //wall008
- g_Object_Woodcutting[58] = CreateObject(19360, -1968.8260, -2430.9885, 29.9050, 0.0000, 0.0000, -44.5000); //wall008
- g_Object_Woodcutting[59] = CreateObject(19360, -1969.0429, -2431.2094, 29.6849, 0.0000, 0.0000, -44.5000); //wall008
- g_Object_Woodcutting[60] = CreateObject(19360, -1969.2596, -2431.4294, 29.4750, 0.0000, 0.0000, -44.5000); //wall008
- g_Object_Woodcutting[61] = CreateObject(19360, -1969.4836, -2431.6567, 29.2350, 0.0000, 0.0000, -44.5000); //wall008
- g_Object_Woodcutting[62] = CreateObject(19360, -1969.7004, -2431.8769, 29.0249, 0.0000, 0.0000, -44.5000); //wall008
- g_Object_Woodcutting[63] = CreateObject(19360, -1969.9173, -2432.0971, 28.8150, 0.0000, 0.0000, -44.5000); //wall008
- g_Object_Woodcutting[64] = CreateObject(19360, -1970.1341, -2432.3171, 28.5849, 0.0000, 0.0000, -44.5000); //wall008
- g_Object_Woodcutting[65] = CreateObject(19360, -1970.3576, -2432.5441, 28.3850, 0.0000, 0.0000, -44.5000); //wall008
- g_Object_Woodcutting[66] = CreateObject(19360, -1970.5815, -2432.7717, 28.1550, 0.0000, 0.0000, -44.5000); //wall008
- g_Object_Woodcutting[67] = CreateObject(19360, -1970.7983, -2432.9914, 27.9349, 0.0000, 0.0000, -44.5000); //wall008
- g_Object_Woodcutting[68] = CreateObject(19366, -1964.4096, -2433.7783, 29.5704, 0.0000, -90.0000, 45.2999); //wall014
- g_Object_Woodcutting[69] = CreateObject(19366, -1966.8642, -2436.2565, 29.5704, 0.0000, -90.0000, 45.2999); //wall014
- g_Object_Woodcutting[70] = CreateObject(19366, -1968.8134, -2438.2219, 29.5704, 0.0000, -90.0000, 45.2999); //wall014
- g_Object_Woodcutting[71] = CreateObject(19366, -1970.5681, -2436.4838, 29.5704, 0.0000, -90.0000, 45.2999); //wall014
- g_Object_Woodcutting[72] = CreateObject(19366, -1968.1131, -2434.0056, 29.5704, 0.0000, -90.0000, 45.2999); //wall014
- g_Object_Woodcutting[73] = CreateObject(19366, -1966.2844, -2432.1608, 29.5704, 0.0000, -90.0000, 45.2999); //wall014
- g_Object_Woodcutting[74] = CreateObject(19366, -1972.6717, -2434.3906, 29.5704, 0.0000, -90.0000, 45.2999); //wall014
- g_Object_Woodcutting[75] = CreateObject(19366, -1970.2093, -2431.9045, 29.5704, 0.0000, -90.0000, 45.2999); //wall014
- g_Object_Woodcutting[76] = CreateObject(19366, -1967.7480, -2429.4194, 29.5704, 0.0000, -90.0000, 45.2999); //wall014
- g_Object_Woodcutting[77] = CreateObject(19366, -1973.3950, -2433.7165, 29.5704, 0.0000, -90.0000, 45.2999); //wall014
- g_Object_Woodcutting[78] = CreateObject(19360, -1965.7856, -2430.2561, 31.2450, 0.0000, 0.0000, 45.3998); //wall008
- SetObjectMaterial(g_Object_Woodcutting[78], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
- g_Object_Woodcutting[79] = CreateObject(19360, -1974.5091, -2432.7741, 34.7149, 0.0000, 0.0000, -44.5000); //wall008
- SetObjectMaterial(g_Object_Woodcutting[79], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
- g_Object_Woodcutting[80] = CreateObject(19360, -1963.3575, -2432.6516, 31.2450, 0.0000, 0.0000, 45.3998); //wall008
- SetObjectMaterial(g_Object_Woodcutting[80], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
- g_Object_Woodcutting[81] = CreateObject(19412, -1970.1690, -2439.4370, 31.2371, 0.0000, 0.0000, -134.8000); //wall060
- SetObjectMaterial(g_Object_Woodcutting[81], 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0xFFFFFFFF);
- g_Object_Woodcutting[82] = CreateObject(19360, -1972.2882, -2437.1289, 31.2450, 0.0000, 0.0000, 45.3998); //wall008
- SetObjectMaterial(g_Object_Woodcutting[82], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
- g_Object_Woodcutting[83] = CreateObject(19360, -1974.5666, -2434.8801, 31.2450, 0.0000, 0.0000, 45.3998); //wall008
- SetObjectMaterial(g_Object_Woodcutting[83], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
- g_Object_Woodcutting[84] = CreateObject(19360, -1971.7054, -2429.9233, 31.2250, 0.0000, 0.0000, -44.5000); //wall008
- SetObjectMaterial(g_Object_Woodcutting[84], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
- g_Object_Woodcutting[85] = CreateObject(19360, -1973.9555, -2432.2116, 31.2250, 0.0000, 0.0000, -44.5000); //wall008
- SetObjectMaterial(g_Object_Woodcutting[85], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
- g_Object_Woodcutting[86] = CreateObject(14877, -1970.1003, -2430.2863, 30.8925, 0.0000, 0.0000, 45.3998); //michelle-stairs
- SetObjectMaterial(g_Object_Woodcutting[86], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
- g_Object_Woodcutting[87] = CreateObject(19360, -1967.7933, -2439.1906, 31.2250, 0.0000, 0.0000, -44.5000); //wall008
- SetObjectMaterial(g_Object_Woodcutting[87], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
- g_Object_Woodcutting[88] = CreateObject(19386, -1963.4318, -2434.7529, 31.2367, 0.0000, 0.0000, -44.5000); //wall034
- SetObjectMaterial(g_Object_Woodcutting[88], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
- g_Object_Woodcutting[89] = CreateObject(19412, -1965.5480, -2437.1022, 31.2472, 0.0000, 0.0000, -44.4999); //wall060
- SetObjectMaterial(g_Object_Woodcutting[89], 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0xFFFFFFFF);
- g_Object_Woodcutting[90] = CreateObject(19412, -1969.5511, -2434.2858, 31.2271, 0.0000, 0.0000, -44.4999); //wall060
- SetObjectMaterial(g_Object_Woodcutting[90], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
- g_Object_Woodcutting[91] = CreateObject(19364, -1967.9167, -2439.5332, 31.2457, 0.0000, 0.0000, -44.4999); //wall012
- SetObjectMaterial(g_Object_Woodcutting[91], 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0xFFFFFFFF);
- g_Object_Woodcutting[92] = CreateObject(19366, -1968.4627, -2433.1721, 31.2420, 0.0000, 0.0000, -44.4999); //wall014
- SetObjectMaterial(g_Object_Woodcutting[92], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
- g_Object_Woodcutting[93] = CreateObject(19366, -1966.3059, -2433.1582, 31.2420, 0.0000, 0.0000, -134.4996); //wall014
- SetObjectMaterial(g_Object_Woodcutting[93], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
- g_Object_Woodcutting[94] = CreateObject(19466, -1970.2631, -2439.3107, 31.3913, 0.0000, 0.0000, 44.9000); //window001
- g_Object_Woodcutting[95] = CreateObject(19355, -1964.7397, -2433.6740, 32.9007, 0.0000, 89.9999, -44.5998); //wall003
- g_Object_Woodcutting[96] = CreateObject(19355, -1966.9809, -2435.9443, 32.9007, 0.0000, 89.9999, -44.5998); //wall003
- g_Object_Woodcutting[97] = CreateObject(19355, -1969.0224, -2438.0026, 32.9007, 0.0000, 89.9999, -44.5998); //wall003
- g_Object_Woodcutting[98] = CreateObject(19355, -1966.8431, -2431.5954, 32.9007, 0.0000, 89.9999, -44.5998); //wall003
- g_Object_Woodcutting[99] = CreateObject(19355, -1969.0837, -2433.8664, 32.9007, 0.0000, 89.9999, -44.5998); //wall003
- g_Object_Woodcutting[100] = CreateObject(19355, -1971.1440, -2435.9475, 32.9007, 0.0000, 89.9999, -44.5998); //wall003
- g_Object_Woodcutting[101] = CreateObject(19364, -1972.3548, -2437.2763, 31.2457, 0.0000, 0.0000, 45.3998); //wall012
- SetObjectMaterial(g_Object_Woodcutting[101], 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0xFFFFFFFF);
- g_Object_Woodcutting[102] = CreateObject(19466, -1965.6462, -2437.1413, 31.3713, 0.0000, 0.0000, 135.5001); //window001
- g_Object_Woodcutting[103] = CreateObject(19466, -1969.7763, -2434.5361, 31.3013, 0.0000, 0.0000, 135.5001); //window001
- g_Object_Woodcutting[104] = CreateObject(19364, -1963.2358, -2432.5932, 31.2457, 0.0000, 0.0000, 45.3998); //wall012
- SetObjectMaterial(g_Object_Woodcutting[104], 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0xFFFFFFFF);
- g_Object_Woodcutting[105] = CreateObject(19364, -1965.5964, -2437.1574, 34.7157, 0.0000, 0.0000, -44.4999); //wall012
- SetObjectMaterial(g_Object_Woodcutting[105], 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0xFFFFFFFF);
- g_Object_Woodcutting[106] = CreateObject(19412, -1967.8315, -2439.4223, 34.7371, 0.0000, 0.0000, -44.4999); //wall060
- SetObjectMaterial(g_Object_Woodcutting[106], 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0xFFFFFFFF);
- g_Object_Woodcutting[107] = CreateObject(19412, -1970.0911, -2439.5148, 34.7271, 0.0000, 0.0000, -134.8000); //wall060
- SetObjectMaterial(g_Object_Woodcutting[107], 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0xFFFFFFFF);
- g_Object_Woodcutting[108] = CreateObject(19412, -1972.3542, -2437.2661, 34.7271, 0.0000, 0.0000, -134.8000); //wall060
- SetObjectMaterial(g_Object_Woodcutting[108], 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0xFFFFFFFF);
- g_Object_Woodcutting[109] = CreateObject(19364, -1974.6407, -2435.0217, 34.7356, 0.0000, 0.0000, 45.3998); //wall012
- SetObjectMaterial(g_Object_Woodcutting[109], 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0xFFFFFFFF);
- g_Object_Woodcutting[110] = CreateObject(19412, -1963.2274, -2434.7375, 34.7371, 0.0000, 0.0000, -44.4999); //wall060
- SetObjectMaterial(g_Object_Woodcutting[110], 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0xFFFFFFFF);
- g_Object_Woodcutting[111] = CreateObject(19364, -1965.4079, -2436.9521, 34.7157, 0.0000, 0.0000, -44.4999); //wall012
- SetObjectMaterial(g_Object_Woodcutting[111], 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0xFFFFFFFF);
- g_Object_Woodcutting[112] = CreateObject(19412, -1963.2493, -2432.5861, 34.7271, 0.0000, 0.0000, -134.8000); //wall060
- SetObjectMaterial(g_Object_Woodcutting[112], 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0xFFFFFFFF);
- g_Object_Woodcutting[113] = CreateObject(19412, -1965.4923, -2430.3610, 34.7271, 0.0000, 0.0000, -134.8000); //wall060
- SetObjectMaterial(g_Object_Woodcutting[113], 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0xFFFFFFFF);
- g_Object_Woodcutting[114] = CreateObject(19364, -1974.5644, -2432.6865, 34.7257, 0.0000, 0.0000, -44.4999); //wall012
- SetObjectMaterial(g_Object_Woodcutting[114], 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0xFFFFFFFF);
- g_Object_Woodcutting[115] = CreateObject(19364, -1972.3215, -2430.4038, 34.7257, 0.0000, 0.0000, -44.4999); //wall012
- SetObjectMaterial(g_Object_Woodcutting[115], 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0xFFFFFFFF);
- g_Object_Woodcutting[116] = CreateObject(19364, -1970.8354, -2428.8896, 34.7257, 0.0000, 0.0000, -44.4999); //wall012
- SetObjectMaterial(g_Object_Woodcutting[116], 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0xFFFFFFFF);
- g_Object_Woodcutting[117] = CreateObject(19364, -1970.0014, -2428.0405, 34.7257, 0.0000, 0.0000, -44.4999); //wall012
- SetObjectMaterial(g_Object_Woodcutting[117], 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0xFFFFFFFF);
- g_Object_Woodcutting[118] = CreateObject(19364, -1967.7576, -2428.1176, 34.7256, 0.0000, 0.0000, 45.3998); //wall012
- SetObjectMaterial(g_Object_Woodcutting[118], 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0xFFFFFFFF);
- g_Object_Woodcutting[119] = CreateObject(19360, -1965.4797, -2430.5585, 31.2450, 0.0000, 0.0000, 45.3998); //wall008
- SetObjectMaterial(g_Object_Woodcutting[119], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
- g_Object_Woodcutting[120] = CreateObject(19466, -1967.8463, -2439.3781, 34.6513, 0.0000, 0.0000, 135.5001); //window001
- g_Object_Woodcutting[121] = CreateObject(19466, -1963.1436, -2434.5920, 34.6513, 0.0000, 0.0000, 135.5001); //window001
- g_Object_Woodcutting[122] = CreateObject(19466, -1970.0933, -2439.4807, 34.8613, 0.0000, 0.0000, 44.9000); //window001
- g_Object_Woodcutting[123] = CreateObject(19466, -1972.3027, -2437.2644, 34.8613, 0.0000, 0.0000, 44.9000); //window001
- g_Object_Woodcutting[124] = CreateObject(19466, -1965.4259, -2430.4084, 34.8613, 0.0000, 0.0000, 44.9000); //window001
- g_Object_Woodcutting[125] = CreateObject(19466, -1963.1671, -2432.6740, 34.8613, 0.0000, 0.0000, 44.9000); //window001
- g_Object_Woodcutting[126] = CreateObject(1491, -1963.8631, -2435.3637, 29.5065, 0.0000, 0.0000, 45.1000); //Gen_doorINT01
- SetObjectMaterial(g_Object_Woodcutting[126], 0, 3193, "cxref_desert", "sw_barnfence01", 0xFFFFFFFF);
- g_Object_Woodcutting[127] = CreateObject(19360, -1972.2666, -2430.4916, 34.7149, 0.0000, 0.0000, -44.5000); //wall008
- SetObjectMaterial(g_Object_Woodcutting[127], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
- g_Object_Woodcutting[128] = CreateObject(19360, -1970.0168, -2428.2016, 34.7149, 0.0000, 0.0000, -44.5000); //wall008
- SetObjectMaterial(g_Object_Woodcutting[128], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
- g_Object_Woodcutting[129] = CreateObject(19412, -1969.9887, -2439.4062, 34.7172, 0.0000, 0.0000, -134.7999); //wall060
- SetObjectMaterial(g_Object_Woodcutting[129], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
- g_Object_Woodcutting[130] = CreateObject(19412, -1972.2460, -2437.1667, 34.7072, 0.0000, 0.0000, -134.7999); //wall060
- SetObjectMaterial(g_Object_Woodcutting[130], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
- g_Object_Woodcutting[131] = CreateObject(19412, -1965.5725, -2430.4479, 34.7172, 0.0000, 0.0000, -134.7999); //wall060
- SetObjectMaterial(g_Object_Woodcutting[131], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
- g_Object_Woodcutting[132] = CreateObject(19412, -1963.3303, -2432.6738, 34.7172, 0.0000, 0.0000, -134.7999); //wall060
- SetObjectMaterial(g_Object_Woodcutting[132], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
- g_Object_Woodcutting[133] = CreateObject(19412, -1967.8728, -2439.3823, 34.7371, 0.0000, 0.0000, -44.4999); //wall060
- SetObjectMaterial(g_Object_Woodcutting[133], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
- g_Object_Woodcutting[134] = CreateObject(2001, -1969.0848, -2439.5764, 32.9977, 0.0000, 0.0000, 0.0000); //nu_plant_ofc
- g_Object_Woodcutting[135] = CreateObject(19412, -1963.2678, -2434.7111, 34.7371, 0.0000, 0.0000, -44.4999); //wall060
- SetObjectMaterial(g_Object_Woodcutting[135], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
- g_Object_Woodcutting[136] = CreateObject(19427, -1962.4927, -2438.5625, 29.5871, -0.0999, 90.0000, -104.0000); //wall067
- SetObjectMaterial(g_Object_Woodcutting[136], 0, 3897, "libertyhi", "concretebuild64", 0xFFFFFFFF);
- g_Object_Woodcutting[137] = CreateObject(19360, -1965.4710, -2436.9465, 34.7449, 0.0000, 0.0000, -44.5000); //wall008
- SetObjectMaterial(g_Object_Woodcutting[137], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
- g_Object_Woodcutting[138] = CreateObject(19360, -1966.1152, -2437.6025, 34.7449, 0.0000, 0.0000, -44.5000); //wall008
- SetObjectMaterial(g_Object_Woodcutting[138], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
- g_Object_Woodcutting[139] = CreateObject(19427, -1962.3786, -2436.2158, 29.5744, -0.2999, 90.2999, -57.3000); //wall067
- SetObjectMaterial(g_Object_Woodcutting[139], 0, 3897, "libertyhi", "concretebuild64", 0xFFFFFFFF);
- g_Object_Woodcutting[140] = CreateObject(19360, -1974.5240, -2434.9226, 34.7149, 0.0000, 0.0000, 45.3998); //wall008
- SetObjectMaterial(g_Object_Woodcutting[140], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
- g_Object_Woodcutting[141] = CreateObject(19427, -1963.3299, -2441.9201, 29.5871, -0.0999, 90.0000, -104.0000); //wall067
- SetObjectMaterial(g_Object_Woodcutting[141], 0, 3897, "libertyhi", "concretebuild64", 0xFFFFFFFF);
- g_Object_Woodcutting[142] = CreateObject(19360, -1967.7458, -2428.2924, 34.7149, 0.0000, 0.0000, 45.3998); //wall008
- SetObjectMaterial(g_Object_Woodcutting[142], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
- g_Object_Woodcutting[143] = CreateObject(19427, -1964.8450, -2444.2119, 29.6069, -0.2999, 90.0000, -142.9000); //wall067
- SetObjectMaterial(g_Object_Woodcutting[143], 0, 3897, "libertyhi", "concretebuild64", 0xFFFFFFFF);
- g_Object_Woodcutting[144] = CreateObject(19427, -1967.5974, -2445.3852, 29.6113, -0.2999, 90.0000, -171.3999); //wall067
- SetObjectMaterial(g_Object_Woodcutting[144], 0, 3897, "libertyhi", "concretebuild64", 0xFFFFFFFF);
- g_Object_Woodcutting[145] = CreateObject(19427, -1970.2515, -2444.7971, 29.6062, -0.2999, 90.0000, 146.6000); //wall067
- SetObjectMaterial(g_Object_Woodcutting[145], 0, 3897, "libertyhi", "concretebuild64", 0xFFFFFFFF);
- g_Object_Woodcutting[146] = CreateObject(19355, -1969.1199, -2438.3439, 36.5607, 0.0000, 89.9999, -44.5998); //wall003
- SetObjectMaterial(g_Object_Woodcutting[146], 0, 3881, "apsecurity_sfxrf", "ws_rooftarmac2", 0xFFFFFFFF);
- g_Object_Woodcutting[147] = CreateObject(14872, -1964.3249, -2438.5837, 29.9062, 0.0000, 0.0000, 0.0000); //Kylie_logs
- g_Object_Woodcutting[148] = CreateObject(18566, -1958.1168, -2440.8874, 29.9762, 0.0000, -0.6999, -44.2000); //Cs_Logs02
- g_Object_Woodcutting[149] = CreateObject(19355, -1964.4068, -2433.5688, 36.5607, 0.0000, 89.9999, -44.5998); //wall003
- SetObjectMaterial(g_Object_Woodcutting[149], 0, 3881, "apsecurity_sfxrf", "ws_rooftarmac2", 0xFFFFFFFF);
- g_Object_Woodcutting[150] = CreateObject(684, -1968.5705, -2441.7910, 30.1683, 0.5999, 0.0000, -107.2000); //sm_fir_log02
- g_Object_Woodcutting[151] = CreateObject(19355, -1966.6345, -2435.8234, 36.5607, 0.0000, 89.9999, -44.5998); //wall003
- SetObjectMaterial(g_Object_Woodcutting[151], 0, 3881, "apsecurity_sfxrf", "ws_rooftarmac2", 0xFFFFFFFF);
- g_Object_Woodcutting[152] = CreateObject(19355, -1968.5424, -2437.7631, 36.5607, 0.0000, 89.9999, -44.5998); //wall003
- SetObjectMaterial(g_Object_Woodcutting[152], 0, 3881, "apsecurity_sfxrf", "ws_rooftarmac2", 0xFFFFFFFF);
- g_Object_Woodcutting[153] = CreateObject(19355, -1971.5831, -2435.9113, 36.5607, 0.0000, 89.9999, -44.5998); //wall003
- SetObjectMaterial(g_Object_Woodcutting[153], 0, 3881, "apsecurity_sfxrf", "ws_rooftarmac2", 0xFFFFFFFF);
- g_Object_Woodcutting[154] = CreateObject(19355, -1973.5266, -2433.9899, 36.5607, 0.0000, 89.9999, -44.5998); //wall003
- SetObjectMaterial(g_Object_Woodcutting[154], 0, 3881, "apsecurity_sfxrf", "ws_rooftarmac2", 0xFFFFFFFF);
- g_Object_Woodcutting[155] = CreateObject(19427, -1962.5141, -2444.5202, 29.5710, 0.0000, 89.9999, -60.4000); //wall067
- SetObjectMaterial(g_Object_Woodcutting[155], 0, 3897, "libertyhi", "concretebuild64", 0xFFFFFFFF);
- g_Object_Woodcutting[156] = CreateObject(19364, -1974.6975, -2434.9650, 34.7356, 0.0000, 0.0000, 45.3998); //wall012
- SetObjectMaterial(g_Object_Woodcutting[156], 0, 10101, "2notherbuildsfe", "sl_vicbrikwall01", 0xFFFFFFFF);
- g_Object_Woodcutting[157] = CreateObject(19427, -1963.5214, -2445.1701, 29.5777, -0.2999, 90.1999, -26.6000); //wall067
- SetObjectMaterial(g_Object_Woodcutting[157], 0, 3897, "libertyhi", "concretebuild64", 0xFFFFFFFF);
- g_Object_Woodcutting[158] = CreateObject(19355, -1971.4381, -2431.8791, 36.5607, 0.0000, 89.9999, -44.5998); //wall003
- SetObjectMaterial(g_Object_Woodcutting[158], 0, 3881, "apsecurity_sfxrf", "ws_rooftarmac2", 0xFFFFFFFF);
- g_Object_Woodcutting[159] = CreateObject(19355, -1969.2818, -2429.6936, 36.5607, 0.0000, 89.9999, -44.5998); //wall003
- SetObjectMaterial(g_Object_Woodcutting[159], 0, 3881, "apsecurity_sfxrf", "ws_rooftarmac2", 0xFFFFFFFF);
- g_Object_Woodcutting[160] = CreateObject(19355, -1968.8095, -2429.2187, 36.5607, 0.0000, 89.9999, -44.5998); //wall003
- SetObjectMaterial(g_Object_Woodcutting[160], 0, 3881, "apsecurity_sfxrf", "ws_rooftarmac2", 0xFFFFFFFF);
- g_Object_Woodcutting[161] = CreateObject(19427, -1960.3918, -2446.7365, 29.5754, -0.2999, 90.1999, -26.6000); //wall067
- SetObjectMaterial(g_Object_Woodcutting[161], 0, 3897, "libertyhi", "concretebuild64", 0xFFFFFFFF);
- g_Object_Woodcutting[162] = CreateObject(19355, -1966.7449, -2431.2565, 36.5607, 0.0000, 89.9999, -44.5998); //wall003
- SetObjectMaterial(g_Object_Woodcutting[162], 0, 3881, "apsecurity_sfxrf", "ws_rooftarmac2", 0xFFFFFFFF);
- g_Object_Woodcutting[163] = CreateObject(19355, -1969.0633, -2433.6049, 36.5607, 0.0000, 89.9999, -44.5998); //wall003
- SetObjectMaterial(g_Object_Woodcutting[163], 0, 3881, "apsecurity_sfxrf", "ws_rooftarmac2", 0xFFFFFFFF);
- g_Object_Woodcutting[164] = CreateObject(19355, -1969.3807, -2433.9235, 36.5607, 0.0000, 89.9999, -44.5998); //wall003
- SetObjectMaterial(g_Object_Woodcutting[164], 0, 3881, "apsecurity_sfxrf", "ws_rooftarmac2", 0xFFFFFFFF);
- g_Object_Woodcutting[165] = CreateObject(19427, -1957.2805, -2448.2956, 29.5633, -0.2999, 90.1999, -26.6000); //wall067
- SetObjectMaterial(g_Object_Woodcutting[165], 0, 3897, "libertyhi", "concretebuild64", 0xFFFFFFFF);
- g_Object_Woodcutting[166] = CreateObject(19366, -1968.8061, -2438.2187, 32.9304, 0.0000, -90.0000, 45.2999); //wall014
- g_Object_Woodcutting[167] = CreateObject(19427, -1956.6796, -2448.5959, 29.5617, -0.2999, 90.1999, -26.1000); //wall067
- SetObjectMaterial(g_Object_Woodcutting[167], 0, 3897, "libertyhi", "concretebuild64", 0xFFFFFFFF);
- g_Object_Woodcutting[168] = CreateObject(19366, -1970.8829, -2436.1672, 32.9304, 0.0000, -90.0000, 45.2999); //wall014
- g_Object_Woodcutting[169] = CreateObject(19366, -1971.2230, -2435.8278, 32.9204, 0.0000, -90.0000, 45.2999); //wall014
- g_Object_Woodcutting[170] = CreateObject(19366, -1968.7873, -2433.3723, 32.9204, 0.0000, -90.0000, 45.2999); //wall014
- g_Object_Woodcutting[171] = CreateObject(19366, -1967.0294, -2431.5981, 32.9204, 0.0000, -90.0000, 45.2999); //wall014
- g_Object_Woodcutting[172] = CreateObject(1215, -1957.0529, -2447.1728, 29.9128, 0.0000, 0.0000, 0.0000); //bollardlight
- g_Object_Woodcutting[173] = CreateObject(19366, -1968.0633, -2428.5056, 32.9204, 0.0000, -90.0000, 45.2999); //wall014
- g_Object_Woodcutting[174] = CreateObject(1215, -1960.8831, -2445.4624, 29.9128, 0.0000, 0.0000, 0.0000); //bollardlight
- g_Object_Woodcutting[175] = CreateObject(1215, -1961.1932, -2437.8935, 29.9128, 0.0000, 0.0000, 0.0000); //bollardlight
- g_Object_Woodcutting[176] = CreateObject(1215, -1969.3833, -2446.5939, 29.9128, 0.0000, 0.0000, 0.0000); //bollardlight
- g_Object_Woodcutting[177] = CreateObject(1215, -1964.9735, -2445.6437, 29.9128, 0.0000, 0.0000, 0.0000); //bollardlight
- g_Object_Woodcutting[178] = CreateObject(19355, -1969.0224, -2438.0026, 32.9007, 0.0000, 89.9999, -44.5998); //wall003
- g_Object_Woodcutting[179] = CreateObject(19366, -1966.3660, -2435.7456, 32.9304, 0.0000, -90.0000, 45.2999); //wall014
- g_Object_Woodcutting[180] = CreateObject(1215, -1972.0235, -2444.8840, 29.9128, 0.0000, 0.0000, 0.0000); //bollardlight
- g_Object_Woodcutting[181] = CreateObject(19366, -1964.5792, -2433.9443, 32.9304, 0.0000, -90.0000, 45.2999); //wall014
- g_Object_Woodcutting[182] = CreateObject(19366, -1968.4764, -2433.7458, 32.9304, 0.0000, -90.0000, 45.2999); //wall014
- g_Object_Woodcutting[183] = CreateObject(19366, -1966.6549, -2431.9055, 32.9304, 0.0000, -90.0000, 45.2999); //wall014
- g_Object_Woodcutting[184] = CreateObject(2372, -1972.8142, -2435.8442, 32.8385, 0.0000, 0.0000, -44.4999); //CLOTHES_RAIL2
- g_Object_Woodcutting[185] = CreateObject(2372, -1969.3244, -2432.2937, 32.8385, 0.0000, 0.0000, -44.4999); //CLOTHES_RAIL2
- g_Object_Woodcutting[186] = CreateObject(2372, -1971.0544, -2434.0527, 32.8385, 0.0000, 0.0000, -44.4999); //CLOTHES_RAIL2
- g_Object_Woodcutting[187] = CreateObject(2372, -1970.1787, -2432.3818, 31.0643, 33.3999, -0.3999, -44.4999); //CLOTHES_RAIL2
- g_Object_Woodcutting[188] = CreateObject(2372, -1971.4663, -2433.6899, 29.8180, 36.0999, -0.3999, -44.4999); //CLOTHES_RAIL2
- g_Object_Woodcutting[189] = CreateObject(2047, -1971.4468, -2438.3125, 33.5140, 0.0000, 0.0000, -44.7000); //CJ_FLAG1
- SetObjectMaterial(g_Object_Woodcutting[189], 0, 17562, "coast_apts", "forlease_law", 0xFFFFFFFF);
- g_Object_Woodcutting[190] = CreateObject(2372, -1973.1917, -2432.0083, 29.8282, 33.3999, -0.3999, -44.4999); //CLOTHES_RAIL2
- g_Object_Woodcutting[191] = CreateObject(19360, -1967.9379, -2437.0927, 34.7149, 0.0000, 0.0000, 45.3998); //wall008
- SetObjectMaterial(g_Object_Woodcutting[191], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
- g_Object_Woodcutting[192] = CreateObject(2047, -1965.4241, -2437.1201, 33.5140, 0.0000, 0.0000, 45.0999); //CJ_FLAG1
- SetObjectMaterial(g_Object_Woodcutting[192], 0, 17562, "coast_apts", "forlease_law", 0xFFFFFFFF);
- g_Object_Woodcutting[193] = CreateObject(2372, -1971.9038, -2430.6994, 31.0393, 33.3999, -0.3999, -44.4999); //CLOTHES_RAIL2
- g_Object_Woodcutting[194] = CreateObject(19386, -1967.9617, -2434.9528, 34.7768, 0.0000, 0.0000, -44.5000); //wall034
- SetObjectMaterial(g_Object_Woodcutting[194], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
- g_Object_Woodcutting[195] = CreateObject(19360, -1965.6998, -2432.6425, 34.7449, 0.0000, 0.0000, -44.5000); //wall008
- SetObjectMaterial(g_Object_Woodcutting[195], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
- g_Object_Woodcutting[196] = CreateObject(19355, -1968.7537, -2433.2927, 36.5607, 0.0000, 89.9999, -44.5998); //wall003
- SetObjectMaterial(g_Object_Woodcutting[196], 0, 3881, "apsecurity_sfxrf", "ws_rooftarmac2", 0xFFFFFFFF);
- g_Object_Woodcutting[197] = CreateObject(19386, -1970.0708, -2437.0986, 34.7768, 0.0000, 0.0000, -44.5000); //wall034
- SetObjectMaterial(g_Object_Woodcutting[197], 0, 2755, "ab_dojowall", "mp_apt1_roomfloor", 0xFFFFFFFF);
- g_Object_Woodcutting[198] = CreateObject(2602, -1967.5815, -2438.1320, 33.5423, 0.0000, 0.0000, -43.9999); //Police_cell_Toilet
- g_Object_Woodcutting[199] = CreateObject(1208, -1970.5034, -2438.2148, 32.9957, 0.0000, 0.0000, -45.0000); //washer
- g_Object_Woodcutting[200] = CreateObject(1491, -1968.5153, -2435.4980, 33.0665, 0.0000, 0.0000, 45.1000); //Gen_doorINT01
- SetObjectMaterial(g_Object_Woodcutting[200], 0, 3193, "cxref_desert", "sw_barnfence01", 0xFFFFFFFF);
- g_Object_Woodcutting[201] = CreateObject(2525, -1968.7233, -2437.1738, 33.0146, 0.0000, 0.0000, -43.5999); //CJ_TOILET4
- g_Object_Woodcutting[202] = CreateObject(1491, -1970.6119, -2437.6008, 33.0665, 0.0000, 0.0000, 45.1000); //Gen_doorINT01
- SetObjectMaterial(g_Object_Woodcutting[202], 0, 3193, "cxref_desert", "sw_barnfence01", 0xFFFFFFFF);
- g_Object_Woodcutting[203] = CreateObject(2011, -1968.7795, -2427.8095, 33.0366, 0.0000, 0.0000, 0.0000); //nu_plant2_ofc
- g_Object_Woodcutting[204] = CreateObject(2011, -1965.2836, -2431.6413, 33.0366, 0.0000, 0.0000, -47.1999); //nu_plant2_ofc
- g_Object_Woodcutting[205] = CreateObject(2010, -1967.0959, -2429.4943, 33.0506, 0.0000, 0.0000, 0.0000); //nu_plant3_ofc
- g_Object_Woodcutting[206] = CreateObject(2010, -1968.2453, -2431.5444, 33.0506, 0.0000, 0.0000, 0.0000); //nu_plant3_ofc
- g_Object_Woodcutting[207] = CreateObject(2010, -1969.2525, -2432.5869, 33.0506, 0.0000, 0.0000, 46.0000); //nu_plant3_ofc
- g_Object_Woodcutting[208] = CreateObject(2010, -1970.8511, -2434.2387, 33.0506, 0.0000, 0.0000, 46.0000); //nu_plant3_ofc
- g_Object_Woodcutting[209] = CreateObject(2010, -1972.5119, -2435.9584, 33.0506, 0.0000, 0.0000, 46.0000); //nu_plant3_ofc
- g_Object_Woodcutting[210] = CreateObject(11729, -1964.6337, -2432.0798, 32.9845, 0.0000, 0.0000, 45.3999); //GymLockerClosed1
- g_Object_Woodcutting[211] = CreateObject(11729, -1965.1043, -2432.5566, 32.9845, 0.0000, 0.0000, 45.3999); //GymLockerClosed1
- g_Object_Woodcutting[212] = CreateObject(11729, -1965.5754, -2433.0319, 32.9845, 0.0000, 0.0000, 45.3999); //GymLockerClosed1
- g_Object_Woodcutting[213] = CreateObject(11729, -1966.0395, -2433.5004, 32.9845, 0.0000, 0.0000, 45.3999); //GymLockerClosed1
- g_Object_Woodcutting[214] = CreateObject(11729, -1966.4964, -2433.9619, 32.9845, 0.0000, 0.0000, 45.3999); //GymLockerClosed1
- g_Object_Woodcutting[215] = CreateObject(11729, -1966.9403, -2434.4086, 32.9845, 0.0000, 0.0000, 45.3999); //GymLockerClosed1
- g_Object_Woodcutting[216] = CreateObject(11729, -1966.7388, -2437.6813, 32.9845, 0.0000, 0.0000, -133.9999); //GymLockerClosed1
- g_Object_Woodcutting[217] = CreateObject(1998, -1971.5286, -2437.0822, 29.6522, 0.0000, 0.0000, -44.8000); //officedesk1l
- g_Object_Woodcutting[218] = CreateObject(11729, -1966.2736, -2437.1987, 32.9845, 0.0000, 0.0000, -133.9999); //GymLockerClosed1
- g_Object_Woodcutting[219] = CreateObject(11729, -1965.8218, -2436.7321, 32.9845, 0.0000, 0.0000, -133.9999); //GymLockerClosed1
- g_Object_Woodcutting[220] = CreateObject(11729, -1965.3770, -2436.2727, 32.9845, 0.0000, 0.0000, -133.9999); //GymLockerClosed1
- g_Object_Woodcutting[221] = CreateObject(11729, -1964.9256, -2435.8051, 32.9845, 0.0000, 0.0000, -133.9999); //GymLockerClosed1
- g_Object_Woodcutting[222] = CreateObject(11729, -1964.4598, -2435.3242, 32.9845, 0.0000, 0.0000, -133.9999); //GymLockerClosed1
- g_Object_Woodcutting[223] = CreateObject(1998, -1968.7211, -2435.6831, 29.6522, 0.0000, 0.0000, 134.7000); //officedesk1l
- g_Object_Woodcutting[224] = CreateObject(2162, -1967.0363, -2432.5717, 29.6345, 0.0000, 0.0000, -45.4999); //MED_OFFICE_UNIT_1
- g_Object_Woodcutting[225] = CreateObject(19173, -1967.7828, -2439.0612, 31.4275, 0.0000, 0.0000, 45.5000); //SAMPPicture2
- g_Object_Woodcutting[226] = CreateObject(2167, -1965.8095, -2433.8693, 29.6720, 0.0000, 0.0000, -47.3000); //MED_OFFICE_UNIT_7
- g_Object_Woodcutting[227] = CreateObject(2819, -1964.9758, -2433.6093, 33.0548, 0.0000, 0.0000, -44.2999); //gb_bedclothes01
- g_Object_Woodcutting[228] = CreateObject(2167, -1965.8095, -2433.8693, 31.1420, 0.0000, 0.0000, -47.3000); //MED_OFFICE_UNIT_7
- g_Object_Woodcutting[229] = CreateObject(1671, -1969.2082, -2434.5048, 30.2202, 0.0000, 0.0000, -13.1000); //swivelchair_A
- g_Object_Woodcutting[230] = CreateObject(948, -1968.9310, -2439.5122, 29.6255, 0.0000, 0.0000, -48.3000); //Plant_Pot_10
- g_Object_Woodcutting[231] = CreateObject(948, -1966.8945, -2437.6049, 29.6255, 0.0000, 0.0000, -43.6000); //Plant_Pot_10
- g_Object_Woodcutting[232] = CreateObject(1671, -1970.7286, -2437.8664, 30.2202, 0.0000, 0.0000, 146.7998); //swivelchair_A
- g_Object_Woodcutting[233] = CreateObject(19170, -1970.7266, -2435.6208, 31.7894, 89.9000, 0.0000, 46.4999); //GTASAMap7
- g_Vehicle_Woodcutting[0] = CreateVehicle(455, -1984.0598, -2432.1713, 31.0618, 181.1750, 174, 16, -1); //Flatbed
- g_Vehicle_Woodcutting[1] = CreateVehicle(554, -1979.9715, -2435.0617, 30.7164, 174.8892, 16, 174, -1); //Yosemite
- g_Vehicle_Woodcutting[2] = CreateVehicle(554, -1976.4658, -2437.5302, 30.7118, 175.2527, 16, 174, -1); //Yosemite
- g_Vehicle_Woodcutting[3] = CreateVehicle(471, -1973.3297, -2438.9379, 30.0970, 179.5702, 16, 174, -1); //Quad
- CreateDynamic3DTextLabel("Press H to interact",ORANGE,-1968.8035,-2438.0771,30.6563,12);
- }
- //==============================================================================
- public OnPlayerConnect(playerid)
- {
- LoadStats(playerid);
- return 1;
- }
- //==============================================================================
- public OnPlayerSpawn(playerid)
- {
- LoadStats(playerid);
- if(PlayerInfo[playerid][WoodcuttingDuty2] == 1)
- {
- Oldskin[playerid] = GetPlayerSkin(playerid);
- PlayerInfo[playerid][WoodcuttingDuty2] = 1;
- SetPlayerSkin(playerid, 27);
- GivePlayerWeapon(playerid,9,1);
- }
- return 1;
- }
- //==============================================================================
- stock LoadStats(playerid)
- {
- new file[64];
- format(file, sizeof(file), "Woodcutting/%s.ini", GetName(playerid));
- TalkingToDaryll2[playerid] = dini_Int(file,"TalkingToDaryll2");
- PlayerSkills[playerid][WoodCuttingLevel] = dini_Int(file,"WoodCuttingLevel");
- PlayerSkills[playerid][WoodCuttingXP] = dini_Int(file,"WoodCuttingXP");
- PlayerInfo[playerid][WoodcuttingDuty2] = dini_Int(file,"WoodCuttingDuty2");
- Inventory[playerid][InvSlots] = dini_Int(file,"InvSlots");
- Inventory[playerid][InvLogs] = dini_Int(file,"InvLogs");
- return 1;
- }
- //==============================================================================
- stock SStats(playerid)
- {
- if(IsPlayerConnectedEx(playerid))
- {
- new file[64];
- format(file, sizeof(file), "Woodcutting/%s.ini", GetName(playerid));
- if(!dini_Exists(file)) dini_Create(file);
- dini_IntSet(file, "TalkingToDaryll2",TalkingToDaryll2[playerid]);
- dini_IntSet(file, "WoodCuttingLevel",PlayerSkills[playerid][WoodCuttingLevel]);
- dini_IntSet(file, "WoodCuttingXP",PlayerSkills[playerid][WoodCuttingXP]);
- dini_IntSet(file, "WoodCuttingDuty2",PlayerInfo[playerid][WoodcuttingDuty2]);
- dini_IntSet(file, "InvSlots",Inventory[playerid][InvSlots]);
- dini_IntSet(file, "InvLogs",Inventory[playerid][InvLogs]);
- }
- return 1;
- }
- //==============================================================================
- stock GetName(playerid)
- {
- new name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, sizeof(name));
- return name;
- }
- //==============================================================================
- stock WoodCuttingTraining(playerid)
- {
- if(PlayerSkills[playerid][WoodCuttingLevel] == 0)
- {
- if(PlayerSkills[playerid][WoodCuttingXP] > 75)
- {
- SendClientMessage(playerid, GREEN, "Congratulations! You've just advanced a WoodCutting Level. Your Level is now level 1!");
- PlayerSkills[playerid][WoodCuttingLevel] += 1;
- }
- }
- if(PlayerSkills[playerid][WoodCuttingLevel] == 1)
- {
- if(PlayerSkills[playerid][WoodCuttingXP] > 200)
- {
- SendClientMessage(playerid, GREEN, "Congratulations! You've just advanced a WoodCutting Level. Your Level is now level 2!");
- PlayerSkills[playerid][WoodCuttingLevel] += 1;
- }
- }
- if(PlayerSkills[playerid][WoodCuttingLevel] == 2)
- {
- if(PlayerSkills[playerid][WoodCuttingXP] > 500)
- {
- SendClientMessage(playerid, GREEN, "Congratulations! You've just advanced a WoodCutting Level. Your Level is now level 3!");
- PlayerSkills[playerid][WoodCuttingLevel] += 1;
- }
- }
- if(PlayerSkills[playerid][WoodCuttingLevel] == 3)
- {
- if(PlayerSkills[playerid][WoodCuttingXP] > 1000)
- {
- SendClientMessage(playerid, GREEN, "Congratulations! You've just advanced a WoodCutting Level. Your Level is now level 4!");
- PlayerSkills[playerid][WoodCuttingLevel] += 1;
- }
- }
- if(PlayerSkills[playerid][WoodCuttingLevel] == 4)
- {
- if(PlayerSkills[playerid][WoodCuttingXP] > 1700)
- {
- SendClientMessage(playerid, GREEN, "Congratulations! You've just advanced a WoodCutting Level. Your Level is now level 5!");
- PlayerSkills[playerid][WoodCuttingLevel] += 1;
- }
- }
- if(PlayerSkills[playerid][WoodCuttingLevel] == 5)
- {
- if(PlayerSkills[playerid][WoodCuttingXP] > 2300)
- {
- SendClientMessage(playerid, GREEN, "Congratulations! You've just advanced a WoodCutting Level. Your Level is now level 6!");
- PlayerSkills[playerid][WoodCuttingLevel] += 1;
- }
- }
- if(PlayerSkills[playerid][WoodCuttingLevel] == 6)
- {
- if(PlayerSkills[playerid][WoodCuttingXP] > 3100)
- {
- SendClientMessage(playerid, GREEN, "Congratulations! You've just advanced a WoodCutting Level. Your Level is now level 7!");
- PlayerSkills[playerid][WoodCuttingLevel] += 1;
- }
- }
- if(PlayerSkills[playerid][WoodCuttingLevel] == 7)
- {
- if(PlayerSkills[playerid][WoodCuttingXP] > 3700)
- {
- SendClientMessage(playerid, GREEN, "Congratulations! You've just advanced a WoodCutting Level. Your Level is now level 8!");
- PlayerSkills[playerid][WoodCuttingLevel] += 1;
- }
- }
- if(PlayerSkills[playerid][WoodCuttingLevel] == 8)
- {
- if(PlayerSkills[playerid][WoodCuttingXP] > 4200)
- {
- SendClientMessage(playerid, GREEN, "Congratulations! You've just advanced a WoodCutting Level. Your Level is now level 9!");
- PlayerSkills[playerid][WoodCuttingLevel] += 1;
- }
- }
- if(PlayerSkills[playerid][WoodCuttingLevel] == 9)
- {
- if(PlayerSkills[playerid][WoodCuttingXP] > 5000)
- {
- SendClientMessage(playerid, GREEN, "Congratulations! You've just advanced a WoodCutting Level. Your Level is now level 10!");
- PlayerSkills[playerid][WoodCuttingLevel] += 1;
- }
- }
- }
- //==============================================================================
- stock IsPlayerConnectedEx(playerid)
- {
- if (IsPlayerConnected(playerid)&&IsLogged[playerid]==1&&Died[playerid]==0&&playerid!=INVALID_PLAYER_ID) return 1;
- return 0;
- }
- stock PlayerName(playerid)
- {
- new playername[24];
- GetPlayerName(playerid,playername,24);
- return playername;
- }
- //==============================================================================
- stock GetPlayerNameEx(playerid) {
- new
- sz_playerName[MAX_PLAYER_NAME],
- i_pos;
- GetPlayerName(playerid, sz_playerName, MAX_PLAYER_NAME);
- while ((i_pos = strfind(sz_playerName, "_", false, i_pos)) != -1) sz_playerName[i_pos] = ' ';
- return sz_playerName;
- }
- //==============================================================================
- stock CreateTree(Float:X, Float:Y, Float:Z, world,interior,modelid)
- {
- for(new i = 0; i < sizeof(TreeInfo); i++)
- {
- if(TreeInfo[i][TreePosX] == 0.0 && TreeInfo[i][TreePosY] == 0.0 && TreeInfo[i][TreePosZ] == 0.0)
- {
- TreeInfo[i][TreePosX] = X;
- TreeInfo[i][TreePosY] = Y;
- TreeInfo[i][TreePosZ] = Z;
- TreeInfo[i][TreeVWorld] = world;
- TreeInfo[i][TreeInterior] = interior;
- TreeInfo[i][TreeModelID] = modelid;
- Label3[i] = Create3DTextLabel("Tree (Use chainsaw)", ORANGE,X,Y,Z+2.0, 10.0,world, 0);
- Tree[i] = CreateDynamicObject(modelid, X, Y, Z,0,0,0, world);
- return 1;
- }
- }
- return 1;
- }
- //==============================================================================
- public OnDialogResponse(playerid,dialogid,response,listitem,inputtext[])
- {
- if(dialogid == DIALOGINV)
- {
- if(response)
- {
- if(listitem == 0)
- {
- ShowPlayerDialog(playerid, DIALOGINV+1, DIALOG_STYLE_LIST, "Server Menu", "Make your selection\n --------- \nInventory\nWoodcutting Skill", "Select", "Cancel");
- }
- }
- return 1;
- }
- if(dialogid == DIALOGINV+1)
- {
- if(response)
- {
- if(listitem == 0)
- {
- ShowPlayerDialog(playerid, DIALOGINV+1, DIALOG_STYLE_LIST, "Server Menu", "Make your selection\n --------- \nInventory\nWoodcutting Skill", "Select", "Cancel");
- }
- if(listitem == 1)
- {
- ShowPlayerDialog(playerid, DIALOGINV+1, DIALOG_STYLE_LIST, "Server Menu", "Make your selection\n --------- \nInventory\nWoodcutting Skill", "Select", "Cancel");
- }
- if(listitem == 2)
- {
- new string[256];
- new string2[200];
- format(string, sizeof(string), "Logs: [%d]\n",Inventory[playerid][InvLogs]);
- strcat(string2,string);
- ShowPlayerDialog(playerid, DIALOG_NONE, DIALOG_STYLE_MSGBOX, "WoodCutting", string2, "Ok", "");
- }
- if(listitem == 3)
- {
- new string[256];
- new string2[200];
- format(string, sizeof(string), "WoodCutting Level: [%d]\n",PlayerSkills[playerid][WoodCuttingLevel]);
- strcat(string2,string);
- if(PlayerSkills[playerid][WoodCuttingLevel] == 0)
- {
- format(string, sizeof(string), "WoodCutting XP: [%d/75]",PlayerSkills[playerid][WoodCuttingXP]);
- strcat(string2,string);
- }
- if(PlayerSkills[playerid][WoodCuttingLevel] == 1)
- {
- format(string, sizeof(string), "WoodCutting XP: [%d/200]",PlayerSkills[playerid][WoodCuttingXP]);
- strcat(string2,string);
- }
- if(PlayerSkills[playerid][WoodCuttingLevel] == 2)
- {
- format(string, sizeof(string), "WoodCutting XP: [%d/500]",PlayerSkills[playerid][WoodCuttingXP]);
- strcat(string2,string);
- }
- if(PlayerSkills[playerid][WoodCuttingLevel] == 3)
- {
- format(string, sizeof(string), "WoodCutting XP: [%d/1000]",PlayerSkills[playerid][WoodCuttingXP]);
- strcat(string2,string);
- }
- if(PlayerSkills[playerid][WoodCuttingLevel] == 4)
- {
- format(string, sizeof(string), "WoodCutting XP: [%d/1700]",PlayerSkills[playerid][WoodCuttingXP]);
- strcat(string2,string);
- }
- if(PlayerSkills[playerid][WoodCuttingLevel] == 5)
- {
- format(string, sizeof(string), "WoodCutting XP: [%d/2300]",PlayerSkills[playerid][WoodCuttingXP]);
- strcat(string2,string);
- }
- if(PlayerSkills[playerid][WoodCuttingLevel] == 6)
- {
- format(string, sizeof(string), "WoodCutting XP: [%d/3100]",PlayerSkills[playerid][WoodCuttingXP]);
- strcat(string2,string);
- }
- if(PlayerSkills[playerid][WoodCuttingLevel] == 7)
- {
- format(string, sizeof(string), "WoodCutting XP: [%d/3700]",PlayerSkills[playerid][WoodCuttingXP]);
- strcat(string2,string);
- }
- if(PlayerSkills[playerid][WoodCuttingLevel] == 8)
- {
- format(string, sizeof(string), "WoodCutting XP: [%d/4200]",PlayerSkills[playerid][WoodCuttingXP]);
- strcat(string2,string);
- }
- if(PlayerSkills[playerid][WoodCuttingLevel] == 9)
- {
- format(string, sizeof(string), "WoodCutting XP: [%d/5000]",PlayerSkills[playerid][WoodCuttingXP]);
- strcat(string2,string);
- }
- if(PlayerSkills[playerid][WoodCuttingLevel] == 10)
- {
- format(string, sizeof(string), "WoodCutting XP: [%d]",PlayerSkills[playerid][WoodCuttingXP]);
- format(string, sizeof(string), "You have reached the max level in woodcutting");
- strcat(string2,string);
- }
- ShowPlayerDialog(playerid, DIALOG_NONE, DIALOG_STYLE_MSGBOX, "WoodCutting", string2, "Ok", "");
- }
- }
- return 1;
- }
- if(dialogid == DIALOGWOODSELL)
- {
- if(response)
- {
- if(listitem == 0)
- {
- ShowPlayerDialog(playerid, DIALOGWOODSELL+1, DIALOG_STYLE_LIST, "Wood Company", "Make your selection\n --------- \nTalk to Daryll\nSell Wood\nWoodcutting Skill", "Select", "Cancel");
- }
- }
- return 1;
- }
- if(dialogid == DIALOGWOODSELL+1)
- {
- if(response)
- {
- if(listitem == 0)
- {
- ShowPlayerDialog(playerid, DIALOGWOODSELL+1, DIALOG_STYLE_LIST, "Wood Company", "Make your selection\n --------- \nTalk to Daryll\nSell Wood\nWoodcutting Skill", "Select", "Cancel");
- }
- if(listitem == 1)
- {
- ShowPlayerDialog(playerid, DIALOGWOODSELL+1, DIALOG_STYLE_LIST, "Wood Company", "Make your selection\n --------- \nTalk to Daryll\nSell Wood\nWoodcutting Skill", "Select", "Cancel");
- }
- if(listitem == 2)
- {
- if(TalkingToDaryll2[playerid]==0)
- {
- TextDrawShowForPlayer(playerid,Textdraw10);
- TextDrawShowForPlayer(playerid,Textdraw11);
- TextDrawShowForPlayer(playerid,Textdraw12);
- TextDrawShowForPlayer(playerid,Textdraw13);
- TextDrawShowForPlayer(playerid,Textdraw14);
- TextDrawShowForPlayer(playerid,Textdraw15);
- TextDrawShowForPlayer(playerid,Textdraw17);
- TalkingToDaryll[playerid]=1;
- TogglePlayerControllable(playerid, 0);
- GetPlayerPos(playerid,pX[playerid],pY[playerid],pZ[playerid]);
- SetPlayerCameraPos(playerid,-1970.3198,-2436.8523,31.4647);
- SetPlayerCameraLookAt(playerid,-1968.4719,-2437.4597,30.6563);
- }
- else
- {
- TextDrawShowForPlayer(playerid,Textdraw20);
- TextDrawShowForPlayer(playerid,Textdraw21);
- TextDrawShowForPlayer(playerid,Textdraw22);
- TextDrawShowForPlayer(playerid,Textdraw23);
- TextDrawShowForPlayer(playerid,Textdraw27);
- TalkingToDaryll3[playerid]=1;
- TogglePlayerControllable(playerid, 0);
- GetPlayerPos(playerid,pX[playerid],pY[playerid],pZ[playerid]);
- SetPlayerCameraPos(playerid,-1970.3198,-2436.8523,31.4647);
- SetPlayerCameraLookAt(playerid,-1968.4719,-2437.4597,30.6563);
- }
- }
- if(listitem == 3)
- {
- if(TalkingToDaryll2[playerid]==0) return SendClientMessage(playerid,YELLOW,"Talk to Darryl and accept the job first");
- ShowPlayerDialog(playerid, DIALOGWOODSELL+2, DIALOG_STYLE_INPUT, "Wood Company", "Enter the amount you want to sell(max 20 each time)", "Select", "Cancel");
- }
- if(listitem == 4)
- {
- new string[256];
- new string2[200];
- format(string, sizeof(string), "WoodCutting Level: [%d]\n",PlayerSkills[playerid][WoodCuttingLevel]);
- strcat(string2,string);
- if(PlayerSkills[playerid][WoodCuttingLevel] == 0)
- {
- format(string, sizeof(string), "WoodCutting XP: [%d/75]",PlayerSkills[playerid][WoodCuttingXP]);
- strcat(string2,string);
- }
- if(PlayerSkills[playerid][WoodCuttingLevel] == 1)
- {
- format(string, sizeof(string), "WoodCutting XP: [%d/200]",PlayerSkills[playerid][WoodCuttingXP]);
- strcat(string2,string);
- }
- if(PlayerSkills[playerid][WoodCuttingLevel] == 2)
- {
- format(string, sizeof(string), "WoodCutting XP: [%d/500]",PlayerSkills[playerid][WoodCuttingXP]);
- strcat(string2,string);
- }
- if(PlayerSkills[playerid][WoodCuttingLevel] == 3)
- {
- format(string, sizeof(string), "WoodCutting XP: [%d/1000]",PlayerSkills[playerid][WoodCuttingXP]);
- strcat(string2,string);
- }
- if(PlayerSkills[playerid][WoodCuttingLevel] == 4)
- {
- format(string, sizeof(string), "WoodCutting XP: [%d/1700]",PlayerSkills[playerid][WoodCuttingXP]);
- strcat(string2,string);
- }
- if(PlayerSkills[playerid][WoodCuttingLevel] == 5)
- {
- format(string, sizeof(string), "WoodCutting XP: [%d/2300]",PlayerSkills[playerid][WoodCuttingXP]);
- strcat(string2,string);
- }
- if(PlayerSkills[playerid][WoodCuttingLevel] == 6)
- {
- format(string, sizeof(string), "WoodCutting XP: [%d/3100]",PlayerSkills[playerid][WoodCuttingXP]);
- strcat(string2,string);
- }
- if(PlayerSkills[playerid][WoodCuttingLevel] == 7)
- {
- format(string, sizeof(string), "WoodCutting XP: [%d/3700]",PlayerSkills[playerid][WoodCuttingXP]);
- strcat(string2,string);
- }
- if(PlayerSkills[playerid][WoodCuttingLevel] == 8)
- {
- format(string, sizeof(string), "WoodCutting XP: [%d/4200]",PlayerSkills[playerid][WoodCuttingXP]);
- strcat(string2,string);
- }
- if(PlayerSkills[playerid][WoodCuttingLevel] == 9)
- {
- format(string, sizeof(string), "WoodCutting XP: [%d/5000]",PlayerSkills[playerid][WoodCuttingXP]);
- strcat(string2,string);
- }
- if(PlayerSkills[playerid][WoodCuttingLevel] == 10)
- {
- format(string, sizeof(string), "WoodCutting XP: [%d/7500]",PlayerSkills[playerid][WoodCuttingXP]);
- strcat(string2,string);
- }
- ShowPlayerDialog(playerid, DIALOG_NONE, DIALOG_STYLE_MSGBOX, "WoodCutting", string2, "Ok", "");
- }
- }
- return 1;
- }
- if(dialogid == DIALOGWOODSELL+2)
- {
- if(response)
- {
- if(strval(inputtext) > 0 && strval(inputtext) < 21)
- {
- if(strval(inputtext) == 1)
- {
- if(Inventory[playerid][InvLogs] >= 1)
- {
- Inventory[playerid][InvLogs] -= 1;
- Inventory[playerid][InvSlots] -= 1;
- SendClientMessage(playerid,YELLOW,"You have sold 1 pile of logs to Darryl for 200$");
- GameTextForPlayer(playerid,"~G~+$200",2000,1);
- GivePlayerMoney(playerid,200);
- }else return SendClientMessage(playerid,RED,"You don't have that many logs");
- }
- if(strval(inputtext) == 2)
- {
- if(Inventory[playerid][InvLogs] >= 2)
- {
- Inventory[playerid][InvLogs] -= 2;
- Inventory[playerid][InvSlots] -= 2;
- SendClientMessage(playerid,YELLOW,"You have sold 2 pile of logs to Darryl for 400$");
- GameTextForPlayer(playerid,"~G~+$400",2000,1);
- GivePlayerMoney(playerid,400);
- }else return SendClientMessage(playerid,RED,"You don't have that many logs");
- }
- if(strval(inputtext) == 3)
- {
- if(Inventory[playerid][InvLogs] >= 3)
- {
- Inventory[playerid][InvLogs] -= 3;
- Inventory[playerid][InvSlots] -= 3;
- SendClientMessage(playerid,YELLOW,"You have sold 3 pile of logs to Darryl for 600$");
- GameTextForPlayer(playerid,"~G~+$600",2000,1);
- GivePlayerMoney(playerid,600);
- }else return SendClientMessage(playerid,RED,"You don't have that many logs");
- }
- if(strval(inputtext) == 4)
- {
- if(Inventory[playerid][InvLogs] >= 4)
- {
- Inventory[playerid][InvLogs] -= 4;
- Inventory[playerid][InvSlots] -= 4;
- SendClientMessage(playerid,YELLOW,"You have sold 4 pile of logs to Darryl for 800$");
- GameTextForPlayer(playerid,"~G~+$800",2000,1);
- GivePlayerMoney(playerid,800);
- }else return SendClientMessage(playerid,RED,"You don't have that many logs");
- }
- if(strval(inputtext) == 5)
- {
- if(Inventory[playerid][InvLogs] >= 5)
- {
- Inventory[playerid][InvLogs] -= 5;
- Inventory[playerid][InvSlots] -= 5;
- SendClientMessage(playerid,YELLOW,"You have sold 5 pile of logs to Darryl for 1000$");
- GameTextForPlayer(playerid,"~G~+$1000",2000,1);
- GivePlayerMoney(playerid,1000);
- }else return SendClientMessage(playerid,RED,"You don't have that many logs");
- }
- if(strval(inputtext) == 6)
- {
- if(Inventory[playerid][InvLogs] >= 6)
- {
- Inventory[playerid][InvLogs] -= 6;
- Inventory[playerid][InvSlots] -= 6;
- SendClientMessage(playerid,YELLOW,"You have sold 6 pile of logs to Darryl for 1200$");
- GameTextForPlayer(playerid,"~G~+$1200",2000,1);
- GivePlayerMoney(playerid,1200);
- }else return SendClientMessage(playerid,RED,"You don't have that many logs");
- }
- if(strval(inputtext) == 7)
- {
- if(Inventory[playerid][InvLogs] >= 7)
- {
- Inventory[playerid][InvLogs] -= 7;
- Inventory[playerid][InvSlots] -= 7;
- SendClientMessage(playerid,YELLOW,"You have sold 7 pile of logs to Darryl for 1400$");
- GameTextForPlayer(playerid,"~G~+$1400",2000,1);
- GivePlayerMoney(playerid,1400);
- }else return SendClientMessage(playerid,RED,"You don't have that many logs");
- }
- if(strval(inputtext) == 8)
- {
- if(Inventory[playerid][InvLogs] >= 8)
- {
- Inventory[playerid][InvLogs] -= 8;
- Inventory[playerid][InvSlots] -= 8;
- SendClientMessage(playerid,YELLOW,"You have sold 8 pile of logs to Darryl for 1600$");
- GameTextForPlayer(playerid,"~G~+$1600",2000,1);
- GivePlayerMoney(playerid,1600);
- }else return SendClientMessage(playerid,RED,"You don't have that many logs");
- }
- if(strval(inputtext) == 9)
- {
- if(Inventory[playerid][InvLogs] >= 9)
- {
- Inventory[playerid][InvLogs] -= 9;
- Inventory[playerid][InvSlots] -= 9;
- SendClientMessage(playerid,YELLOW,"You have sold 9 pile of logs to Darryl for 1800$");
- GameTextForPlayer(playerid,"~G~+$1800",2000,1);
- GivePlayerMoney(playerid,1800);
- }else return SendClientMessage(playerid,RED,"You don't have that many logs");
- }
- if(strval(inputtext) == 10)
- {
- if(Inventory[playerid][InvLogs] >= 10)
- {
- Inventory[playerid][InvLogs] -= 10;
- Inventory[playerid][InvSlots] -= 10;
- SendClientMessage(playerid,YELLOW,"You have sold 10 pile of logs to Darryl for 2000$");
- GameTextForPlayer(playerid,"~G~+$2000",2000,1);
- GivePlayerMoney(playerid,2000);
- }else return SendClientMessage(playerid,RED,"You don't have that many logs");
- }
- if(strval(inputtext) == 11)
- {
- if(Inventory[playerid][InvLogs] >= 11)
- {
- Inventory[playerid][InvLogs] -= 11;
- Inventory[playerid][InvSlots] -= 11;
- SendClientMessage(playerid,YELLOW,"You have sold 11 pile of logs to Darryl for 2200$");
- GameTextForPlayer(playerid,"~G~+$2200",2000,1);
- GivePlayerMoney(playerid,2200);
- }else return SendClientMessage(playerid,RED,"You don't have that many logs");
- }
- if(strval(inputtext) == 12)
- {
- if(Inventory[playerid][InvLogs] >= 12)
- {
- Inventory[playerid][InvLogs] -= 12;
- Inventory[playerid][InvSlots] -= 12;
- SendClientMessage(playerid,YELLOW,"You have sold 12 pile of logs to Darryl for 2400$");
- GameTextForPlayer(playerid,"~G~+$2400",2000,1);
- GivePlayerMoney(playerid,2400);
- }else return SendClientMessage(playerid,RED,"You don't have that many logs");
- }
- if(strval(inputtext) == 13)
- {
- if(Inventory[playerid][InvLogs] >= 13)
- {
- Inventory[playerid][InvLogs] -= 13;
- Inventory[playerid][InvSlots] -= 13;
- SendClientMessage(playerid,YELLOW,"You have sold 13 pile of logs to Darryl for 2600$");
- GameTextForPlayer(playerid,"~G~+$2600",2000,1);
- GivePlayerMoney(playerid,2600);
- }else return SendClientMessage(playerid,RED,"You don't have that many logs");
- }
- if(strval(inputtext) == 14)
- {
- if(Inventory[playerid][InvLogs] >= 14)
- {
- Inventory[playerid][InvLogs] -= 14;
- Inventory[playerid][InvSlots] -= 14;
- SendClientMessage(playerid,YELLOW,"You have sold 14 pile of logs to Darryl for 2800$");
- GameTextForPlayer(playerid,"~G~+$2800",2000,1);
- GivePlayerMoney(playerid,2800);
- }else return SendClientMessage(playerid,RED,"You don't have that many logs");
- }
- if(strval(inputtext) == 15)
- {
- if(Inventory[playerid][InvLogs] >= 15)
- {
- Inventory[playerid][InvLogs] -= 15;
- Inventory[playerid][InvSlots] -= 15;
- SendClientMessage(playerid,YELLOW,"You have sold 15 pile of logs to Darryl for 3000$");
- GameTextForPlayer(playerid,"~G~+$3000",2000,1);
- GivePlayerMoney(playerid,3000);
- }else return SendClientMessage(playerid,RED,"You don't have that many logs");
- }
- if(strval(inputtext) == 16)
- {
- if(Inventory[playerid][InvLogs] >= 16)
- {
- Inventory[playerid][InvLogs] -= 16;
- Inventory[playerid][InvSlots] -= 16;
- SendClientMessage(playerid,YELLOW,"You have sold 16 pile of logs to Darryl for 3200$");
- GameTextForPlayer(playerid,"~G~+$3200",2000,1);
- GivePlayerMoney(playerid,3200);
- }else return SendClientMessage(playerid,RED,"You don't have that many logs");
- }
- if(strval(inputtext) == 17)
- {
- if(Inventory[playerid][InvLogs] >= 17)
- {
- Inventory[playerid][InvLogs] -= 17;
- Inventory[playerid][InvSlots] -= 17;
- SendClientMessage(playerid,YELLOW,"You have sold 17 pile of logs to Darryl for 3400$");
- GameTextForPlayer(playerid,"~G~+$3400",2000,1);
- GivePlayerMoney(playerid,3400);
- }else return SendClientMessage(playerid,RED,"You don't have that many logs");
- }
- if(strval(inputtext) == 18)
- {
- if(Inventory[playerid][InvLogs] >= 18)
- {
- Inventory[playerid][InvLogs] -= 18;
- Inventory[playerid][InvSlots] -= 18;
- SendClientMessage(playerid,YELLOW,"You have sold 18 pile of logs to Darryl for 3600$");
- GameTextForPlayer(playerid,"~G~+$3600",2000,1);
- GivePlayerMoney(playerid,3600);
- }else return SendClientMessage(playerid,RED,"You don't have that many logs");
- }
- if(strval(inputtext) == 19)
- {
- if(Inventory[playerid][InvLogs] >= 19)
- {
- Inventory[playerid][InvLogs] -= 19;
- Inventory[playerid][InvSlots] -= 19;
- SendClientMessage(playerid,YELLOW,"You have sold 19 pile of logs to Darryl for 3800$");
- GameTextForPlayer(playerid,"~G~+$3800",2000,1);
- GivePlayerMoney(playerid,3800);
- }else return SendClientMessage(playerid,RED,"You don't have that many logs");
- }
- if(strval(inputtext) == 20)
- {
- if(Inventory[playerid][InvLogs] >= 20)
- {
- Inventory[playerid][InvLogs] -= 20;
- Inventory[playerid][InvSlots] -= 20;
- SendClientMessage(playerid,YELLOW,"You have sold 20 pile of logs to Darryl for 4000$");
- GameTextForPlayer(playerid,"~G~+$4000",2000,1);
- GivePlayerMoney(playerid,4000);
- }else return SendClientMessage(playerid,RED,"You don't have that many logs");
- }
- }else return SendClientMessage(playerid,RED,"You can't sell less then 1 or more then 20 logs each time you interact with Darryl.");
- }
- return 1;
- }
- return 0;
- }
- //==============================================================================
- public OnPlayerClickMap(playerid,Float:fX,Float:fY,Float:fZ)
- {
- if(IsPlayerInAnyVehicle(playerid)){SetVehiclePos(GetPlayerVehicleID(playerid),fX,fY,fZ+5);}
- else{SetPlayerPosFindZ(playerid,fX,fY,fZ+5);}
- return 1;
- }
- //==============================================================================
- public OnPlayerPickUpDynamicPickup(playerid,pickupid)
- {
- if(pickupid==WoodcuttingDuty)
- {
- GameTextForPlayer(playerid,"Press H to go On/Off duty.",800,1);
- }
- return 1;
- }
- //==============================================================================
- public OnPlayerKeyStateChange(playerid,newkeys,oldkeys)
- {
- if(newkeys==KEY_YES)
- {
- if(TalkingToDaryll[playerid]==1)
- {
- SendClientMessage(playerid,GREEN,"Job accepted.");
- TextDrawHideForPlayer(playerid,Textdraw10);
- TextDrawHideForPlayer(playerid,Textdraw11);
- TextDrawHideForPlayer(playerid,Textdraw12);
- TextDrawHideForPlayer(playerid,Textdraw13);
- TextDrawHideForPlayer(playerid,Textdraw14);
- TextDrawHideForPlayer(playerid,Textdraw15);
- TextDrawHideForPlayer(playerid,Textdraw17);
- TalkingToDaryll[playerid]=0;
- TalkingToDaryll2[playerid]=1;
- TogglePlayerControllable(playerid, 1);
- SetCameraBehindPlayer(playerid);
- SetPlayerPos(playerid,pX[playerid],pY[playerid],pZ[playerid]);
- SStats(playerid);
- }
- else
- {
- ShowPlayerDialog(playerid, DIALOGINV+1, DIALOG_STYLE_LIST, "Server Menu", "Make your selection\n --------- \nInventory\nWoodcutting Skill", "Select", "Cancel");
- }
- }
- if(newkeys==KEY_CTRL_BACK)
- {
- if(IsPlayerInRangeOfPoint(playerid,2,-1968.8035,-2438.0771,30.6563))
- {
- ShowPlayerDialog(playerid, DIALOGWOODSELL+1, DIALOG_STYLE_LIST, "Wood Company", "Make your selection\n --------- \nTalk to Daryll\nSell Wood\nWoodcutting Skill", "Select", "Cancel");
- }
- if(IsPlayerInRangeOfPoint(playerid,2,-1965.3787,-2434.6853,34.0163))
- {
- if(PlayerInfo[playerid][WoodcuttingDuty2] == 0)
- {
- Oldskin[playerid] = GetPlayerSkin(playerid);
- PlayerInfo[playerid][WoodcuttingDuty2] = 1;
- SetPlayerSkin(playerid, 27);
- GivePlayerWeapon(playerid,9,1);
- SendClientMessage(playerid, GREEN, "You are now on woodcutting duty.");
- SStats(playerid);
- }
- else
- {
- PlayerInfo[playerid][WoodcuttingDuty2] = 0;
- SetPlayerSkin(playerid, Oldskin[playerid]);
- SendClientMessage(playerid, GREEN, "You are not on woodcutting duty anymore.");
- SStats(playerid);
- }
- }
- }
- if(newkeys==KEY_NO)
- {
- if(TalkingToDaryll[playerid]==1)
- {
- SendClientMessage(playerid,RED,"Job refused.");
- TextDrawHideForPlayer(playerid,Textdraw10);
- TextDrawHideForPlayer(playerid,Textdraw11);
- TextDrawHideForPlayer(playerid,Textdraw12);
- TextDrawHideForPlayer(playerid,Textdraw13);
- TextDrawHideForPlayer(playerid,Textdraw14);
- TextDrawHideForPlayer(playerid,Textdraw15);
- TextDrawHideForPlayer(playerid,Textdraw17);
- TalkingToDaryll[playerid]=0;
- TogglePlayerControllable(playerid, 1);
- SetCameraBehindPlayer(playerid);
- SetPlayerPos(playerid,pX[playerid],pY[playerid],pZ[playerid]);
- SStats(playerid);
- }
- if(TalkingToDaryll3[playerid]==1)
- {
- SendClientMessage(playerid,RED,"Resigned from woodcutting job.");
- TextDrawHideForPlayer(playerid,Textdraw20);
- TextDrawHideForPlayer(playerid,Textdraw21);
- TextDrawHideForPlayer(playerid,Textdraw22);
- TextDrawHideForPlayer(playerid,Textdraw23);
- TextDrawHideForPlayer(playerid,Textdraw27);
- TalkingToDaryll[playerid]=0;
- TalkingToDaryll2[playerid]=0;
- TalkingToDaryll3[playerid]=0;
- TogglePlayerControllable(playerid, 1);
- SetCameraBehindPlayer(playerid);
- SetPlayerPos(playerid,pX[playerid],pY[playerid],pZ[playerid]);
- SStats(playerid);
- }
- }
- if(newkeys & KEY_FIRE)
- {
- if(GetPlayerWeapon(playerid) == 9)
- {
- for(new i = 0; i < sizeof(TreeInfo); i++)
- {
- if (IsPlayerInRangeOfPoint(playerid, 5.0,TreeInfo[i][TreePosX],TreeInfo[i][TreePosY],TreeInfo[i][TreePosZ]))
- {
- if(GetPlayerVirtualWorld(playerid) == TreeInfo[i][TreeVWorld] && GetPlayerInterior(playerid) == TreeInfo[i][TreeInterior])
- {
- if(TreeInfo[i][Toggled] == 0)
- {
- if(PlayerInfo[playerid][WoodcuttingDuty2] == 0) return ShowPlayerDialog(playerid, DIALOG_NONE, DIALOG_STYLE_MSGBOX, "WoodCutting", "You are not on woodcutting duty", "OK", "");
- if(gettime() - Temp[playerid] < 3) return ShowPlayerDialog(playerid, DIALOG_NONE, DIALOG_STYLE_MSGBOX, "WoodCutting", "You should rest a few seconds", "OK", "");
- if(Inventory[playerid][InvSlots] > 19) return SendClientMessage(playerid,RED,"Your inventory is full.");
- Temp[playerid] = gettime();
- CuttingTree[playerid] += 1;
- SStats(playerid);
- if(PlayerSkills[playerid][WoodCuttingLevel] == 0)
- {
- if(CuttingTree[playerid] > 3)
- {
- SendClientMessage(playerid, GREEN, "Congratulations! You've cut down a tree from your surroundings.");
- TreeInfo[i][Toggled] = 1;
- Delete3DTextLabel(Label3[i]);
- DestroyDynamicObject(Tree[i]);
- Inventory[playerid][InvSlots] += 1;
- Inventory[playerid][InvLogs] += 1;
- PlayerSkills[playerid][WoodCuttingXP] += 7;
- WoodCuttingTraining(playerid);
- CuttingTree[playerid] = 0;
- SendClientMessage(playerid,YELLOW,"You have gained some XP and some logs.");
- }
- else
- {
- SendClientMessage(playerid, RED, "You failed to cut down a tree from your surroundings.");
- }
- }
- if(PlayerSkills[playerid][WoodCuttingLevel] == 1)
- {
- if(CuttingTree[playerid] > 3)
- {
- SendClientMessage(playerid, GREEN, "Congratulations! You've cut down a tree from your surroundings.");
- TreeInfo[i][Toggled] = 1;
- Delete3DTextLabel(Label3[i]);
- DestroyDynamicObject(Tree[i]);
- Inventory[playerid][InvSlots] += 1;
- Inventory[playerid][InvLogs] += 1;
- PlayerSkills[playerid][WoodCuttingXP] += 7;
- WoodCuttingTraining(playerid);
- CuttingTree[playerid] = 0;
- SendClientMessage(playerid,YELLOW,"You have gained some XP and some logs.");
- }
- else
- {
- SendClientMessage(playerid, RED, "You failed to cut down a tree from your surroundings.");
- }
- }
- if(PlayerSkills[playerid][WoodCuttingLevel] == 2)
- {
- if(CuttingTree[playerid] > 3)
- {
- SendClientMessage(playerid, GREEN, "Congratulations! You've cut down a tree from your surroundings.");
- TreeInfo[i][Toggled] = 1;
- Delete3DTextLabel(Label3[i]);
- DestroyDynamicObject(Tree[i]);
- Inventory[playerid][InvSlots] += 1;
- Inventory[playerid][InvLogs] += 1;
- PlayerSkills[playerid][WoodCuttingXP] += 7;
- WoodCuttingTraining(playerid);
- CuttingTree[playerid] = 0;
- SendClientMessage(playerid,YELLOW,"You have gained some XP and some logs.");
- }
- else
- {
- SendClientMessage(playerid, RED, "You failed to cut down a tree from your surroundings.");
- }
- }
- if(PlayerSkills[playerid][WoodCuttingLevel] == 3)
- {
- if(CuttingTree[playerid] > 3)
- {
- SendClientMessage(playerid, GREEN, "Congratulations! You've cut down a tree from your surroundings.");
- TreeInfo[i][Toggled] = 1;
- Delete3DTextLabel(Label3[i]);
- DestroyDynamicObject(Tree[i]);
- Inventory[playerid][InvSlots] += 1;
- Inventory[playerid][InvLogs] += 1;
- PlayerSkills[playerid][WoodCuttingXP] += 7;
- WoodCuttingTraining(playerid);
- CuttingTree[playerid] = 0;
- SendClientMessage(playerid,YELLOW,"You have gained some XP and some logs.");
- }
- else
- {
- SendClientMessage(playerid, RED, "You failed to cut down a tree from your surroundings.");
- }
- }
- if(PlayerSkills[playerid][WoodCuttingLevel] == 4)
- {
- if(CuttingTree[playerid] > 3)
- {
- SendClientMessage(playerid, GREEN, "Congratulations! You've cut down a tree from your surroundings.");
- TreeInfo[i][Toggled] = 1;
- Delete3DTextLabel(Label3[i]);
- DestroyDynamicObject(Tree[i]);
- Inventory[playerid][InvSlots] += 1;
- Inventory[playerid][InvLogs] += 1;
- PlayerSkills[playerid][WoodCuttingXP] += 7;
- WoodCuttingTraining(playerid);
- CuttingTree[playerid] = 0;
- SendClientMessage(playerid,YELLOW,"You have gained some XP and some logs.");
- }
- else
- {
- SendClientMessage(playerid, RED, "You failed to cut down a tree from your surroundings.");
- }
- }
- if(PlayerSkills[playerid][WoodCuttingLevel] == 5)
- {
- if(CuttingTree[playerid] > 3)
- {
- SendClientMessage(playerid, GREEN, "Congratulations! You've cut down a tree from your surroundings.");
- TreeInfo[i][Toggled] = 1;
- Delete3DTextLabel(Label3[i]);
- DestroyDynamicObject(Tree[i]);
- Inventory[playerid][InvSlots] += 1;
- Inventory[playerid][InvLogs] += 1;
- PlayerSkills[playerid][WoodCuttingXP] += 7;
- WoodCuttingTraining(playerid);
- CuttingTree[playerid] = 0;
- SendClientMessage(playerid,YELLOW,"You have gained some XP and some logs.");
- }
- else
- {
- SendClientMessage(playerid, RED, "You failed to cut down a tree from your surroundings.");
- }
- }
- if(PlayerSkills[playerid][WoodCuttingLevel] == 6)
- {
- if(CuttingTree[playerid] > 3)
- {
- SendClientMessage(playerid, GREEN, "Congratulations! You've cut down a tree from your surroundings.");
- TreeInfo[i][Toggled] = 1;
- Delete3DTextLabel(Label3[i]);
- DestroyDynamicObject(Tree[i]);
- Inventory[playerid][InvSlots] += 1;
- Inventory[playerid][InvLogs] += 1;
- PlayerSkills[playerid][WoodCuttingXP] += 7;
- WoodCuttingTraining(playerid);
- CuttingTree[playerid] = 0;
- SendClientMessage(playerid,YELLOW,"You have gained some XP and some logs.");
- }
- else
- {
- SendClientMessage(playerid, RED, "You failed to cut down a tree from your surroundings.");
- }
- }
- if(PlayerSkills[playerid][WoodCuttingLevel] == 7)
- {
- if(CuttingTree[playerid] > 2)
- {
- SendClientMessage(playerid, GREEN, "Congratulations! You've cut down a tree from your surroundings.");
- TreeInfo[i][Toggled] = 1;
- Delete3DTextLabel(Label3[i]);
- DestroyDynamicObject(Tree[i]);
- Inventory[playerid][InvSlots] += 1;
- Inventory[playerid][InvLogs] += 1;
- PlayerSkills[playerid][WoodCuttingXP] += 7;
- WoodCuttingTraining(playerid);
- CuttingTree[playerid] = 0;
- SendClientMessage(playerid,YELLOW,"You have gained some XP and some logs.");
- }
- else
- {
- SendClientMessage(playerid, RED, "You failed to cut down a tree from your surroundings.");
- }
- }
- if(PlayerSkills[playerid][WoodCuttingLevel] == 8)
- {
- if(CuttingTree[playerid] > 2)
- {
- SendClientMessage(playerid, GREEN, "Congratulations! You've cut down a tree from your surroundings.");
- TreeInfo[i][Toggled] = 1;
- Delete3DTextLabel(Label3[i]);
- DestroyDynamicObject(Tree[i]);
- Inventory[playerid][InvSlots] += 1;
- Inventory[playerid][InvLogs] += 1;
- PlayerSkills[playerid][WoodCuttingXP] += 7;
- WoodCuttingTraining(playerid);
- CuttingTree[playerid] = 0;
- SendClientMessage(playerid,YELLOW,"You have gained some XP and some logs.");
- }
- else
- {
- SendClientMessage(playerid, RED, "You failed to cut down a tree from your surroundings.");
- }
- }
- if(PlayerSkills[playerid][WoodCuttingLevel] == 9)
- {
- if(CuttingTree[playerid] > 1)
- {
- SendClientMessage(playerid, GREEN, "Congratulations! You've cut down a tree from your surroundings.");
- TreeInfo[i][Toggled] = 1;
- Delete3DTextLabel(Label3[i]);
- DestroyDynamicObject(Tree[i]);
- Inventory[playerid][InvSlots] += 1;
- Inventory[playerid][InvLogs] += 1;
- PlayerSkills[playerid][WoodCuttingXP] += 7;
- WoodCuttingTraining(playerid);
- CuttingTree[playerid] = 0;
- SendClientMessage(playerid,YELLOW,"You have gained some XP and some logs.");
- }
- else
- {
- SendClientMessage(playerid, RED, "You failed to cut down a tree from your surroundings.");
- }
- }
- if(PlayerSkills[playerid][WoodCuttingLevel] == 10)
- {
- SendClientMessage(playerid, GREEN, "Congratulations! You've cut down a tree from your surroundings.");
- TreeInfo[i][Toggled] = 1;
- Delete3DTextLabel(Label3[i]);
- DestroyDynamicObject(Tree[i]);
- Inventory[playerid][InvSlots] += 1;
- Inventory[playerid][InvLogs] += 1;
- PlayerSkills[playerid][WoodCuttingXP] += 7;
- WoodCuttingTraining(playerid);
- CuttingTree[playerid] = 0;
- SendClientMessage(playerid,YELLOW,"You have gained some XP and some logs.");
- }
- return 1;
- }
- }else return 0;
- }
- }
- }
- }
- return 1;
- }
- //==============================================================================
- CMD:gotowoodcutting(playerid,params[])
- {
- SetPlayerPos(playerid,-1964.5818,-2448.0806,30.6250);
- return 1;
- }
- //==============================================================================
- CMD:respawntrees(playerid,params[])
- {
- 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();
- CreateTree(-1975.4630, -2465.3850, 29.7474, 0, 0, 700);
- CreateTree(-1967.4128, -2465.3850, 29.7474, 0, 0, 700);
- CreateTree(-1953.6922, -2476.2167, 29.7474, 0, 0, 700);
- CreateTree(-1953.6922, -2481.9753, 29.7474, 0, 0, 700);
- CreateTree(-1983.9721, -2472.5239, 29.7474, 0, 0, 700);
- CreateTree(-1970.9918, -2487.8649, 29.7474, 0, 0, 700);
- CreateTree(-1962.6715, -2481.6245, 29.7474, 0, 0, 700);
- CreateTree(-1943.5307, -2474.3339, 29.7474, 0, 0, 700);
- CreateTree(-1943.5307, -2474.3339, 29.7474, 0, 0, 700);
- CreateTree(-1931.7911, -2474.3339, 30.3174, 0, 0, 700);
- CreateTree(-1931.7911, -2507.0161, 32.1674, 0, 0, 700);
- CreateTree(-1955.0915, -2503.2363, 33.5775, 0, 0, 700);
- CreateTree(-1955.0915, -2514.8686, 36.1375, 0, 0, 700);
- CreateTree(-1948.2414, -2526.0559, 38.0774, 0, 0, 700);
- CreateTree(-1925.5108, -2526.0559, 35.2475, 0, 0, 700);
- CreateTree(-1906.2713, -2507.0161, 34.0074, 0, 0, 700);
- CreateTree(-1906.2713, -2438.6323, 30.1474, 0, 0, 700);
- CreateTree(-1998.3739, -2475.0439, 29.6674, 0, 0, 700);
- CreateTree(-1995.9614, -2456.0026, 29.7474, 0, 0, 700);
- CreateTree(-2014.7331, -2477.9643, 29.7474, 0, 0, 700);
- CreateTree(-2014.7331, -2459.2055, 29.9375, 0, 0, 700);
- CreateTree(-2027.5633, -2444.0854, 29.9375, 0, 0, 700);
- CreateTree(-2011.6031, -2430.1052, 29.9375, 0, 0, 700);
- CreateTree(-2048.1035, -2417.6447, 29.9375, 0, 0, 700);
- CreateTree(-2031.7934, -2423.8945, 29.9375, 0, 0, 700);
- CreateTree(-2031.7934, -2411.2148, 29.9375, 0, 0, 700);
- CreateTree(-2050.2636, -2397.1950, 29.6275, 0, 0, 700);
- CreateTree(-2068.4438, -2381.4633, 29.6275, 0, 0, 700);
- CreateTree(-1968.1745, -2381.4633, 29.1774, 0, 0, 700);
- CreateTree(-1949.8138, -2381.4633, 29.1175, 0, 0, 700);
- CreateTree(-1947.6933, -2354.0830, 31.2374, 0, 0, 700);
- CreateTree(-1968.5234, -2347.9020, 31.4575, 0, 0, 700);
- CreateTree(-1953.8327, -2321.7817, 36.8474, 0, 0, 700);
- CreateTree(-1979.1234, -2314.7114, 35.9075, 0, 0, 700);
- CreateTree(-1965.9925, -2291.7319, 40.2374, 0, 0, 700);
- CreateTree(-1993.7232, -2291.7319, 35.5675, 0, 0, 700);
- CreateTree(-1993.7232, -2269.6010, 41.3375, 0, 0, 700);
- CreateTree(-2017.0229, -2269.6010, 34.6775, 0, 0, 700);
- CreateTree(-2017.0229, -2297.6816, 33.4075, 0, 0, 700);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement