Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Complete solution for Roleplay Servers || Solução completa para Servidores Roleplay
- *
- * Basic Needs Simulator [FS] By n0minal
- */
- /* ==========>> Includes << ========== */
- #include <a_samp>
- #include <streamer>
- #include <ZCMD>
- #include <progress>
- /* ==========>> Defines << ========== */
- #define DIALOG_LANCHE 2030
- //
- #define DIALOG_BLAD_0 2131
- #define DIALOG_BLAD_1 2132
- #define DIALOG_BLAD_2 2133
- #define DIALOG_BLAD_3 2134
- #define DIALOG_BLAD_4 2135
- #define DIALOG_BLAD_5 2136
- #define DIALOG_BLAD_6 2137
- #define DIALOG_BLAD_7 2138
- #define DIALOG_BLAD_8 2139
- #define DIALOG_BLAD_9 2140
- #define DIALOG_BLAD_10 2141
- #define DIALOG_BLAD_11 2142
- #define DIALOG_BLAD_11_2 2143
- #define DIALOG_BLAD_12 2144
- #define DIALOG_BLAD_12_2 2145
- #define DIALOG_BLAD_13 2146
- #define DIALOG_BLAD_13_2 2147
- //
- #define DIALOG_BATH_0 2150
- #define DIALOG_BATH_1 2151
- #define DIALOG_BATH_2 2152
- #define DIALOG_BATH_3 2153
- #define DIALOG_BATH_4 2154
- #define DIALOG_BATH_5 2155
- #define DIALOG_BATH_6 2156
- #define DIALOG_BATH_7 2157
- #define DIALOG_BATH_8 2158
- #define DIALOG_BATH_9 2159
- #define DIALOG_BATH_10 2160
- #define DIALOG_BATH_11 2161
- #define DIALOG_BATH_11_2 2162
- #define DIALOG_BATH_12 2163
- #define DIALOG_BATH_12_2 2164
- #define DIALOG_BATH_13 2165
- #define DIALOG_BATH_13_2 2166
- //
- #define DIALOG_HAND_0 2168
- #define DIALOG_HAND_1 2169
- #define DIALOG_HAND_2 2170
- #define DIALOG_HAND_3 2171
- #define DIALOG_HAND_4 2172
- #define DIALOG_HAND_5 2173
- #define DIALOG_HAND_6 2174
- #define DIALOG_HAND_7 2175
- #define DIALOG_HAND_8 2176
- #define DIALOG_HAND_9 2177
- #define DIALOG_HAND_10 2178
- #define DIALOG_HAND_11 2179
- #define DIALOG_HAND_11_2 2180
- #define DIALOG_HAND_12 2181
- #define DIALOG_HAND_12_2 2182
- #define DIALOG_HAND_13 2183
- #define DIALOG_HAND_13_2 2184
- /* ==========>> Forwards << ========== */
- forward HealFome(playerid);
- forward HealBath(playerid);
- forward Fome(playerid);
- forward StopAnims(playerid);
- forward PeeOrShit(playerid);
- forward TakeBath(playerid);
- forward Blad(playerid);
- forward StopBath(playerid);
- forward UpdateValues(playerid);
- /* ==========>> Variáveis << ========== */
- new PlayerText:BugFix[MAX_PLAYERS];// Dont remove!
- new PlayerText:TD_HUNG[MAX_PLAYERS];
- new PlayerText:TD_BLAD[MAX_PLAYERS];
- new PlayerText:TD_HIGI[MAX_PLAYERS];
- new PlayerText:TD_HEAL[MAX_PLAYERS];
- //
- new Text: Hungry;
- new Text: Bladder;
- new Text: Bath;
- new Text: Heal;
- //
- new CheckFix[4];
- new CheckPee[17];
- new CheckBath[20];
- new CheckHand[17];
- //
- new Picks[20];
- new Exits[20];
- //
- new Bar:pb_fome[MAX_PLAYERS];
- new Bar:pb_bath[MAX_PLAYERS];
- new Bar:pb_blad[MAX_PLAYERS];
- new Bar:pb_heal[MAX_PLAYERS];
- //
- new hungry[MAX_PLAYERS];
- new bladder[MAX_PLAYERS];
- new shower[MAX_PLAYERS];
- stock LoadPlayerStatesTextDraws(playerid)
- {
- BugFix[playerid] = CreatePlayerTextDraw(playerid,608.000000, 146.000000, "_"); // Não remova esta textdraw, pois ela elimina o bug do veículo.
- PlayerTextDrawBackgroundColor(playerid,BugFix[playerid], 255); // Não remova esta textdraw, pois ela elimina o bug do veículo.
- PlayerTextDrawFont(playerid,BugFix[playerid], 1); // Não remova esta textdraw, pois ela elimina o bug do veículo.
- PlayerTextDrawLetterSize(playerid,BugFix[playerid], 0.370000, 0.599999); // Não remova esta textdraw, pois ela elimina o bug do veículo.
- PlayerTextDrawColor(playerid,BugFix[playerid], -1); // Não remova esta textdraw, pois ela elimina o bug do veículo.
- PlayerTextDrawSetOutline(playerid,BugFix[playerid], 0); // Não remova esta textdraw, pois ela elimina o bug do veículo.
- PlayerTextDrawSetProportional(playerid,BugFix[playerid], 1); // Não remova esta textdraw, pois ela elimina o bug do veículo.
- PlayerTextDrawSetShadow(playerid,BugFix[playerid], 1); // Não remova esta textdraw, pois ela elimina o bug do veículo.
- PlayerTextDrawSetSelectable(playerid,BugFix[playerid], 0); // Não remova esta textdraw, pois ela elimina o bug do veículo.
- TD_HUNG[playerid] = CreatePlayerTextDraw(playerid,608.000000, 146.000000, "100");
- PlayerTextDrawBackgroundColor(playerid,TD_HUNG[playerid], 255);
- PlayerTextDrawFont(playerid,TD_HUNG[playerid], 1);
- PlayerTextDrawLetterSize(playerid,TD_HUNG[playerid], 0.370000, 0.599999);
- PlayerTextDrawColor(playerid,TD_HUNG[playerid], -1);
- PlayerTextDrawSetOutline(playerid,TD_HUNG[playerid], 0);
- PlayerTextDrawSetProportional(playerid,TD_HUNG[playerid], 1);
- PlayerTextDrawSetShadow(playerid,TD_HUNG[playerid], 1);
- PlayerTextDrawSetSelectable(playerid,TD_HUNG[playerid], 0);
- TD_BLAD[playerid] = CreatePlayerTextDraw(playerid,608.000000, 177.000000, "100");
- PlayerTextDrawBackgroundColor(playerid,TD_BLAD[playerid], 255);
- PlayerTextDrawFont(playerid,TD_BLAD[playerid], 1);
- PlayerTextDrawLetterSize(playerid,TD_BLAD[playerid], 0.370000, 0.599999);
- PlayerTextDrawColor(playerid,TD_BLAD[playerid], -1);
- PlayerTextDrawSetOutline(playerid,TD_BLAD[playerid], 0);
- PlayerTextDrawSetProportional(playerid,TD_BLAD[playerid], 1);
- PlayerTextDrawSetShadow(playerid,TD_BLAD[playerid], 1);
- PlayerTextDrawSetSelectable(playerid,TD_BLAD[playerid], 0);
- TD_HIGI[playerid] = CreatePlayerTextDraw(playerid,608.000000, 206.000000, "100");
- PlayerTextDrawBackgroundColor(playerid,TD_HIGI[playerid], 255);
- PlayerTextDrawFont(playerid,TD_HIGI[playerid], 1);
- PlayerTextDrawLetterSize(playerid,TD_HIGI[playerid], 0.370000, 0.599999);
- PlayerTextDrawColor(playerid,TD_HIGI[playerid], -1);
- PlayerTextDrawSetOutline(playerid,TD_HIGI[playerid], 0);
- PlayerTextDrawSetProportional(playerid,TD_HIGI[playerid], 1);
- PlayerTextDrawSetShadow(playerid,TD_HIGI[playerid], 1);
- PlayerTextDrawSetSelectable(playerid,TD_HIGI[playerid], 0);
- TD_HEAL[playerid] = CreatePlayerTextDraw(playerid,608.000000, 236.000000, "100");
- PlayerTextDrawBackgroundColor(playerid,TD_HEAL[playerid], 255);
- PlayerTextDrawFont(playerid,TD_HEAL[playerid], 1);
- PlayerTextDrawLetterSize(playerid,TD_HEAL[playerid], 0.370000, 0.599999);
- PlayerTextDrawColor(playerid,TD_HEAL[playerid], -1);
- PlayerTextDrawSetOutline(playerid,TD_HEAL[playerid], 0);
- PlayerTextDrawSetProportional(playerid,TD_HEAL[playerid], 1);
- PlayerTextDrawSetShadow(playerid,TD_HEAL[playerid], 1);
- PlayerTextDrawSetSelectable(playerid,TD_HEAL[playerid], 0);
- PlayerTextDrawShow(playerid, BugFix[playerid]); // Não remova esta textdraw, pois ela elimina o bug do veículo.
- PlayerTextDrawShow(playerid, TD_HUNG[playerid]);
- PlayerTextDrawShow(playerid, TD_BLAD[playerid]);
- PlayerTextDrawShow(playerid, TD_HIGI[playerid]);
- PlayerTextDrawShow(playerid, TD_HEAL[playerid]);
- }
- public OnFilterScriptInit()
- {
- print("\n===================================================");
- print(" [ FS ] Simulator: Loaded! ");
- print("===================================================\n");
- /*=======================================>>Pickups<================================================*/
- //Pickups LS (Entrada)
- Picks[1] = CreateDynamicPickup(1318, 1, 1199.4524, -919.1964, 43.1140, -1, -1, -1, 200.0); // Burguer Shot
- Picks[2] = CreateDynamicPickup(1318, 1, 2104.3801, -1806.3346, 13.5547, -1, -1, -1, 200.0); // Well Stacked Pizza
- Picks[3] = CreateDynamicPickup(1318, 1, 2397.5620, -1897.9177, 13.5469, -1, -1, -1, 200.0); // Cluckin Bell
- Picks[4] = CreateDynamicPickup(1318, 1, 2420.5796, -1508.8054, 24.0000, -1, -1, -1, 200.0); // Cluckin Bell
- Picks[5] = CreateDynamicPickup(1318, 1, 810.6364,-1616.1023,13.5469, -1, -1, -1, 200.0); //Burguer Shot Marina
- Picks[6] = CreateDynamicPickup(1318, 1, 927.5572,-1352.8927,13.3438, -1, -1, -1, 200.0); //Cluckin Bell Market
- //Pickups LS (Saída)
- Exits[1] = CreateDynamicPickup(1318, 1, 363.3646, -75.0988, 1001.5078, 90, -1, -1, 200.0); // Burguer Shot Av. LS
- Exits[2] = CreateDynamicPickup(1318, 1, 372.4299, -133.0961, 1001.4922, 90, -1, -1, 200.0); // Well Stacked Pizza Ganton
- Exits[3] = CreateDynamicPickup(1318, 1, 364.7906, -11.4252, 1001.8516, 90, -1, -1, 200.0); // Cluckin Bell
- Exits[4] = CreateDynamicPickup(1318, 1, 364.7906, -11.4252, 1001.8516, 91, -1, -1, 200.0); // Cluckin Bell
- Exits[5] = CreateDynamicPickup(1318, 1, 363.3646, -75.0988, 1001.5078, 91, -1, -1, 200.0); //Burguer Shot Marina
- Exits[6] = CreateDynamicPickup(1318, 1, 364.7906, -11.4252, 1001.8516, 92, -1, -1, 200.0); //Cluckin Bell Market
- /*=======================================>>Lanchonetes<<================================================*/
- CheckFix[1] = CreateDynamicCP(377.4253, -68.5028, 1001.5151, 2.0, -1, -1, -1, 100.0);//Burguer Shot
- CheckFix[2] = CreateDynamicCP(373.6950, -119.1394, 1001.4922, 2.0, -1, -1, -1, 100.0);//Well Stacked Pizza
- CheckFix[3] = CreateDynamicCP(369.2947, -6.3876, 1001.8516, 2.0, -1, -1, -1, 100.0);//Cluckin Bell
- /*=======================================>>Banheiros<<================================================*/
- //Int 0
- CheckPee[0] = CreateDynamicCP(217.4477,1288.7161,1082.1406, 0.5, -1, -1, -1, 100.0);
- CheckBath[0] = CreateDynamicCP(218.3481,1290.1981,1082.1406, 0.5, -1, -1, -1, 100.0);
- CheckHand[0] = CreateDynamicCP(217.3376,1287.3740,1082.1406, 0.5, -1, -1, -1, 100.0);
- //Int 1
- CheckPee[1] = CreateDynamicCP(249.5946,1294.0880,1080.2578, 0.5, -1, -1, -1, 100.0);
- CheckBath[1] = CreateDynamicCP(250.9653,1294.3915,1080.2604, 0.5, -1, -1, -1, 100.0);
- CheckHand[1] = CreateDynamicCP(250.1018,1292.2946,1080.2651, 0.5, -1, -1, -1, 100.0);
- //Int 2
- CheckPee[2] = CreateDynamicCP(254.5888,1249.3932,1084.2578, 0.5, -1, -1, -1, 100.0);
- CheckBath[2] = CreateDynamicCP(252.5592,1247.8557,1084.2578, 0.5, -1, -1, -1, 100.0);
- CheckHand[2] = CreateDynamicCP(253.9499,1247.6469,1084.2578, 0.5, -1, -1, -1, 100.0);
- //Int 3
- CheckPee[3] = CreateDynamicCP(2266.6953, -1141.3292, 1050.6328, 0.5, -1, -1, -1, 100.0);
- CheckBath[3] = CreateDynamicCP(2267.8469,-1141.6576,1050.6328, 0.5, -1, -1, -1, 100.0);
- CheckHand[3] = CreateDynamicCP(2267.7898,-1138.9460,1050.6328, 0.5, -1, -1, -1, 100.0);
- //Int 4
- CheckPee[4] = CreateDynamicCP(284.8385,1482.1646,1080.2578, 0.5, -1, -1, -1, 100.0);
- CheckBath[4] = CreateDynamicCP(285.5734,1484.4746,1080.2578, 0.5, -1, -1, -1, 100.0);
- CheckHand[4] = CreateDynamicCP(284.9279,1480.4326,1080.2578, 0.5, -1, -1, -1, 100.0);
- //Int 5
- CheckPee[5] = CreateDynamicCP(331.8672,1485.4636,1084.4387, 0.5, -1, -1, -1, 100.0);
- CheckBath[5] = CreateDynamicCP(334.4098,1484.0034,1084.4387, 0.5, -1, -1, -1, 100.0);
- CheckHand[5] = CreateDynamicCP(331.7561,1482.3380,1084.4387, 0.5, -1, -1, -1, 100.0);
- //Int 6
- CheckPee[6] = CreateDynamicCP(2255.7422,-1215.4017,1049.0234, 0.5, -1, -1, -1, 100.0);
- CheckBath[6] = CreateDynamicCP(2251.3867,-1216.7432,1049.0234, 0.5, -1, -1, -1, 100.0);
- CheckHand[6] = CreateDynamicCP(2253.7644,-1217.8732,1049.0234, 0.5, -1, -1, -1, 100.0);
- //Int 7
- CheckPee[7] = CreateDynamicCP(444.6775,1411.0509,1084.3047, 0.5, -1, -1, -1, 100.0);
- CheckBath[7] = CreateDynamicCP(447.9643,1413.1531,1084.3047, 0.5, -1, -1, -1, 100.0);
- CheckHand[7] = CreateDynamicCP(444.5659,1414.1826,1084.3047, 0.5, -1, -1, -1, 100.0);
- //Int 8
- CheckPee[8] = CreateDynamicCP(2194.2766,-1223.0665,1049.0234, 0.5, -1, -1, -1, 100.0);
- CheckBath[8] = CreateDynamicCP(2191.9385,-1225.3136,1049.0234, 0.5, -1, -1, -1, 100.0);
- CheckHand[8] = CreateDynamicCP(2192.2822,-1223.0352,1049.0234, 0.5, -1, -1, -1, 100.0);
- //Int 9
- CheckPee[9] = CreateDynamicCP(234.5291,1208.6825,1080.2578, 0.5, -1, -1, -1, 100.0);
- CheckBath[9] = CreateDynamicCP(237.1788,1207.7875,1080.2578, 0.5, -1, -1, -1, 100.0);
- CheckHand[9] = CreateDynamicCP(232.9492,1208.8595,1080.2578, 0.5, -1, -1, -1, 100.0);
- //Int 10
- CheckPee[10] = CreateDynamicCP(488.7575,1421.5515,1080.2578, 0.5, -1, -1, -1, 100.0);
- CheckBath[10] = CreateDynamicCP(491.3229,1418.6143,1080.2578, 0.5, -1, -1, -1, 100.0);
- CheckHand[10] = CreateDynamicCP(488.6364,1418.8800,1080.2645, 0.5, -1, -1, -1, 100.0);
- //Int 11
- CheckPee[11]= CreateDynamicCP(233.0872,1110.5265,1080.9922, 0.5, -1, -1, -1, 100.0);
- CheckBath[11] = CreateDynamicCP(235.4967,1110.7229,1080.9995, 0.5, -1, -1, -1, 100.0);
- CheckHand[11] = CreateDynamicCP(233.0624,1109.3206,1080.9922, 0.5, -1, -1, -1, 100.0);
- CheckPee[14] = CreateDynamicCP(235.1176,1118.9957,1084.9922, 0.5, -1, -1, -1, 100.0);
- CheckBath[14] = CreateDynamicCP(236.1271,1120.3087,1084.9849, 0.5, -1, -1, -1, 100.0);
- CheckHand[14] = CreateDynamicCP(235.1248,1117.9808,1084.9922, 0.5, -1, -1, -1, 100.0);
- //Int 12
- CheckPee[12] = CreateDynamicCP(254.2927,1034.5132,1084.7378, 0.5, -1, -1, -1, 100.0);
- CheckBath[12] = CreateDynamicCP(253.0855,1031.4751,1084.7357, 0.5, -1, -1, -1, 100.0);
- CheckHand[12] = CreateDynamicCP(254.3596,1035.6033,1084.7379, 0.5, -1, -1, -1, 100.0);
- CheckPee[15] = CreateDynamicCP(238.2672,1040.8009,1088.3049, 0.5, -1, -1, -1, 100.0);
- CheckBath[15] = CreateDynamicCP(242.7215,1041.1473,1088.3103, 0.5, -1, -1, -1, 100.0);
- CheckHand[15] = CreateDynamicCP(238.2900,1039.3668,1088.3049, 0.5, -1, -1, -1, 100.0);
- //Int 13
- CheckPee[13] = CreateDynamicCP(1292.6223,-817.6881,1089.9375, 0.5, -1, -1, -1, 100.0);
- CheckBath[13] = CreateDynamicCP(1292.8243,-822.1960,1089.9375, 0.5, -1, -1, -1, 100.0);
- CheckHand[13] = CreateDynamicCP(1286.5660,-815.3432,1089.9375, 0.5, -1, -1, -1, 100.0);
- CheckPee[16] = CreateDynamicCP(1292.6025,-815.2805,1089.9375, 0.5, -1, -1, -1, 100.0);
- CheckBath[16] = CreateDynamicCP(1289.8663,-821.8093,1089.9375, 0.5, -1, -1, -1, 100.0);
- CheckHand[16] = CreateDynamicCP(1286.5160,-817.3494,1089.9375, 0.5, -1, -1, -1, 100.0);
- /*=======================================>>Objetos<<================================================*/
- //Interior 0
- CreateDynamicObject(14481, 217.70, 1289.97, 1083.18, 0.00, 0.00, 90.00);
- CreateDynamicObject(2514, 217.02, 1288.68, 1081.12, 0.00, 0.00, 90.00);
- CreateDynamicObject(2524, 217.09, 1286.86, 1081.12, 0.00, 0.00, 90.00);
- CreateDynamicObject(14677, 214.82, 1285.64, 1083.01, 0.00, 0.00, 90.00);
- CreateDynamicObject(2741, 216.67, 1288.09, 1082.34, 0.00, 0.00, 90.00);
- //Interior 1
- CreateDynamicObject(2514, 249.56, 1294.51, 1079.26, 0.00, 0.00, 0.00);
- CreateDynamicObject(14481, 252.03, 1294.45, 1081.43, 0.00, 0.00, -90.00);
- //Interior 2
- CreateDynamicObject(2523, 254.46, 1247.24, 1083.32, 0.00, 0.00, 180.00);
- CreateDynamicObject(14481, 252.52, 1248.51, 1085.37, 0.00, 0.00, 0.00);
- CreateDynamicObject(2514, 255.02, 1249.38, 1083.32, 0.00, 0.00, -90.00);
- CreateDynamicObject(14677, 254.40, 1248.47, 1086.50, 0.00, 90.00, 0.00);
- //Interior 3
- CreateDynamicObject(2523, 2267.32, -1138.54, 1049.62, 0.00, 0.00, 0.00);
- CreateDynamicObject(2741, 2267.24, -1138.15, 1050.80, 0.00, 0.00, 0.00);
- CreateDynamicObject(2566, 2266.82, -1135.39, 1050.05, 0.00, 0.00, 0.00);
- CreateDynamicObject(2573, 2269.89, -1137.08, 1049.65, 0.00, 0.00, 180.00);
- CreateDynamicObject(2296, 2259.53, -1141.51, 1049.60, 0.00, 0.00, 90.00);
- CreateDynamicObject(2290, 2262.06, -1139.50, 1049.62, 0.00, 0.00, -90.00);
- CreateDynamicObject(14481, 2268.57, -1141.19, 1051.98, 0.00, 0.00, -90.00);
- CreateDynamicObject(14677, 2268.23, -1136.23, 1051.62, 0.00, 0.00, 0.00);
- CreateDynamicObject(2514, 2266.6978, -1142.0214, 1049.6121, 0.00, 0.00, 180.00);
- //Interior 4
- CreateDynamicObject(2523, 284.52, 1479.90, 1079.32, 0.00, 0.00, 90.00);
- CreateDynamicObject(14481, 285.06, 1484.34, 1081.55, 0.00, 0.00, 90.00);
- CreateDynamicObject(14677, 282.27, 1478.71, 1081.43, 0.00, 0.00, 90.00);
- CreateDynamicObject(2514, 284.41, 1482.13, 1079.32, 0.00, 0.00, 90.00);
- CreateDynamicObject(2741, 283.93, 1479.68, 1080.86, 0.00, 0.00, 90.00);
- //Interior 5
- CreateDynamicObject(14481, 334.24, 1484.79, 1085.54, 0.00, 0.00, 0.00);
- CreateDynamicObject(2523, 331.35, 1481.80, 1083.44, 0.00, 0.00, 90.00);
- CreateDynamicObject(14677, 329.24, 1482.80, 1086.73, 0.00, 90.00, 90.00);
- CreateDynamicObject(2514, 331.44, 1485.37, 1083.41, 0.00, 0.00, 90.00);
- //Interior 6
- CreateDynamicObject(14481, 2251.30, -1216.16, 1050.35, 0.00, 0.00, 0.00);
- CreateDynamicObject(2523, 2254.29, -1218.28, 1048.02, 0.00, 0.00, 180.00);
- CreateDynamicObject(14677, 2254.18, -1216.99, 1049.15, 0.00, 90.00, 0.00);
- CreateDynamicObject(2685, 2252.96, -1218.77, 1049.20, 0.00, 0.00, 0.00);
- CreateDynamicObject(2741, 2254.46, -1218.69, 1049.27, 0.00, 0.00, 180.00);
- CreateDynamicObject(2514, 2256.17, -1215.35, 1048.01, 0.00, 0.00, -90.00);
- //Interior 7
- CreateDynamicObject(14481, 447.98, 1413.74, 1085.56, 0.00, 0.00, 0.00);
- CreateDynamicObject(2514, 444.25, 1411.01, 1083.34, 0.00, 0.00, 90.00);
- CreateDynamicObject(14677, 441.93, 1414.58, 1085.20, 0.00, 0.00, 90.00);
- CreateDynamicObject(2524, 444.32, 1413.70, 1083.23, 0.00, 0.00, 90.00);
- CreateDynamicObject(2741, 443.82, 1413.54, 1084.53, 0.00, 0.00, 90.00);
- //Interior 8
- CreateDynamicObject(14481, 2191.96, -1225.67, 1050.23, 0.00, 0.00, 180.00);
- CreateDynamicObject(14677, 2189.65, -1222.64, 1049.19, 0.00, 90.00, 90.00);
- CreateDynamicObject(2514, 2194.71, -1223.06, 1048.04, 0.00, 0.00, -90.00);
- //Interior 9
- CreateDynamicObject(14481, 236.98, 1208.54, 1081.38, 0.00, 0.00, 0.00);
- CreateDynamicObject(14677, 231.15, 1211.52, 1081.22, 0.00, 0.00, 0.00);
- CreateDynamicObject(2514, 234.53, 1209.11, 1079.26, 0.00, 0.00, 0.00);
- //Interior 10
- CreateDynamicObject(14481, 236.98, 1208.54, 1081.38, 0.00, 0.00, 0.00);
- CreateDynamicObject(14677, 231.15, 1211.52, 1081.22, 0.00, 0.00, 0.00);
- CreateDynamicObject(14481, 491.34, 1417.71, 1081.22, 0.00, 0.00, 180.00);
- CreateDynamicObject(2523, 488.23, 1418.39, 1079.25, 0.00, 0.00, 90.00);
- CreateDynamicObject(14677, 485.95, 1419.35, 1080.39, 0.00, 90.00, 90.00);
- CreateDynamicObject(2685, 487.71, 1419.77, 1080.59, 0.00, 0.00, 90.00);
- CreateDynamicObject(2741, 487.75, 1418.00, 1080.76, 0.00, 0.00, 90.00);
- CreateDynamicObject(2514, 488.33, 1421.46, 1079.26, 0.00, 0.00, 90.00);
- //Interior 11
- CreateDynamicObject(14481, 235.42, 1111.65, 1081.94, 0.00, 0.00, 0.00);
- CreateDynamicObject(14481, 235.22, 1120.15, 1085.73, 0.00, 0.00, 90.00);
- CreateDynamicObject(2514, 232.66, 1110.51, 1079.99, 0.00, 0.00, 90.00);
- CreateDynamicObject(2514, 234.69, 1119.00, 1083.98, 0.00, 0.00, 90.00);
- //Interior 12
- CreateDynamicObject(14481, 254.04, 1031.79, 1085.64, 0.00, 0.00, -90.00);
- CreateDynamicObject(14481, 242.74, 1041.80, 1089.26, 0.00, 0.00, 0.00);
- CreateDynamicObject(14677, 235.59, 1039.82, 1088.50, 0.00, 90.00, 90.00);
- CreateDynamicObject(2741, 237.45, 1038.66, 1088.69, 0.00, 0.00, 90.00);
- CreateDynamicObject(2514, 254.72, 1034.50, 1083.78, 0.00, 0.00, -90.00);
- CreateDynamicObject(2514, 237.84, 1040.75, 1087.30, 0.00, 0.00, 90.00);
- //Interior 13
- CreateDynamicObject(14481, 1292.86, -822.63, 1091.21, 0.00, 0.00, 180.00);
- CreateDynamicObject(14481, 1290.03, -822.46, 1091.21, 0.00, 0.00, 180.00);
- CreateDynamicObject(2514, 1293.03, -815.21, 1088.97, 0.00, 0.00, 270.00);
- CreateDynamicObject(2514, 1293.05, -817.63, 1088.97, 0.00, 0.00, 270.00);
- CreateDynamicObject(14677, 1283.85, -817.09, 1090.89, 0.00, 0.00, 90.00);
- CreateDynamicObject(2523, 1286.16, -815.89, 1088.97, 0.00, 0.00, 90.00);
- CreateDynamicObject(2523, 1286.11, -817.92, 1088.97, 0.00, 0.00, 90.00);
- CreateDynamicObject(2741, 1285.69, -818.15, 1090.32, 0.00, 0.00, 90.00);
- CreateDynamicObject(2741, 1285.69, -815.98, 1090.32, 0.00, 0.00, 90.00);
- CreateDynamicObject(2685, 1285.63, -816.49, 1090.52, 0.00, 0.00, 90.00);
- CreateDynamicObject(2685, 1285.62, -814.65, 1090.52, 0.00, 0.00, 90.00);
- CreateDynamicObject(1523, 1285.47, -823.37, 1088.94, 0.00, 0.00, 90.00);
- CreateDynamicObject(1523, 1285.40, -820.33, 1088.94, 0.00, 0.00, -90.00);
- CreateDynamicObject(2685, 1285.25, -821.85, 1091.99, 0.00, 0.00, 90.00);
- /*===========================>>Text Draws<<===========================*/
- //Text Draw Fome
- Hungry = TextDrawCreate(555.00, 128.00, "Hunger");
- TextDrawBackgroundColor(Hungry, -1);
- TextDrawFont(Hungry, 0);
- TextDrawLetterSize(Hungry, 0.619999, 1.399999);
- TextDrawColor(Hungry, 0xFF6600AA);
- TextDrawSetOutline(Hungry, 1);
- TextDrawSetProportional(Hungry, 1);
- TextDrawTextSize(Hungry, 139.000000, 754.000000);
- //Text Draw Sanitário
- Bladder = TextDrawCreate(550.00, 158.00, "Bladder");
- TextDrawBackgroundColor(Bladder, -1);
- TextDrawFont(Bladder, 0);
- TextDrawLetterSize(Bladder, 0.619999, 1.399999);
- TextDrawColor(Bladder, 0x16EB43FF);
- TextDrawSetOutline(Bladder, 1);
- TextDrawSetProportional(Bladder, 1);
- TextDrawTextSize(Bladder, 139.000000, 754.000000);
- //Text Draw Higiene
- Bath = TextDrawCreate(549.00, 188.00, "Hygiene");
- TextDrawBackgroundColor(Bath, -1);
- TextDrawFont(Bath, 0);
- TextDrawLetterSize(Bath, 0.619999, 1.399999);
- TextDrawColor(Bath, 0x33AAFFFF);
- TextDrawSetOutline(Bath, 1);
- TextDrawSetProportional(Bath, 1);
- TextDrawTextSize(Bath, 139.000000, 754.000000);
- //Text Draw Saúde
- Heal = TextDrawCreate(549.00, 218.00, "Health");
- TextDrawBackgroundColor(Heal, -1);
- TextDrawFont(Heal, 0);
- TextDrawLetterSize(Heal, 0.619999, 1.399999);
- TextDrawColor(Heal, 0xff0000ff);
- TextDrawSetOutline(Heal, 1);
- TextDrawSetProportional(Heal, 1);
- TextDrawTextSize(Heal, 139.000000, 754.000000);
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- //
- LoadPlayerStatesTextDraws(playerid);
- SetTimerEx("UpdateValues", 1000, 1, "i", playerid);
- /*======================================>>Barras<<==========================================*/
- pb_fome[playerid] = CreateProgressBar(549.00, 148.00, 55.50, 3.20, -8716033, 100.0);
- pb_bath[playerid] = CreateProgressBar(549.00, 208.00, 55.50, 3.20, 0x33AAFFFF, 100.0);
- pb_blad[playerid] = CreateProgressBar(549.00, 178.00, 55.50, 3.20, 0x16EB43FF, 100.0);
- pb_heal[playerid] = CreateProgressBar(549.00, 238.00, 55.50, 3.0, 0xff0000ff, 100.0);
- /*======================================>>Shows<<==========================================*/
- ShowProgressBarForPlayer(playerid, pb_fome[playerid]);
- ShowProgressBarForPlayer(playerid, pb_blad[playerid]);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- ShowProgressBarForPlayer(playerid, pb_heal[playerid]);
- TextDrawShowForPlayer(playerid, Hungry);
- TextDrawShowForPlayer(playerid, Bladder);
- TextDrawShowForPlayer(playerid, Bath);
- TextDrawShowForPlayer(playerid, Heal);
- /*======================================>>Timers<<==========================================*/
- SetTimerEx("Fome", 360000, true, "e", playerid);
- SetTimerEx("Blad", 360000, true, "e", playerid);
- SetTimerEx("TakeBath", 360000, true, "e", playerid);
- SetTimerEx("HealFome", 240000, true, "e", playerid);
- SetTimerEx("HealBath", 240000, true, "e", playerid);
- /*======================================>>Sets<<===========================================*/
- SetProgressBarValue(pb_fome[playerid], 0.0);
- SetProgressBarValue(pb_blad[playerid], 0.0);
- SetProgressBarValue(pb_bath[playerid], 100.0);
- SetProgressBarValue(pb_heal[playerid], 100.0);
- /*=====================================>>States<<=========================================*/
- hungry[playerid] = 0;
- bladder[playerid] = 0;
- shower[playerid] = 0;
- /*=====================================>>Removes<<=========================================*/
- RemoveBuildingForPlayer(playerid, 15028, 2263.1250, -1138.2422, 1049.8438, 0.25);
- RemoveBuildingForPlayer(playerid, 15026, 2264.9063, -1137.7656, 1051.3594, 0.25);
- RemoveBuildingForPlayer(playerid, 2528, 249.5938, 1293.5469, 1079.2500, 0.25);
- RemoveBuildingForPlayer(playerid, 2520, 252.3203, 1293.4844, 1079.2344, 0.25);
- RemoveBuildingForPlayer(playerid, 2522, 249.6719, 1294.4766, 1079.2031, 0.25);
- RemoveBuildingForPlayer(playerid, 14719, 218.7422, 1290.8203, 1082.8672, 0.25);
- RemoveBuildingForPlayer(playerid, 2524, 252.3594, 1247.9922, 1083.2422, 0.25);
- RemoveBuildingForPlayer(playerid, 2525, 252.5703, 1249.2109, 1083.2500, 0.25);
- RemoveBuildingForPlayer(playerid, 2526, 253.7656, 1249.1797, 1083.2344, 0.25);
- RemoveBuildingForPlayer(playerid, 2523, 284.5078, 1480.5156, 1079.2500, 0.25);
- RemoveBuildingForPlayer(playerid, 2528, 284.4063, 1482.2813, 1079.2500, 0.25);
- RemoveBuildingForPlayer(playerid, 2522, 284.4844, 1484.4219, 1079.1953, 0.25);
- RemoveBuildingForPlayer(playerid, 2520, 287.1328, 1483.4297, 1079.2266, 0.25);
- RemoveBuildingForPlayer(playerid, 2527, 331.5391, 1483.3281, 1083.4609, 0.25);
- RemoveBuildingForPlayer(playerid, 2518, 332.7266, 1485.2969, 1083.0156, 0.25);
- RemoveBuildingForPlayer(playerid, 2521, 332.3359, 1485.3047, 1083.4141, 0.25);
- RemoveBuildingForPlayer(playerid, 2519, 334.3359, 1485.3047, 1083.4141, 0.25);
- RemoveBuildingForPlayer(playerid, 2249, 2251.3594, -1218.1797, 1048.6953, 0.25);
- RemoveBuildingForPlayer(playerid, 2528, 2254.4063, -1218.2734, 1048.0234, 0.25);
- RemoveBuildingForPlayer(playerid, 2526, 2252.4297, -1215.4531, 1048.0391, 0.25);
- RemoveBuildingForPlayer(playerid, 2523, 2254.1953, -1215.4531, 1048.0156, 0.25);
- RemoveBuildingForPlayer(playerid, 2520, 445.3125, 1410.6328, 1083.3125, 0.25);
- RemoveBuildingForPlayer(playerid, 2528, 444.2188, 1413.0391, 1083.3281, 0.25);
- RemoveBuildingForPlayer(playerid, 2523, 444.3203, 1414.0000, 1083.3359, 0.25);
- RemoveBuildingForPlayer(playerid, 2522, 447.9766, 1414.2656, 1083.2813, 0.25);
- RemoveBuildingForPlayer(playerid, 2526, 2191.8750, -1225.3594, 1048.0391, 0.25);
- RemoveBuildingForPlayer(playerid, 2522, 236.9844, 1206.6406, 1079.2031, 0.25);
- RemoveBuildingForPlayer(playerid, 2520, 236.7500, 1208.1797, 1079.2344, 0.25);
- RemoveBuildingForPlayer(playerid, 2522, 236.9844, 1206.6406, 1079.2031, 0.25);
- RemoveBuildingForPlayer(playerid, 2520, 236.7500, 1208.1797, 1079.2344, 0.25);
- RemoveBuildingForPlayer(playerid, 2523, 488.3281, 1419.7734, 1079.2578, 0.25);
- RemoveBuildingForPlayer(playerid, 2520, 490.3906, 1420.0859, 1079.2344, 0.25);
- RemoveBuildingForPlayer(playerid, 2522, 491.3750, 1418.6328, 1079.2031, 0.25);
- RemoveBuildingForPlayer(playerid, 2520, 234.6016, 1109.3828, 1079.9453, 0.25);
- RemoveBuildingForPlayer(playerid, 2522, 235.6016, 1112.2422, 1079.9688, 0.25);
- RemoveBuildingForPlayer(playerid, 2520, 237.3438, 1119.1641, 1083.9609, 0.25);
- RemoveBuildingForPlayer(playerid, 2522, 234.6953, 1120.1563, 1083.9297, 0.25);
- RemoveBuildingForPlayer(playerid, 2522, 238.4219, 1042.5469, 1087.2422, 0.25);
- RemoveBuildingForPlayer(playerid, 2520, 241.0703, 1041.5547, 1087.2734, 0.25);
- RemoveBuildingForPlayer(playerid, 2520, 252.0234, 1032.6328, 1083.6953, 0.25);
- RemoveBuildingForPlayer(playerid, 2522, 254.7344, 1033.0703, 1083.6953, 0.25);
- RemoveBuildingForPlayer(playerid, 2230, 1288.9375, -823.4375, 1088.9453, 0.25);
- RemoveBuildingForPlayer(playerid, 1762, 1289.9531, -820.3281, 1088.9766, 0.25);
- RemoveBuildingForPlayer(playerid, 2227, 1291.1016, -823.9766, 1088.9453, 0.25);
- RemoveBuildingForPlayer(playerid, 1762, 1291.6484, -820.3281, 1088.9766, 0.25);
- RemoveBuildingForPlayer(playerid, 2090, 1290.1172, -816.3281, 1088.9531, 0.25);
- RemoveBuildingForPlayer(playerid, 2230, 1293.1406, -823.8750, 1088.9141, 0.25);
- RemoveBuildingForPlayer(playerid, 14462, 1293.5703, -791.5703, 1090.8672, 0.25);
- RemoveBuildingForPlayer(playerid, 2528, 2194.6953, -1223.1172, 1048.0234, 0.25);
- RemoveBuildingForPlayer(playerid, 2528, 234.5781, 1209.2344, 1079.2500, 0.25);
- RemoveBuildingForPlayer(playerid, 2528, 488.2266, 1421.5391, 1079.2500, 0.25);
- RemoveBuildingForPlayer(playerid, 2528, 232.6328, 1110.5938, 1079.9844, 0.25);
- RemoveBuildingForPlayer(playerid, 2528, 234.6172, 1119.2266, 1083.9766, 0.25);
- RemoveBuildingForPlayer(playerid, 2528, 254.8125, 1034.4141, 1083.7188, 0.25);
- RemoveBuildingForPlayer(playerid, 2528, 237.8828, 1040.6016, 1087.2891, 0.25);
- RemovePlayerAttachedObject(playerid, 0);
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- /*========================>>Shows<<=========================*/
- ShowProgressBarForPlayer(playerid, pb_fome[playerid]);
- ShowProgressBarForPlayer(playerid, pb_blad[playerid]);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- ShowProgressBarForPlayer(playerid, pb_heal[playerid]);
- TextDrawShowForPlayer(playerid, Hungry);
- TextDrawShowForPlayer(playerid, Bladder);
- TextDrawShowForPlayer(playerid, Bath);
- TextDrawShowForPlayer(playerid, Heal);
- /*========================>>Stats<<=========================*/
- hungry[playerid] = 0;
- bladder[playerid] = 0;
- shower[playerid] = 0;
- return 1;
- }
- public OnPlayerPickUpDynamicPickup(playerid, pickupid)
- {
- if(pickupid == Picks[1])
- {
- SetPlayerPos(playerid, 364.6065, -73.6207, 1001.5078); //Burguer Shot
- SetPlayerFacingAngle(playerid, 299.308532); //Burguer Shot
- SetPlayerInterior(playerid, 10); //Burguer Shot
- SetPlayerVirtualWorld(playerid, 90);//Burguer Shot
- }
- if(pickupid == Picks[2])
- {
- SetPlayerPos(playerid, 372.231872, -132.139801, 1001.492187); //Pizza Stack
- SetPlayerFacingAngle(playerid, 356.985778); //Pizza Stack
- SetPlayerInterior(playerid, 5); //Pizza Stack
- SetPlayerVirtualWorld(playerid, 90);//Pizza Stack
- }
- if(pickupid == Picks[3])
- {
- SetPlayerPos(playerid, 365.1477, -9.8449, 1001.8516); //Cluckin Bell
- SetPlayerFacingAngle(playerid, 1.999096); //Cluckin Bell
- SetPlayerInterior(playerid, 9); //Cluckin Bell
- SetPlayerVirtualWorld(playerid, 90);//Cluckin Bell
- }
- if(pickupid == Picks[4])
- {
- SetPlayerPos(playerid, 365.1477, -9.8449, 1001.8516); //Cluckin Bell
- SetPlayerFacingAngle(playerid, 1.999096); //Cluckin Bell 2
- SetPlayerInterior(playerid, 9); //Cluckin Bell 2
- SetPlayerVirtualWorld(playerid, 91);//Cluckin Bell 2
- }
- if(pickupid == Picks[5])
- {
- SetPlayerPos(playerid, 364.6065, -73.6207, 1001.5078);
- SetPlayerFacingAngle(playerid, 299);
- SetPlayerInterior(playerid, 10);
- SetPlayerVirtualWorld(playerid, 91);
- }
- if(pickupid == Picks[6])
- {
- SetPlayerPos(playerid, 365.1477, -9.8449, 1001.8516); //Cluckin Bell
- SetPlayerFacingAngle(playerid, 1.999096); //Cluckin Bell
- SetPlayerInterior(playerid, 9); //Cluckin Bell
- SetPlayerVirtualWorld(playerid, 92);//Cluckin Bell
- }
- ///////////////////////////////////////////////////////////////////////////////
- if(pickupid == Exits[6])
- {
- SetPlayerInterior(playerid, 0);
- SetPlayerPos(playerid, 923.1053,-1352.9966,13.3768);
- SetPlayerVirtualWorld(playerid, 0);
- SetPlayerFacingAngle(playerid, 90);
- }
- if(pickupid == Exits[5])
- {
- SetPlayerInterior(playerid, 0);
- SetPlayerPos(playerid, 813.2512, -1616.1481, 13.5547);
- SetPlayerVirtualWorld(playerid, 0);
- SetPlayerFacingAngle(playerid, 270);
- }
- if(pickupid == Exits[4])
- {
- SetPlayerInterior(playerid, 0);
- SetPlayerPos(playerid, 2422.8445, -1509.0049, 23.9922);
- SetPlayerVirtualWorld(playerid, 0);
- SetPlayerFacingAngle(playerid, 1.999096);
- }
- if(pickupid == Exits[3])
- {
- SetPlayerInterior(playerid, 0);
- SetPlayerPos(playerid, 2397.6667, -1895.5541, 13.3828);
- SetPlayerVirtualWorld(playerid, 0);
- SetPlayerFacingAngle(playerid, 1.999096);
- }
- if(pickupid == Exits[2])
- {
- SetPlayerInterior(playerid, 0);
- SetPlayerPos(playerid, 2101.2739, -1806.6340, 13.5547);
- SetPlayerVirtualWorld(playerid, 0);
- SetPlayerFacingAngle(playerid, 1.999096);
- }
- if(pickupid == Exits[1])
- {
- SetPlayerInterior(playerid, 0);
- SetPlayerPos(playerid, 1199.4954, -920.9762, 43.1033);
- SetPlayerVirtualWorld(playerid, 0);
- SetPlayerFacingAngle(playerid, 1.999096);
- }
- return 1;
- }
- public OnPlayerEnterDynamicCP(playerid, checkpointid)
- {
- //Lanchonetes
- if(checkpointid == CheckFix[1] || checkpointid == CheckFix[2] || checkpointid == CheckFix[3])
- {
- ShowPlayerDialog(playerid, DIALOG_LANCHE, DIALOG_STYLE_LIST, "{FFD700}Foods", "Joint-Hot\nPasta\nLasagna\nPastel\nMeat\nPizza Slice\nBurguer\nX-Salad\nPotato Fries\nHot Dog\nCrocket", "Buy", "Close");
- }
- //Sanitários
- if(checkpointid == CheckPee[0])
- {
- ShowPlayerDialog(playerid, DIALOG_BLAD_0, DIALOG_STYLE_LIST, "Toilet", "Urinate (man)\nUrinate(woman)\nDefecate", "Select", "Close");
- }
- if(checkpointid == CheckBath[0])
- {
- ShowPlayerDialog(playerid, DIALOG_BATH_0, DIALOG_STYLE_MSGBOX, "Shower", "Take a bath?", "Take", "Close");
- }
- if(checkpointid == CheckHand[0])
- {
- ShowPlayerDialog(playerid, DIALOG_HAND_0, DIALOG_STYLE_MSGBOX, "Sink", "Wash your hands?", "Wash", "Close");
- }
- if(checkpointid == CheckPee[1])
- {
- ShowPlayerDialog(playerid, DIALOG_BLAD_1, DIALOG_STYLE_LIST, "Toilet", "Urinate (man)\nUrinate(woman)\nDefecate", "Select", "Close");
- }
- if(checkpointid == CheckBath[1])
- {
- ShowPlayerDialog(playerid, DIALOG_BATH_1, DIALOG_STYLE_MSGBOX, "Shower", "Take a bath?", "Take", "Close");
- }
- if(checkpointid == CheckHand[1])
- {
- ShowPlayerDialog(playerid, DIALOG_HAND_1, DIALOG_STYLE_MSGBOX, "Sink", "Wash your hands?", "Wash", "Close");
- }
- if(checkpointid == CheckPee[2])
- {
- ShowPlayerDialog(playerid, DIALOG_BLAD_2, DIALOG_STYLE_LIST, "Toilet", "Urinate (man)\nUrinate(woman)\nDefecate", "Select", "Close");
- }
- if(checkpointid == CheckBath[2])
- {
- ShowPlayerDialog(playerid, DIALOG_BATH_2, DIALOG_STYLE_MSGBOX, "Shower", "Take a bath?", "Take", "Close");
- }
- if(checkpointid == CheckHand[2])
- {
- ShowPlayerDialog(playerid, DIALOG_HAND_2, DIALOG_STYLE_MSGBOX, "Sink", "Wash your hands?", "Wash", "Close");
- }
- if(checkpointid == CheckPee[3])
- {
- ShowPlayerDialog(playerid, DIALOG_BLAD_3, DIALOG_STYLE_LIST, "Toilet", "Urinate (man)\nUrinate(woman)\nDefecate", "Select", "Close");
- }
- if(checkpointid == CheckBath[3])
- {
- ShowPlayerDialog(playerid, DIALOG_BATH_3, DIALOG_STYLE_MSGBOX, "Shower", "Take a bath?", "Take", "Close");
- }
- if(checkpointid == CheckHand[3])
- {
- ShowPlayerDialog(playerid, DIALOG_HAND_3, DIALOG_STYLE_MSGBOX, "Sink", "Wash your hands?", "Wash", "Close");
- }
- if(checkpointid == CheckPee[4])
- {
- ShowPlayerDialog(playerid, DIALOG_BLAD_4, DIALOG_STYLE_LIST, "Toilet", "Urinate (man)\nUrinate(woman)\nDefecate", "Select", "Close");
- }
- if(checkpointid == CheckBath[4])
- {
- ShowPlayerDialog(playerid, DIALOG_BATH_4, DIALOG_STYLE_MSGBOX, "Shower", "Take a bath?", "Take", "Close");
- }
- if(checkpointid == CheckHand[4])
- {
- ShowPlayerDialog(playerid, DIALOG_HAND_4, DIALOG_STYLE_MSGBOX, "Sink", "Wash your hands?", "Wash", "Close");
- }
- if(checkpointid == CheckPee[5])
- {
- ShowPlayerDialog(playerid, DIALOG_BLAD_5, DIALOG_STYLE_LIST, "Toilet", "Urinate (man)\nUrinate(woman)\nDefecate", "Select", "Close");
- }
- if(checkpointid == CheckBath[5])
- {
- ShowPlayerDialog(playerid, DIALOG_BATH_5, DIALOG_STYLE_MSGBOX, "Shower", "Take a bath?", "Take", "Close");
- }
- if(checkpointid == CheckHand[5])
- {
- ShowPlayerDialog(playerid, DIALOG_HAND_5, DIALOG_STYLE_MSGBOX, "Sink", "Wash your hands?", "Wash", "Close");
- }
- if(checkpointid == CheckPee[6])
- {
- ShowPlayerDialog(playerid, DIALOG_BLAD_6, DIALOG_STYLE_LIST, "Toilet", "Urinate (man)\nUrinate(woman)\nDefecate", "Select", "Close");
- }
- if(checkpointid == CheckBath[6])
- {
- ShowPlayerDialog(playerid, DIALOG_BATH_6, DIALOG_STYLE_MSGBOX, "Shower", "Take a bath?", "Take", "Close");
- }
- if(checkpointid == CheckHand[6])
- {
- ShowPlayerDialog(playerid, DIALOG_HAND_6, DIALOG_STYLE_MSGBOX, "Sink", "Wash your hands?", "Wash", "Close");
- }
- if(checkpointid == CheckPee[7])
- {
- ShowPlayerDialog(playerid, DIALOG_BLAD_7, DIALOG_STYLE_LIST, "Toilet", "Urinate (man)\nUrinate(woman)\nDefecate", "Select", "Close");
- }
- if(checkpointid == CheckBath[7])
- {
- ShowPlayerDialog(playerid, DIALOG_BATH_7, DIALOG_STYLE_MSGBOX, "Shower", "Take a bath?", "Take", "Close");
- }
- if(checkpointid == CheckHand[7])
- {
- ShowPlayerDialog(playerid, DIALOG_HAND_7, DIALOG_STYLE_MSGBOX, "Sink", "Wash your hands?", "Wash", "Close");
- }
- if(checkpointid == CheckPee[8])
- {
- ShowPlayerDialog(playerid, DIALOG_BLAD_8, DIALOG_STYLE_LIST, "Toilet", "Urinate (man)\nUrinate(woman)\nDefecate", "Select", "Close");
- }
- if(checkpointid == CheckBath[8])
- {
- ShowPlayerDialog(playerid, DIALOG_BATH_8, DIALOG_STYLE_MSGBOX, "Shower", "Take a bath?", "Take", "Close");
- }
- if(checkpointid == CheckHand[8])
- {
- ShowPlayerDialog(playerid, DIALOG_HAND_8, DIALOG_STYLE_MSGBOX, "Sink", "Wash your hands?", "Wash", "Close");
- }
- if(checkpointid == CheckPee[9])
- {
- ShowPlayerDialog(playerid, DIALOG_BLAD_9, DIALOG_STYLE_LIST, "Toilet", "Urinate (man)\nUrinate(woman)\nDefecate", "Select", "Close");
- }
- if(checkpointid == CheckBath[9])
- {
- ShowPlayerDialog(playerid, DIALOG_BATH_9, DIALOG_STYLE_MSGBOX, "Shower", "Take a bath?", "Take", "Close");
- }
- if(checkpointid == CheckHand[9])
- {
- ShowPlayerDialog(playerid, DIALOG_HAND_9, DIALOG_STYLE_MSGBOX, "Sink", "Wash your hands?", "Wash", "Close");
- }
- if(checkpointid == CheckPee[10])
- {
- ShowPlayerDialog(playerid, DIALOG_BLAD_10, DIALOG_STYLE_LIST, "Toilet", "Urinate (man)\nUrinate(woman)\nDefecate", "Select", "Close");
- }
- if(checkpointid == CheckBath[10])
- {
- ShowPlayerDialog(playerid, DIALOG_BATH_10, DIALOG_STYLE_MSGBOX, "Shower", "Take a bath?", "Take", "Close");
- }
- if(checkpointid == CheckHand[10])
- {
- ShowPlayerDialog(playerid, DIALOG_HAND_10, DIALOG_STYLE_MSGBOX, "Sink", "Wash your hands?", "Wash", "Close");
- }
- if(checkpointid == CheckPee[11])
- {
- ShowPlayerDialog(playerid, DIALOG_BLAD_11, DIALOG_STYLE_LIST, "Toilet", "Urinate (man)\nUrinate(woman)\nDefecate", "Select", "Close");
- }
- if(checkpointid == CheckBath[11])
- {
- ShowPlayerDialog(playerid, DIALOG_BATH_11, DIALOG_STYLE_MSGBOX, "Shower", "Take a bath?", "Take", "Close");
- }
- if(checkpointid == CheckHand[11])
- {
- ShowPlayerDialog(playerid, DIALOG_HAND_11, DIALOG_STYLE_MSGBOX, "Sink", "Wash your hands?", "Wash", "Close");
- }
- if(checkpointid == CheckPee[12])
- {
- ShowPlayerDialog(playerid, DIALOG_BLAD_12, DIALOG_STYLE_LIST, "Toilet", "Urinate (man)\nUrinate(woman)\nDefecate", "Select", "Close");
- }
- if(checkpointid == CheckBath[12])
- {
- ShowPlayerDialog(playerid, DIALOG_BATH_12, DIALOG_STYLE_MSGBOX, "Shower", "Take a bath?", "Take", "Close");
- }
- if(checkpointid == CheckHand[12])
- {
- ShowPlayerDialog(playerid, DIALOG_HAND_12, DIALOG_STYLE_MSGBOX, "Sink", "Wash your hands?", "Wash", "Close");
- }
- if(checkpointid == CheckPee[13])
- {
- ShowPlayerDialog(playerid, DIALOG_BLAD_13, DIALOG_STYLE_LIST, "Toilet", "Urinate (man)\nUrinate(woman)\nDefecate", "Select", "Close");
- }
- if(checkpointid == CheckBath[13])
- {
- ShowPlayerDialog(playerid, DIALOG_BATH_13, DIALOG_STYLE_MSGBOX, "Shower", "Take a bath?", "Take", "Close");
- }
- if(checkpointid == CheckHand[13])
- {
- ShowPlayerDialog(playerid, DIALOG_HAND_13, DIALOG_STYLE_MSGBOX, "Sink", "Wash your hands?", "Wash", "Close");
- }
- if(checkpointid == CheckPee[14])
- {
- ShowPlayerDialog(playerid, DIALOG_BLAD_11_2, DIALOG_STYLE_LIST, "Toilet", "Urinate (man)\nUrinate(woman)\nDefecate", "Select", "Close");
- }
- if(checkpointid == CheckBath[14])
- {
- ShowPlayerDialog(playerid, DIALOG_BATH_11_2, DIALOG_STYLE_MSGBOX, "Shower", "Take a bath?", "Take", "Close");
- }
- if(checkpointid == CheckHand[14])
- {
- ShowPlayerDialog(playerid, DIALOG_HAND_11_2, DIALOG_STYLE_MSGBOX, "Sink", "Wash your hands?", "Wash", "Close");
- }
- if(checkpointid == CheckPee[15])
- {
- ShowPlayerDialog(playerid, DIALOG_BLAD_12_2, DIALOG_STYLE_LIST, "Toilet", "Urinate (man)\nUrinate(woman)\nDefecate", "Select", "Close");
- }
- if(checkpointid == CheckBath[15])
- {
- ShowPlayerDialog(playerid, DIALOG_BATH_12_2, DIALOG_STYLE_MSGBOX, "Shower", "Take a bath?", "Take", "Close");
- }
- if(checkpointid == CheckHand[15])
- {
- ShowPlayerDialog(playerid, DIALOG_HAND_12_2, DIALOG_STYLE_MSGBOX, "Sink", "Wash your hands?", "Wash", "Close");
- }
- if(checkpointid == CheckPee[16])
- {
- ShowPlayerDialog(playerid, DIALOG_BLAD_13_2, DIALOG_STYLE_LIST, "Toilet", "Urinate (man)\nUrinate(woman)\nDefecate", "Select", "Close");
- }
- if(checkpointid == CheckBath[16])
- {
- ShowPlayerDialog(playerid, DIALOG_BATH_13_2, DIALOG_STYLE_MSGBOX, "Shower", "Take a bath?", "Take", "Close");
- }
- if(checkpointid == CheckHand[16])
- {
- ShowPlayerDialog(playerid, DIALOG_HAND_13_2, DIALOG_STYLE_MSGBOX, "Sink", "Wash your hands?", "Wash", "Close");
- }
- return 1;
- }
- public Fome(playerid)
- {
- if(hungry[playerid] == 0)
- {
- SetProgressBarValue(pb_fome[playerid], GetProgressBarValue(pb_fome[playerid]) + 10.0);
- UpdateProgressBar(pb_fome[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_fome[playerid]);
- }
- if(GetProgressBarValue(pb_fome[playerid]) >= 90)
- {
- SendClientMessage(playerid,-1,"WARN: You are hungry and need to eat something before it becomes malnourished!");
- }
- if(GetProgressBarValue(pb_fome[playerid]) >= 100)
- {
- hungry[playerid] = 1;
- SendClientMessage(playerid,-1,"You need to eat something now!");
- }
- return 1;
- }
- public Blad(playerid)
- {
- SetProgressBarValue(pb_blad[playerid], GetProgressBarValue(pb_blad[playerid]) + 5.0);
- UpdateProgressBar(pb_blad[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_blad[playerid]);
- if(GetProgressBarValue(pb_blad[playerid]) >= 90)
- {
- if(GetProgressBarValue(pb_blad[playerid]) != 100)
- {
- SendClientMessage(playerid,-1,"WARN:You need to use a bathroom urgently or your bladder level will reach 100!");
- SendClientMessage(playerid,-1,"WARN:When this happens, you will make your needs will be and where your level of hygiene is 0.");
- }
- }
- if(GetProgressBarValue(pb_blad[playerid]) >= 100)
- {
- SetProgressBarValue(pb_bath[playerid], 0.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- shower[playerid] = 1;
- SendClientMessage(playerid, -1,"{FF0000}WARN{00FF00}What a horror! You made your needs pants, go to a bathroom and take a bath!");
- SetProgressBarValue(pb_blad[playerid], 0.0);
- UpdateProgressBar(pb_blad[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_blad[playerid]);
- }
- return 1;
- }
- public TakeBath(playerid)
- {
- if(!IsPlayerConnected(playerid)) return 0x01;
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) - 10.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- if(GetProgressBarValue(pb_bath[playerid]) <= 10)
- {
- if(GetProgressBarValue(pb_bath[playerid]) != 0)
- {
- SendClientMessage(playerid,-1,"{FF0000}WARN{00FF00}:You need to bathe or your health level will go down!");
- }
- }
- if(GetProgressBarValue(pb_bath[playerid]) == 0)
- {
- if(shower[playerid] == 0)
- {
- SendClientMessage(playerid,-1,"{FF0000}WARN{00FF00}:That smell bad! Your hygiene level reached zero, bathe or your health level will be harmed!");
- shower[playerid] = 1;
- }
- }
- return 1;
- }
- public OnPlayerDeath(playerid)
- {
- SetProgressBarValue(pb_fome[playerid], 0.0);
- UpdateProgressBar(pb_fome[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_fome[playerid]);
- //
- SetProgressBarValue(pb_heal[playerid], 100.0);
- UpdateProgressBar(pb_heal[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_heal[playerid]);
- //
- SetProgressBarValue(pb_bath[playerid], 100.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- //
- SetProgressBarValue(pb_blad[playerid], 0.0);
- UpdateProgressBar(pb_blad[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_blad[playerid]);
- //
- shower[playerid] = 0;
- hungry[playerid] = 0;
- bladder[playerid] = 0;
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- /*===========================Lanchonetes===========================*/
- if(dialogid == DIALOG_LANCHE)
- {
- if(response)
- {
- if(GetPlayerMoney(playerid) < 10) return SendClientMessage(playerid, -1, "You haven't money, you need $10 to eat something!");
- GivePlayerMoney(playerid, -10);
- hungry[playerid] = 0;
- ApplyAnimation(playerid,"FOOD","EAT_Chicken",4.1,0,1,1,1,1);
- SetProgressBarValue(pb_fome[playerid], GetProgressBarValue(pb_fome[playerid]) - 25.0);
- SetProgressBarValue(pb_blad[playerid], GetProgressBarValue(pb_blad[playerid]) + 10.0);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) - 5.0);
- UpdateProgressBar(pb_fome[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_fome[playerid]);
- UpdateProgressBar(pb_blad[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_blad[playerid]);
- switch(listitem)
- {
- case 0: SendClientMessage(playerid, 0xFFFF00FF, "You ate a Joint-Hot! Hunger -25.");
- case 1: SendClientMessage(playerid, 0xFFFF00FF, "You ate a pasta! Hunger -25.");
- case 2: SendClientMessage(playerid, 0xFFFF00FF, "You ate a lasagna! Hunger -25.");
- case 3: SendClientMessage(playerid, 0xFFFF00FF, "You ate a Pastel! Hunger -25.");
- case 4: SendClientMessage(playerid, 0xFFFF00FF, "You ate a meat! Hunger -25.");
- case 5: SendClientMessage(playerid, 0xFFFF00FF, "You ate a Pizza slice! Hunger -25.");
- case 6: SendClientMessage(playerid, 0xFFFF00FF, "You ate a Burguer! Hunger -25.");
- case 7: SendClientMessage(playerid, 0xFFFF00FF, "You ate a Salad! Hunger -25.");
- case 8: SendClientMessage(playerid, 0xFFFF00FF, "You ate a potato fries! Hunger -25.");
- case 9: SendClientMessage(playerid, 0xFFFF00FF, "You ate a Hot dog! Hunger -25.");
- case 10: SendClientMessage(playerid, 0xFFFF00FF, "Você comeu um Crockett! Hunger -25.");
- }
- }
- }
- /*============================Banheiros============================*/
- //Sanitário (interior: 0)
- if(dialogid == DIALOG_BLAD_0 && response)
- {
- if(listitem == 0)
- {
- SetPlayerArmedWeapon(playerid, 0);
- SetCameraBehindPlayer(playerid);
- SetPlayerSpecialAction(playerid, 68);
- SetTimerEx("StopAnims", 10000, 0, "e", playerid);
- SetProgressBarValue(pb_blad[playerid], GetProgressBarValue(pb_blad[playerid]) -25.0);
- UpdateProgressBar(pb_blad[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_blad[playerid]);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) -10.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- }
- if(listitem == 1)
- {
- SetPlayerPos(playerid, 217.4493,1288.6909,1082.1406);
- SetPlayerFacingAngle(playerid, -90);
- SetTimerEx("PeeOrShit", 100, 0, "e", playerid);
- SetProgressBarValue(pb_blad[playerid], GetProgressBarValue(pb_blad[playerid]) -25.0);
- UpdateProgressBar(pb_blad[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_blad[playerid]);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) -10.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- }
- if(listitem == 2)
- {
- SetPlayerPos(playerid, 217.4493,1288.6909,1082.1406);
- SetPlayerFacingAngle(playerid, -90);
- SetTimerEx("PeeOrShit", 100, 0, "e", playerid);
- SetProgressBarValue(pb_blad[playerid], 0.0);
- UpdateProgressBar(pb_blad[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_blad[playerid]);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) -25.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- }
- return 1;
- }
- //Chuveiro (interior: 0)
- if(dialogid == DIALOG_BATH_0)
- {
- if(response == 1)
- {
- SetPlayerPos(playerid, 217.5809,1289.9369,1082.1406);
- SetPlayerFacingAngle(playerid, 90);
- SetPlayerCameraPos(playerid, 218.3481,1290.1981,1082.1406);
- SetPlayerCameraLookAt(playerid, 217.5809,1289.9369, 1082.1406);
- TogglePlayerControllable(playerid, false);
- ApplyAnimation(playerid,"RAPPING","RAP_C_Loop",4.0,1,0,0,0,0);
- SetPlayerAttachedObject(playerid, 0, 18669, 1, 1.313215, 0.433963, -1.531419, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000);
- SetTimerEx("StopBath", 20000, 0, "e", playerid);
- }
- }
- //Lavar as mãos (interior:0)
- if(dialogid == DIALOG_HAND_0)
- {
- if(response == 1)
- {
- SetPlayerPos(playerid, 217.3371,1287.4032,1082.1406);
- ApplyAnimation(playerid, "DEALER", "DEALER_DEAL", 4.0, 0, 0, 0, 0, 0);
- SetPlayerFacingAngle(playerid, 90);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) +10.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- SendClientMessage(playerid, -1, "Clean Hands, hygiene +15!");
- shower[playerid] = 0;
- }
- return 1;
- }
- //Sanitário (interior: 1)
- if(dialogid == DIALOG_BLAD_1 && response)
- {
- if(listitem == 0)
- {
- SetPlayerSpecialAction(playerid, 68);
- SetTimerEx("StopAnims", 10000, 0, "e", playerid);
- SetProgressBarValue(pb_blad[playerid], GetProgressBarValue(pb_blad[playerid]) -25.0);
- UpdateProgressBar(pb_blad[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_blad[playerid]);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) -10.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- }
- if(listitem == 1)
- {
- SetPlayerPos(playerid, 249.5946,1294.0880,1080.2578);
- SetPlayerFacingAngle(playerid, 180);
- SetTimerEx("PeeOrShit", 100, 0, "e", playerid);
- SetProgressBarValue(pb_blad[playerid], GetProgressBarValue(pb_blad[playerid]) -25.0);
- UpdateProgressBar(pb_blad[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_blad[playerid]);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) -10.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- }
- if(listitem == 2)
- {
- SetPlayerPos(playerid, 249.5946,1294.0880,1080.2578);
- SetPlayerFacingAngle(playerid, 180);
- SetTimerEx("PeeOrShit", 100, 0, "e", playerid);
- SetProgressBarValue(pb_blad[playerid], 0.0);
- UpdateProgressBar(pb_blad[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_blad[playerid]);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) -25.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- }
- }
- //Chuveiro (interior: 1)
- if(dialogid == DIALOG_BATH_1)
- {
- if(response == 1)
- {
- SetPlayerPos(playerid, 252.4018,1294.3483,1080.2578);
- SetPlayerFacingAngle(playerid, 270);
- TogglePlayerControllable(playerid, false);
- SetPlayerCameraPos(playerid, 250.9653,1294.3915,1080.2604);
- SetPlayerCameraLookAt(playerid, 252.4018,1294.3483,1080.2578);
- SetPlayerAttachedObject(playerid, 0, 18669, 1, 1.170709, 0.255128, -1.616097, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000);
- ApplyAnimation(playerid,"RAPPING","RAP_C_Loop",4.0,1,0,0,0,0);
- SetTimerEx("StopBath", 20000, 0, "e", playerid);
- }
- }
- //Lavar as mãos (interior:1)
- if(dialogid == DIALOG_HAND_1)
- {
- if(response == 1)
- {
- SetPlayerPos(playerid, 250.1018, 1292.2946, 1080.2651);
- ApplyAnimation(playerid, "DEALER", "DEALER_DEAL", 4.0, 0, 0, 0, 0, 0);
- SetPlayerFacingAngle(playerid, -270);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) +10.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- SendClientMessage(playerid, -1, "Clean Hands, hygiene +15!");
- shower[playerid] = 0;
- }
- }
- //Sanitário (interior: 2)
- if(dialogid == DIALOG_BLAD_2 && response)
- {
- if(listitem == 0)
- {
- SetPlayerPos(playerid, 254.2818,1249.4246,1084.2578);
- SetPlayerFacingAngle(playerid, 270);
- SetTimerEx("StopAnims", 10000, 0, "e", playerid);
- SetPlayerSpecialAction(playerid, 68);
- SetProgressBarValue(pb_blad[playerid], GetProgressBarValue(pb_blad[playerid]) -25.0);
- UpdateProgressBar(pb_blad[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_blad[playerid]);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) -10.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- }
- if(listitem == 1)
- {
- SetPlayerPos(playerid, 254.5927, 1249.3763, 1084.2578);
- SetPlayerFacingAngle(playerid, 90);
- SetTimerEx("PeeOrShit", 100, 0, "e", playerid);
- SetProgressBarValue(pb_blad[playerid], GetProgressBarValue(pb_blad[playerid]) -25.0);
- UpdateProgressBar(pb_blad[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_blad[playerid]);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) -10.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- }
- if(listitem == 2)
- {
- SetPlayerPos(playerid, 254.5927, 1249.3763, 1084.2578);
- SetPlayerFacingAngle(playerid, 90);
- SetTimerEx("PeeOrShit", 100, 0, "e", playerid);
- SetProgressBarValue(pb_blad[playerid], 0.0);
- UpdateProgressBar(pb_blad[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_blad[playerid]);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) -25.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- }
- }
- //Chuveiro (interior: 2)
- if(dialogid == DIALOG_BATH_2)
- {
- if(response == 1)
- {
- SetPlayerPos(playerid, 252.5452, 1249.1674, 1084.2578);
- SetPlayerFacingAngle(playerid, 360);
- TogglePlayerControllable(playerid, false);
- SetPlayerCameraPos(playerid, 252.5592,1247.8557,1084.2578);
- SetPlayerCameraLookAt(playerid, 252.5452, 1249.1674, 1084.2578);
- ApplyAnimation(playerid,"RAPPING","RAP_C_Loop",4.0,1,0,0,0,0);
- SetPlayerAttachedObject(playerid, 0, 18669, 1, 1.313215, 0.433963, -1.531419, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000);
- SetTimerEx("StopBath", 20000, 0, "e", playerid);
- }
- }
- //Lavar as mãos (interior: 2)
- if(dialogid == DIALOG_HAND_2)
- {
- if(response == 1)
- {
- SetPlayerPos(playerid, 253.9562, 1247.6459, 1084.2578);
- ApplyAnimation(playerid, "DEALER", "DEALER_DEAL", 4.0, 0, 0, 0, 0, 0);
- SetPlayerFacingAngle(playerid, 180);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) +10.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- SendClientMessage(playerid, -1, "Clean Hands, hygiene +15!");
- shower[playerid] = 0;
- }
- }
- //Sanitário (interior: 3)
- if(dialogid == DIALOG_BLAD_3 && response)
- {
- if(listitem == 0)
- {
- SetPlayerSpecialAction(playerid, 68);
- SetTimerEx("StopAnims", 10000, 0, "e", playerid);
- SetProgressBarValue(pb_blad[playerid], GetProgressBarValue(pb_blad[playerid]) -25.0);
- UpdateProgressBar(pb_blad[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_blad[playerid]);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) -10.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- }
- if(listitem == 1)
- {
- SetPlayerPos(playerid, 2266.5532,-1141.5826,1050.6328);
- SetPlayerFacingAngle(playerid, 360);
- SetTimerEx("PeeOrShit", 100, 0, "e", playerid);
- SetProgressBarValue(pb_blad[playerid], GetProgressBarValue(pb_blad[playerid]) -25.0);
- UpdateProgressBar(pb_blad[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_blad[playerid]);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) -10.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- }
- if(listitem == 2)
- {
- SetPlayerPos(playerid, 2266.5532,-1141.5826,1050.6328);
- SetPlayerFacingAngle(playerid, 360);
- SetTimerEx("PeeOrShit", 100, 0, "e", playerid);
- SetProgressBarValue(pb_blad[playerid], 0.0);
- UpdateProgressBar(pb_blad[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_blad[playerid]);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) -25.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- }
- }
- //Chuveiro (interior: 3)
- if(dialogid == DIALOG_BATH_3)
- {
- if(response == 1)
- {
- SetPlayerPos(playerid, 2268.4663,-1141.3691,1050.6328);
- SetPlayerFacingAngle(playerid, 270);
- TogglePlayerControllable(playerid, false);
- SetPlayerCameraPos(playerid, 2267.8469,-1141.6576,1050.6328);
- SetPlayerCameraLookAt(playerid, 2268.4663,-1141.3691,1050.6328);
- ApplyAnimation(playerid,"RAPPING","RAP_C_Loop",4.0,1,0,0,0,0);
- SetPlayerAttachedObject(playerid, 0, 18669, 1, 1.313215, 0.433963, -1.531419, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000);
- SetTimerEx("StopBath", 20000, 0, "e", playerid);
- }
- }
- //Lavar as mãos (interior: 3)
- if(dialogid == DIALOG_HAND_3)
- {
- if(response == 1)
- {
- SetPlayerPos(playerid, 2267.8716,-1138.9474,1050.6328);
- ApplyAnimation(playerid, "DEALER", "DEALER_DEAL", 4.0, 0, 0, 0, 0, 0);
- SetPlayerFacingAngle(playerid, 360);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) +10.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- SendClientMessage(playerid, -1, "Clean Hands, hygiene +15!");
- shower[playerid] = 0;
- }
- }
- //Sanitário (interior: 4)
- if(dialogid == DIALOG_BLAD_4 && response)
- {
- if(listitem == 0)
- {
- SetPlayerSpecialAction(playerid, 68);
- SetTimerEx("StopAnims", 10000, 0, "e", playerid);
- SetProgressBarValue(pb_blad[playerid], GetProgressBarValue(pb_blad[playerid]) -25.0);
- UpdateProgressBar(pb_blad[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_blad[playerid]);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) -10.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- }
- if(listitem == 1)
- {
- SetPlayerPos(playerid, 284.8386,1482.1665,1080.2578);
- SetPlayerFacingAngle(playerid, 270);
- SetTimerEx("PeeOrShit", 100, 0, "e", playerid);
- SetProgressBarValue(pb_blad[playerid], GetProgressBarValue(pb_blad[playerid]) -25.0);
- UpdateProgressBar(pb_blad[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_blad[playerid]);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) -10.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- }
- if(listitem == 2)
- {
- SetPlayerPos(playerid, 284.8386,1482.1665,1080.2578);
- SetPlayerFacingAngle(playerid, 270);
- SetTimerEx("PeeOrShit", 100, 0, "e", playerid);
- SetProgressBarValue(pb_blad[playerid], 0.0);
- UpdateProgressBar(pb_blad[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_blad[playerid]);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) -25.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- }
- }
- //Chuveiro (interior: 4)
- if(dialogid == DIALOG_BATH_4)
- {
- if(response == 1)
- {
- SetPlayerPos(playerid, 284.4663,1484.3729,1080.2578);
- SetPlayerFacingAngle(playerid, 90);
- TogglePlayerControllable(playerid, false);
- SetPlayerCameraPos(playerid, 285.5734,1484.4746,1080.2578);
- SetPlayerCameraLookAt(playerid, 284.4663,1484.3729,1080.2578);
- ApplyAnimation(playerid,"RAPPING","RAP_C_Loop",4.0,1,0,0,0,0);
- SetPlayerAttachedObject(playerid, 0, 18669, 1, 1.313215, 0.433963, -1.531419, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000);
- SetTimerEx("StopBath", 20000, 0, "e", playerid);
- }
- }
- //Lavar as mãos (interior: 4)
- if(dialogid == DIALOG_HAND_4)
- {
- if(response == 1)
- {
- SetPlayerPos(playerid, 284.9266,1480.4369,1080.2578);
- ApplyAnimation(playerid, "DEALER", "DEALER_DEAL", 4.0, 0, 0, 0, 0, 0);
- SetPlayerFacingAngle(playerid, 90);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) +10.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- SendClientMessage(playerid, -1, "Clean Hands, hygiene +15!");
- shower[playerid] = 0;
- }
- }
- //Sanitário (interior: 5)
- if(dialogid == DIALOG_BLAD_5 && response)
- {
- if(listitem == 0)
- {
- SetPlayerArmedWeapon(playerid, 0);
- SetCameraBehindPlayer(playerid);
- SetPlayerSpecialAction(playerid, 68);
- SetTimerEx("StopAnims", 10000, 0, "e", playerid);
- SetProgressBarValue(pb_blad[playerid], GetProgressBarValue(pb_blad[playerid]) -25.0);
- UpdateProgressBar(pb_blad[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_blad[playerid]);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) -10.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- }
- if(listitem == 1)
- {
- SetPlayerPos(playerid, 331.8672,1485.4293,1084.4387);
- SetPlayerFacingAngle(playerid, 270);
- SetTimerEx("PeeOrShit", 100, 0, "e", playerid);
- SetProgressBarValue(pb_blad[playerid], GetProgressBarValue(pb_blad[playerid]) -25.0);
- UpdateProgressBar(pb_blad[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_blad[playerid]);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) -10.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- }
- if(listitem == 2)
- {
- SetPlayerPos(playerid, 331.8672,1485.4293,1084.4387);
- SetPlayerFacingAngle(playerid, 270);
- SetTimerEx("PeeOrShit", 100, 0, "e", playerid);
- SetProgressBarValue(pb_blad[playerid], 0.0);
- UpdateProgressBar(pb_blad[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_blad[playerid]);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) -25.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- }
- return 1;
- }
- //Chuveiro (interior: 5)
- if(dialogid == DIALOG_BATH_5)
- {
- if(response == 1)
- {
- SetPlayerPos(playerid, 334.3725,1485.1987,1084.4387);
- SetPlayerFacingAngle(playerid, 360);
- SetPlayerCameraPos(playerid, 334.4098,1484.0034,1084.4387);
- SetPlayerCameraLookAt(playerid, 334.3725,1485.1987,1084.4387);
- TogglePlayerControllable(playerid, false);
- ApplyAnimation(playerid,"RAPPING","RAP_C_Loop",4.0,1,0,0,0,0);
- SetPlayerAttachedObject(playerid, 0, 18669, 1, 1.313215, 0.433963, -1.531419, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000);
- SetTimerEx("StopBath", 20000, 0, "e", playerid);
- }
- }
- //Lavar as mãos (interior: 5)
- if(dialogid == DIALOG_HAND_5)
- {
- if(response == 1)
- {
- SetPlayerPos(playerid, 331.7560,1482.3073,1084.4387);
- ApplyAnimation(playerid, "DEALER", "DEALER_DEAL", 4.0, 0, 0, 0, 0, 0);
- SetPlayerFacingAngle(playerid, 90);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) +10.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- SendClientMessage(playerid, -1, "Clean Hands, hygiene +15!");
- shower[playerid] = 0;
- }
- return 1;
- }
- //Sanitário (interior: 6)
- if(dialogid == DIALOG_BLAD_6 && response)
- {
- if(listitem == 0)
- {
- SetPlayerArmedWeapon(playerid, 0);
- SetCameraBehindPlayer(playerid);
- SetPlayerSpecialAction(playerid, 68);
- SetTimerEx("StopAnims", 10000, 0, "e", playerid);
- SetProgressBarValue(pb_blad[playerid], GetProgressBarValue(pb_blad[playerid]) -25.0);
- UpdateProgressBar(pb_blad[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_blad[playerid]);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) -10.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- }
- if(listitem == 1)
- {
- SetPlayerPos(playerid, 2255.7407,-1215.3019,1049.0234);
- SetPlayerFacingAngle(playerid, 90);
- SetTimerEx("PeeOrShit", 100, 0, "e", playerid);
- SetProgressBarValue(pb_blad[playerid], GetProgressBarValue(pb_blad[playerid]) -25.0);
- UpdateProgressBar(pb_blad[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_blad[playerid]);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) -10.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- }
- if(listitem == 2)
- {
- SetPlayerPos(playerid, 2255.7407,-1215.3019,1049.0234);
- SetPlayerFacingAngle(playerid, 90);
- SetTimerEx("PeeOrShit", 100, 0, "e", playerid);
- SetProgressBarValue(pb_blad[playerid], 0.0);
- UpdateProgressBar(pb_blad[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_blad[playerid]);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) -25.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- }
- return 1;
- }
- //Chuveiro (interior: 6)
- if(dialogid == DIALOG_BATH_6)
- {
- if(response == 1)
- {
- SetPlayerPos(playerid, 2251.3164,-1215.6041,1049.0234);
- SetPlayerFacingAngle(playerid, 360);
- SetPlayerCameraPos(playerid, 2251.3867,-1216.7432,1049.0234);
- SetPlayerCameraLookAt(playerid, 2251.3164,-1215.6041,1049.0234);
- TogglePlayerControllable(playerid, false);
- ApplyAnimation(playerid,"RAPPING","RAP_C_Loop",4.0,1,0,0,0,0);
- SetPlayerAttachedObject(playerid, 0, 18669, 1, 1.313215, 0.433963, -1.531419, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000);
- SetTimerEx("StopBath", 20000, 0, "e", playerid);
- }
- }
- //Lavar as mãos (interior: 6)
- if(dialogid == DIALOG_HAND_6)
- {
- if(response == 1)
- {
- SetPlayerPos(playerid, 2253.7402,-1217.8741,1049.0234);
- ApplyAnimation(playerid, "DEALER", "DEALER_DEAL", 4.0, 0, 0, 0, 0, 0);
- SetPlayerFacingAngle(playerid, 180);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) +10.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- SendClientMessage(playerid, -1, "Clean Hands, hygiene +15!");
- shower[playerid] = 0;
- }
- return 1;
- }
- //Sanitário (interior: 7)
- if(dialogid == DIALOG_BLAD_7 && response)
- {
- if(listitem == 0)
- {
- SetPlayerArmedWeapon(playerid, 0);
- SetCameraBehindPlayer(playerid);
- SetPlayerSpecialAction(playerid, 68);
- SetTimerEx("StopAnims", 10000, 0, "e", playerid);
- SetProgressBarValue(pb_blad[playerid], GetProgressBarValue(pb_blad[playerid]) -25.0);
- UpdateProgressBar(pb_blad[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_blad[playerid]);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) -10.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- }
- if(listitem == 1)
- {
- SetPlayerPos(playerid, 444.6776,1411.0464,1084.3047);
- SetPlayerFacingAngle(playerid, 270);
- SetTimerEx("PeeOrShit", 100, 0, "e", playerid);
- SetProgressBarValue(pb_blad[playerid], GetProgressBarValue(pb_blad[playerid]) -25.0);
- UpdateProgressBar(pb_blad[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_blad[playerid]);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) -10.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- }
- if(listitem == 2)
- {
- SetPlayerPos(playerid, 444.6776,1411.0464,1084.3047);
- SetPlayerFacingAngle(playerid, 270);
- SetTimerEx("PeeOrShit", 100, 0, "e", playerid);
- SetProgressBarValue(pb_blad[playerid], 0.0);
- UpdateProgressBar(pb_blad[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_blad[playerid]);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) -25.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- }
- return 1;
- }
- //Chuveiro (interior: 7)
- if(dialogid == DIALOG_BATH_7)
- {
- if(response == 1)
- {
- SetPlayerPos(playerid, 448.0109,1414.5276,1084.3047);
- SetPlayerFacingAngle(playerid, 360);
- SetPlayerCameraPos(playerid, 447.9643,1413.1531,1084.3047);
- SetPlayerCameraLookAt(playerid, 448.0109,1414.5276,1084.3047);
- TogglePlayerControllable(playerid, false);
- ApplyAnimation(playerid,"RAPPING","RAP_C_Loop",4.0,1,0,0,0,0);
- SetPlayerAttachedObject(playerid, 0, 18669, 1, 1.313215, 0.433963, -1.531419, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000);
- SetTimerEx("StopBath", 20000, 0, "e", playerid);
- }
- }
- //Lavar as mãos (interior: 7)
- if(dialogid == DIALOG_HAND_7)
- {
- if(response == 1)
- {
- SetPlayerPos(playerid, 444.5664, 1414.2894, 1084.3047);
- ApplyAnimation(playerid, "DEALER", "DEALER_DEAL", 4.0, 0, 0, 0, 0, 0);
- SetPlayerFacingAngle(playerid, 90);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) +10.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- SendClientMessage(playerid, -1, "Clean Hands, hygiene +15!");
- shower[playerid] = 0;
- }
- return 1;
- }
- //Sanitário (interior: 8)
- if(dialogid == DIALOG_BLAD_8 && response)
- {
- if(listitem == 0)
- {
- SetPlayerArmedWeapon(playerid, 0);
- SetCameraBehindPlayer(playerid);
- SetPlayerSpecialAction(playerid, 68);
- SetTimerEx("StopAnims", 10000, 0, "e", playerid);
- SetProgressBarValue(pb_blad[playerid], GetProgressBarValue(pb_blad[playerid]) -25.0);
- UpdateProgressBar(pb_blad[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_blad[playerid]);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) -10.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- }
- if(listitem == 1)
- {
- SetPlayerPos(playerid, 2194.2825,-1223.0863,1049.0234);
- SetPlayerFacingAngle(playerid, 90);
- SetTimerEx("PeeOrShit", 100, 0, "e", playerid);
- SetProgressBarValue(pb_blad[playerid], GetProgressBarValue(pb_blad[playerid]) -25.0);
- UpdateProgressBar(pb_blad[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_blad[playerid]);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) -10.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- }
- if(listitem == 2)
- {
- SetPlayerPos(playerid, 2194.2825,-1223.0863,1049.0234);
- SetPlayerFacingAngle(playerid, 90);
- SetTimerEx("PeeOrShit", 100, 0, "e", playerid);
- SetProgressBarValue(pb_blad[playerid], 0.0);
- UpdateProgressBar(pb_blad[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_blad[playerid]);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) -25.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- }
- return 1;
- }
- //Chuveiro (interior: 8)
- if(dialogid == DIALOG_BATH_8)
- {
- if(response == 1)
- {
- SetPlayerPos(playerid, 2191.9470,-1226.4412,1049.0234);
- SetPlayerFacingAngle(playerid, 180);
- SetPlayerCameraPos(playerid, 2191.9385,-1225.3136,1049.0234);
- SetPlayerCameraLookAt(playerid, 2191.9470,-1226.4412,1049.0234);
- TogglePlayerControllable(playerid, false);
- ApplyAnimation(playerid,"RAPPING","RAP_C_Loop",4.0,1,0,0,0,0);
- SetPlayerAttachedObject(playerid, 0, 18669, 1, 1.313215, 0.433963, -1.531419, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000);
- SetTimerEx("StopBath", 20000, 0, "e", playerid);
- }
- }
- //Lavar as mãos (interior: 8)
- if(dialogid == DIALOG_HAND_8)
- {
- if(response == 1)
- {
- SetPlayerPos(playerid, 2192.2810, -1223.0006, 1049.0234);
- ApplyAnimation(playerid, "DEALER", "DEALER_DEAL", 4.0, 0, 0, 0, 0, 0);
- SetPlayerFacingAngle(playerid, 90);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) +10.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- SendClientMessage(playerid, -1, "Clean Hands, hygiene +15!");
- shower[playerid] = 0;
- }
- return 1;
- }
- //Sanitário (interior: 9)
- if(dialogid == DIALOG_BLAD_9 && response)
- {
- if(listitem == 0)
- {
- SetPlayerArmedWeapon(playerid, 0);
- SetCameraBehindPlayer(playerid);
- SetPlayerSpecialAction(playerid, 68);
- SetTimerEx("StopAnims", 10000, 0, "e", playerid);
- SetProgressBarValue(pb_blad[playerid], GetProgressBarValue(pb_blad[playerid]) -25.0);
- UpdateProgressBar(pb_blad[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_blad[playerid]);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) -10.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- }
- if(listitem == 1)
- {
- SetPlayerPos(playerid, 234.5722,1208.6827,1080.2578);
- SetPlayerFacingAngle(playerid, 180);
- SetTimerEx("PeeOrShit", 100, 0, "e", playerid);
- SetProgressBarValue(pb_blad[playerid], GetProgressBarValue(pb_blad[playerid]) -25.0);
- UpdateProgressBar(pb_blad[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_blad[playerid]);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) -10.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- }
- if(listitem == 2)
- {
- SetPlayerPos(playerid, 234.5722,1208.6827,1080.2578);
- SetPlayerFacingAngle(playerid, 180);
- SetTimerEx("PeeOrShit", 100, 0, "e", playerid);
- SetProgressBarValue(pb_blad[playerid], 0.0);
- UpdateProgressBar(pb_blad[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_blad[playerid]);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) -25.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- }
- return 1;
- }
- //Chuveiro (interior: 9)
- if(dialogid == DIALOG_BATH_9)
- {
- if(response == 1)
- {
- SetPlayerPos(playerid, 237.0283,1209.1375,1080.2578);
- SetPlayerFacingAngle(playerid, 0);
- SetPlayerCameraPos(playerid, 237.1788,1207.7875,1080.2578);
- SetPlayerCameraLookAt(playerid, 237.0283,1209.1375,1080.2578);
- TogglePlayerControllable(playerid, false);
- ApplyAnimation(playerid,"RAPPING","RAP_C_Loop",4.0,1,0,0,0,0);
- SetPlayerAttachedObject(playerid, 0, 18669, 1, 1.313215, 0.433963, -1.531419, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000);
- SetTimerEx("StopBath", 20000, 0, "e", playerid);
- }
- }
- //Lavar as mãos (interior: 9)
- if(dialogid == DIALOG_HAND_9)
- {
- if(response == 1)
- {
- SetPlayerPos(playerid, 232.8868,1208.8596,1080.2578);
- ApplyAnimation(playerid, "DEALER", "DEALER_DEAL", 4.0, 0, 0, 0, 0, 0);
- SetPlayerFacingAngle(playerid, 0);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) +10.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- SendClientMessage(playerid, -1, "Clean Hands, hygiene +15!");
- shower[playerid] = 0;
- }
- return 1;
- }
- //Sanitário (interior: 10)
- if(dialogid == DIALOG_BLAD_10 && response)
- {
- if(listitem == 0)
- {
- SetPlayerArmedWeapon(playerid, 0);
- SetCameraBehindPlayer(playerid);
- SetPlayerSpecialAction(playerid, 68);
- SetTimerEx("StopAnims", 10000, 0, "e", playerid);
- SetProgressBarValue(pb_blad[playerid], GetProgressBarValue(pb_blad[playerid]) -25.0);
- UpdateProgressBar(pb_blad[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_blad[playerid]);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) -10.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- }
- if(listitem == 1)
- {
- SetPlayerPos(playerid, 488.7573,1421.4900,1080.2578);
- SetPlayerFacingAngle(playerid, 270);
- SetTimerEx("PeeOrShit", 100, 0, "e", playerid);
- SetProgressBarValue(pb_blad[playerid], GetProgressBarValue(pb_blad[playerid]) -25.0);
- UpdateProgressBar(pb_blad[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_blad[playerid]);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) -10.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- }
- if(listitem == 2)
- {
- SetPlayerPos(playerid, 488.7573,1421.4900,1080.2578);
- SetPlayerFacingAngle(playerid, 270);
- SetTimerEx("PeeOrShit", 100, 0, "e", playerid);
- SetProgressBarValue(pb_blad[playerid], 0.0);
- UpdateProgressBar(pb_blad[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_blad[playerid]);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) -25.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- }
- return 1;
- }
- //Chuveiro (interior: 10)
- if(dialogid == DIALOG_BATH_10)
- {
- if(response == 1)
- {
- SetPlayerPos(playerid, 491.3062,1417.4353,1080.2578);
- SetPlayerFacingAngle(playerid, 180);
- SetPlayerCameraPos(playerid, 491.3229,1418.6143,1080.2578);
- SetPlayerCameraLookAt(playerid, 491.3062,1417.4353,1080.2578);
- TogglePlayerControllable(playerid, false);
- ApplyAnimation(playerid,"RAPPING","RAP_C_Loop",4.0,1,0,0,0,0);
- SetPlayerAttachedObject(playerid, 0, 18669, 1, 1.313215, 0.433963, -1.531419, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000);
- SetTimerEx("StopBath", 20000, 0, "e", playerid);
- }
- }
- //Lavar as mãos (interior: 10)
- if(dialogid == DIALOG_HAND_10)
- {
- if(response == 1)
- {
- SetPlayerPos(playerid, 488.6360,1418.9192,1080.2645);
- ApplyAnimation(playerid, "DEALER", "DEALER_DEAL", 4.0, 0, 0, 0, 0, 0);
- SetPlayerFacingAngle(playerid, 90);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) +10.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- SendClientMessage(playerid, -1, "Clean Hands, hygiene + 10!");
- shower[playerid] = 0;
- }
- return 1;
- }
- //Sanitário (interior: 11)
- if(dialogid == DIALOG_BLAD_11 && response)
- {
- if(listitem == 0)
- {
- SetPlayerArmedWeapon(playerid, 0);
- SetCameraBehindPlayer(playerid);
- SetPlayerSpecialAction(playerid, 68);
- SetTimerEx("StopAnims", 10000, 0, "e", playerid);
- SetProgressBarValue(pb_blad[playerid], GetProgressBarValue(pb_blad[playerid]) -25.0);
- UpdateProgressBar(pb_blad[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_blad[playerid]);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) -10.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- }
- if(listitem == 1)
- {
- SetPlayerPos(playerid, 233.0897,1110.5287,1080.9922);
- SetPlayerFacingAngle(playerid, 270);
- SetTimerEx("PeeOrShit", 100, 0, "e", playerid);
- SetProgressBarValue(pb_blad[playerid], GetProgressBarValue(pb_blad[playerid]) -25.0);
- UpdateProgressBar(pb_blad[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_blad[playerid]);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) -10.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- }
- if(listitem == 2)
- {
- SetPlayerPos(playerid, 233.0897,1110.5287,1080.9922);
- SetPlayerFacingAngle(playerid, 270);
- SetTimerEx("PeeOrShit", 100, 0, "e", playerid);
- SetProgressBarValue(pb_blad[playerid], 0.0);
- UpdateProgressBar(pb_blad[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_blad[playerid]);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) -25.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- }
- return 1;
- }
- //Chuveiro (interior: 11)
- if(dialogid == DIALOG_BATH_11)
- {
- if(response == 1)
- {
- SetPlayerPos(playerid, 235.5163,1111.9956,1080.9922);
- SetPlayerFacingAngle(playerid, 0);
- SetPlayerCameraPos(playerid, 235.4967,1110.7229,1080.9995);
- SetPlayerCameraLookAt(playerid, 235.5163,1111.9956,1080.9922);
- TogglePlayerControllable(playerid, false);
- ApplyAnimation(playerid,"RAPPING","RAP_C_Loop",4.0,1,0,0,0,0);
- SetPlayerAttachedObject(playerid, 0, 18669, 1, 1.313215, 0.433963, -1.531419, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000);
- SetTimerEx("StopBath", 20000, 0, "e", playerid);
- }
- }
- //Lavar as mãos (interior: 11)
- if(dialogid == DIALOG_HAND_11)
- {
- if(response == 1)
- {
- SetPlayerPos(playerid, 233.0656,1109.3346,1080.9922);
- ApplyAnimation(playerid, "DEALER", "DEALER_DEAL", 4.0, 0, 0, 0, 0, 0);
- SetPlayerFacingAngle(playerid, 90);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) +10.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- SendClientMessage(playerid, -1, "Clean Hands, hygiene +15!");
- shower[playerid] = 0;
- }
- return 1;
- }
- //Sanitário (interior: 11_2)
- if(dialogid == DIALOG_BLAD_11_2 && response)
- {
- if(listitem == 0)
- {
- SetPlayerArmedWeapon(playerid, 0);
- SetCameraBehindPlayer(playerid);
- SetPlayerSpecialAction(playerid, 68);
- SetTimerEx("StopAnims", 10000, 0, "e", playerid);
- SetProgressBarValue(pb_blad[playerid], GetProgressBarValue(pb_blad[playerid]) -25.0);
- UpdateProgressBar(pb_blad[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_blad[playerid]);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) -10.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- }
- if(listitem == 1)
- {
- SetPlayerPos(playerid, 235.1189,1119.0621,1084.9922);
- SetPlayerFacingAngle(playerid, 270);
- SetTimerEx("PeeOrShit", 100, 0, "e", playerid);
- SetProgressBarValue(pb_blad[playerid], GetProgressBarValue(pb_blad[playerid]) -25.0);
- UpdateProgressBar(pb_blad[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_blad[playerid]);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) -10.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- }
- if(listitem == 2)
- {
- SetPlayerPos(playerid, 235.1189,1119.0621,1084.9922);
- SetPlayerFacingAngle(playerid, 270);
- SetTimerEx("PeeOrShit", 100, 0, "e", playerid);
- SetProgressBarValue(pb_blad[playerid], 0.0);
- UpdateProgressBar(pb_blad[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_blad[playerid]);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) -25.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- }
- return 1;
- }
- //Chuveiro (interior: 11_2)
- if(dialogid == DIALOG_BATH_11_2)
- {
- if(response == 1)
- {
- SetPlayerPos(playerid, 234.6360,1120.2233,1084.9922);
- SetPlayerFacingAngle(playerid, 90);
- SetPlayerCameraPos(playerid, 236.1271,1120.3087,1084.9849);
- SetPlayerCameraLookAt(playerid, 234.6360,1120.2233,1084.9922);
- TogglePlayerControllable(playerid, false);
- ApplyAnimation(playerid,"RAPPING","RAP_C_Loop",4.0,1,0,0,0,0);
- SetPlayerAttachedObject(playerid, 0, 18669, 1, 1.313215, 0.433963, -1.531419, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000);
- SetTimerEx("StopBath", 20000, 0, "e", playerid);
- }
- }
- //Lavar as mãos (interior: 11_2)
- if(dialogid == DIALOG_HAND_11_2)
- {
- if(response == 1)
- {
- SetPlayerPos(playerid, 235.1249,1118.0095,1084.9922);
- ApplyAnimation(playerid, "DEALER", "DEALER_DEAL", 4.0, 0, 0, 0, 0, 0);
- SetPlayerFacingAngle(playerid, 90);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) +10.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- SendClientMessage(playerid, -1, "Clean Hands, hygiene +15!");
- shower[playerid] = 0;
- }
- return 1;
- }
- //Sanitário (interior: 12)
- if(dialogid == DIALOG_BLAD_12 && response)
- {
- if(listitem == 0)
- {
- SetPlayerArmedWeapon(playerid, 0);
- SetCameraBehindPlayer(playerid);
- SetPlayerSpecialAction(playerid, 68);
- SetTimerEx("StopAnims", 10000, 0, "e", playerid);
- SetProgressBarValue(pb_blad[playerid], GetProgressBarValue(pb_blad[playerid]) -25.0);
- UpdateProgressBar(pb_blad[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_blad[playerid]);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) -10.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- }
- if(listitem == 1)
- {
- SetPlayerPos(playerid, 254.2927,1034.4755,1084.7378);
- SetPlayerFacingAngle(playerid, 90);
- SetTimerEx("PeeOrShit", 100, 0, "e", playerid);
- SetProgressBarValue(pb_blad[playerid], GetProgressBarValue(pb_blad[playerid]) -25.0);
- UpdateProgressBar(pb_blad[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_blad[playerid]);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) -10.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- }
- if(listitem == 2)
- {
- SetPlayerPos(playerid, 254.2927,1034.4755,1084.7378);
- SetPlayerFacingAngle(playerid, 90);
- SetTimerEx("PeeOrShit", 100, 0, "e", playerid);
- SetProgressBarValue(pb_blad[playerid], 0.0);
- UpdateProgressBar(pb_blad[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_blad[playerid]);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) -25.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- }
- return 1;
- }
- //Chuveiro (interior: 12)
- if(dialogid == DIALOG_BATH_12)
- {
- if(response == 1)
- {
- SetPlayerPos(playerid, 254.6980,1031.7246,1084.7384);
- SetPlayerFacingAngle(playerid, 270);
- SetPlayerCameraPos(playerid, 253.0855,1031.4751,1084.7357);
- SetPlayerCameraLookAt(playerid, 254.6980,1031.7246,1084.7384);
- TogglePlayerControllable(playerid, false);
- ApplyAnimation(playerid,"RAPPING","RAP_C_Loop",4.0,1,0,0,0,0);
- SetPlayerAttachedObject(playerid, 0, 18669, 1, 1.313215, 0.433963, -1.531419, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000);
- SetTimerEx("StopBath", 20000, 0, "e", playerid);
- }
- }
- //Lavar as mãos (interior: 12)
- if(dialogid == DIALOG_HAND_12)
- {
- if(response == 1)
- {
- SetPlayerPos(playerid, 254.3595,1035.5737,1084.7379);
- ApplyAnimation(playerid, "DEALER", "DEALER_DEAL", 4.0, 0, 0, 0, 0, 0);
- SetPlayerFacingAngle(playerid, 270);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) +10.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- SendClientMessage(playerid, -1, "Clean Hands, hygiene +15!");
- shower[playerid] = 0;
- }
- return 1;
- }
- //Sanitário (interior: 12_2)
- if(dialogid == DIALOG_BLAD_12_2 && response)
- {
- if(listitem == 0)
- {
- SetPlayerArmedWeapon(playerid, 0);
- SetCameraBehindPlayer(playerid);
- SetPlayerSpecialAction(playerid, 68);
- SetTimerEx("StopAnims", 10000, 0, "e", playerid);
- SetProgressBarValue(pb_blad[playerid], GetProgressBarValue(pb_blad[playerid]) -25.0);
- UpdateProgressBar(pb_blad[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_blad[playerid]);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) -10.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- }
- if(listitem == 1)
- {
- SetPlayerPos(playerid, 238.2677,1040.7775,1088.3049);
- SetPlayerFacingAngle(playerid, 270);
- SetTimerEx("PeeOrShit", 100, 0, "e", playerid);
- SetProgressBarValue(pb_blad[playerid], GetProgressBarValue(pb_blad[playerid]) -25.0);
- UpdateProgressBar(pb_blad[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_blad[playerid]);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) -10.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- }
- if(listitem == 2)
- {
- SetPlayerPos(playerid, 238.2677,1040.7775,1088.3049);
- SetPlayerFacingAngle(playerid, 270);
- SetTimerEx("PeeOrShit", 100, 0, "e", playerid);
- SetProgressBarValue(pb_blad[playerid], 0.0);
- UpdateProgressBar(pb_blad[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_blad[playerid]);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) -25.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- }
- return 1;
- }
- //Chuveiro (interior: 12_2)
- if(dialogid == DIALOG_BATH_12_2)
- {
- if(response == 1)
- {
- SetPlayerPos(playerid, 242.7936,1042.4814,1088.3104);
- SetPlayerFacingAngle(playerid, 0);
- SetPlayerCameraPos(playerid, 242.7215,1041.1473,1088.3103);
- SetPlayerCameraLookAt(playerid, 242.7936,1042.4814,1088.3104);
- TogglePlayerControllable(playerid, false);
- ApplyAnimation(playerid,"RAPPING","RAP_C_Loop",4.0,1,0,0,0,0);
- SetPlayerAttachedObject(playerid, 0, 18669, 1, 1.313215, 0.433963, -1.531419, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000);
- SetTimerEx("StopBath", 20000, 0, "e", playerid);
- }
- }
- //Lavar as mãos (interior: 12_2)
- if(dialogid == DIALOG_HAND_12_2)
- {
- if(response == 1)
- {
- SetPlayerPos(playerid, 238.2887,1039.3588,1088.3049);
- ApplyAnimation(playerid, "DEALER", "DEALER_DEAL", 4.0, 0, 0, 0, 0, 0);
- SetPlayerFacingAngle(playerid, 90);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) +10.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- SendClientMessage(playerid, -1, "Clean Hands, hygiene +15!");
- shower[playerid] = 0;
- }
- return 1;
- }
- //Sanitário (interior: 13)
- if(dialogid == DIALOG_BLAD_13 && response)
- {
- if(listitem == 0)
- {
- SetPlayerArmedWeapon(playerid, 0);
- SetCameraBehindPlayer(playerid);
- SetPlayerSpecialAction(playerid, 68);
- SetTimerEx("StopAnims", 10000, 0, "e", playerid);
- SetProgressBarValue(pb_blad[playerid], GetProgressBarValue(pb_blad[playerid]) -25.0);
- UpdateProgressBar(pb_blad[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_blad[playerid]);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) -10.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- }
- if(listitem == 1)
- {
- SetPlayerPos(playerid, 1292.6223,-817.6908,1089.9375);
- SetPlayerFacingAngle(playerid, 90);
- SetTimerEx("PeeOrShit", 100, 0, "e", playerid);
- SetProgressBarValue(pb_blad[playerid], GetProgressBarValue(pb_blad[playerid]) -25.0);
- UpdateProgressBar(pb_blad[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_blad[playerid]);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) -10.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- }
- if(listitem == 2)
- {
- SetPlayerPos(playerid, 1292.6223,-817.6908,1089.9375);
- SetPlayerFacingAngle(playerid, 90);
- SetTimerEx("PeeOrShit", 100, 0, "e", playerid);
- SetProgressBarValue(pb_blad[playerid], 0.0);
- UpdateProgressBar(pb_blad[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_blad[playerid]);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) -25.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- }
- return 1;
- }
- //Chuveiro (interior: 13)
- if(dialogid == DIALOG_BATH_13)
- {
- if(response == 1)
- {
- SetPlayerPos(playerid, 1292.8442,-823.0518,1089.9375);
- SetPlayerFacingAngle(playerid, 180);
- SetPlayerCameraPos(playerid, 1292.8243,-822.1960,1089.9375);
- SetPlayerCameraLookAt(playerid, 1292.8442,-823.0518,1089.9375);
- TogglePlayerControllable(playerid, false);
- ApplyAnimation(playerid,"RAPPING","RAP_C_Loop",4.0,1,0,0,0,0);
- SetPlayerAttachedObject(playerid, 0, 18669, 1, 1.313215, 0.433963, -1.531419, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000);
- SetTimerEx("StopBath", 20000, 0, "e", playerid);
- }
- }
- //Lavar as mãos (interior: 13)
- if(dialogid == DIALOG_HAND_13)
- {
- if(response == 1)
- {
- SetPlayerPos(playerid, 1286.5698,-815.3679,1089.9375);
- ApplyAnimation(playerid, "DEALER", "DEALER_DEAL", 4.0, 0, 0, 0, 0, 0);
- SetPlayerFacingAngle(playerid, 90);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) +10.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- SendClientMessage(playerid, -1, "Clean Hands, hygiene +15!");
- shower[playerid] = 0;
- }
- return 1;
- }
- //Sanitário (interior: 13_2)
- if(dialogid == DIALOG_BLAD_13_2 && response)
- {
- if(listitem == 0)
- {
- SetPlayerArmedWeapon(playerid, 0);
- SetCameraBehindPlayer(playerid);
- SetPlayerSpecialAction(playerid, 68);
- SetTimerEx("StopAnims", 10000, 0, "e", playerid);
- SetProgressBarValue(pb_blad[playerid], GetProgressBarValue(pb_blad[playerid]) -25.0);
- UpdateProgressBar(pb_blad[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_blad[playerid]);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) -10.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- }
- if(listitem == 1)
- {
- SetPlayerPos(playerid, 1292.6027,-815.2460,1089.9375);
- SetPlayerFacingAngle(playerid, 90);
- SetTimerEx("PeeOrShit", 100, 0, "e", playerid);
- SetProgressBarValue(pb_blad[playerid], GetProgressBarValue(pb_blad[playerid]) -25.0);
- UpdateProgressBar(pb_blad[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_blad[playerid]);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) -10.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- }
- if(listitem == 2)
- {
- SetPlayerPos(playerid, 1292.6027,-815.2460,1089.9375);
- SetPlayerFacingAngle(playerid, 90);
- SetTimerEx("PeeOrShit", 100, 0, "e", playerid);
- SetProgressBarValue(pb_blad[playerid], 0.0);
- UpdateProgressBar(pb_blad[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_blad[playerid]);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) -25.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- }
- return 1;
- }
- //Chuveiro (interior: 13_2)
- if(dialogid == DIALOG_BATH_13_2)
- {
- if(response == 1)
- {
- SetPlayerPos(playerid, 1289.9661,-822.9135,1089.9375);
- SetPlayerFacingAngle(playerid, 180);
- SetPlayerCameraPos(playerid, 1289.8663,-821.8093,1089.9375);
- SetPlayerCameraLookAt(playerid, 1289.9661,-822.9135,1089.9375);
- TogglePlayerControllable(playerid, false);
- ApplyAnimation(playerid,"RAPPING","RAP_C_Loop",4.0,1,0,0,0,0);
- SetPlayerAttachedObject(playerid, 0, 18669, 1, 1.313215, 0.433963, -1.531419, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000);
- SetTimerEx("StopBath", 20000, 0, "e", playerid);
- }
- }
- //Lavar as mãos (interior: 13_2)
- if(dialogid == DIALOG_HAND_13_2)
- {
- if(response == 1)
- {
- SetPlayerPos(playerid, 1286.5166,-817.4079,1089.9375);
- ApplyAnimation(playerid, "DEALER", "DEALER_DEAL", 4.0, 0, 0, 0, 0, 0);
- SetPlayerFacingAngle(playerid, 90);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) +10.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- SendClientMessage(playerid, -1, "Clean Hands, hygiene +15!");
- shower[playerid] = 0;
- }
- return 1;
- }
- return 0;
- }
- public StopBath(playerid)
- {
- RemovePlayerAttachedObject(playerid, 0);
- ClearAnimations(playerid, 0);
- TogglePlayerControllable(playerid, true);
- SetCameraBehindPlayer(playerid);
- SendClientMessage(playerid, -1, "Hot bath, hygiene + 100!");
- SetProgressBarValue(pb_bath[playerid], 100.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- shower[playerid] = 0;
- return 1;
- }
- public PeeOrShit(playerid)
- {
- ApplyAnimation(playerid,"PED","SEAT_idle", 4.0, 1, 0, 0, 0, 0);
- SetTimerEx("StopAnims", 20000, 0, "e", playerid);
- return 1;
- }
- public StopAnims(playerid)
- {
- SetPlayerSpecialAction(playerid, 0);
- ClearAnimations(playerid, 0);
- TogglePlayerControllable(playerid, true);
- if(GetProgressBarValue(pb_bath[playerid]) <= 10)
- {
- if(shower[playerid] != 1)
- {
- SendClientMessage(playerid, -1,"{FF0000}[WARN]{00FF00}You need to take a bath or you will get a bad health!");
- }
- return 1;
- }
- if(GetProgressBarValue(pb_bath[playerid]) <= 0)
- {
- shower[playerid] = 1;
- return 1;
- }
- return 1;
- }
- public HealFome(playerid)
- {
- if(hungry[playerid] == 1)
- {
- SetProgressBarValue(pb_heal[playerid], GetProgressBarValue(pb_heal[playerid]) -25.0);
- UpdateProgressBar(pb_heal[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_heal[playerid]);
- SendClientMessage(playerid,-1,"{FF0000}WARN{00FF00}:You need to eat something quickly or you will die!");
- }
- if(GetProgressBarValue(pb_heal[playerid]) == 0)
- {
- SetPlayerHealth(playerid, -100);
- SendClientMessage(playerid,-1,"{FF0000}Your health reached 0 and you died, take care of yourself better next time!");
- }
- return 1;
- }
- public HealBath(playerid)
- {
- if(shower[playerid] == 1)
- {
- if(!IsPlayerInAnyVehicle(playerid))
- {
- ApplyAnimation(playerid, "FOOD", "EAT_Vomit_P", 4.1, 0, 1, 1, 1, 1);
- ClearAnimations(playerid, 0);
- }
- }
- if(shower[playerid] == 1)
- {
- SetProgressBarValue(pb_heal[playerid], GetProgressBarValue(pb_heal[playerid]) -25.0);
- UpdateProgressBar(pb_heal[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_heal[playerid]);
- SendClientMessage(playerid,-1,"{FF0000}WARN{00FF00}:You stink and it causes you discomfort, go take a shower!");
- SendClientMessage(playerid,-1,"{FF0000}WARN{00FF00}:You need a house to take a bath. Or just use /pee.");
- }
- if(GetProgressBarValue(pb_heal[playerid]) <= 0 )
- {
- SetPlayerHealth(playerid, 0.0);
- SendClientMessage(playerid,-1,"{FF0000}Your health reached 0 and you died, take care of yourself better next time!");
- }
- return 1;
- }
- public UpdateValues(playerid)
- {
- new string_hung[4], string_blad[4], string_bath[4], string_heal[4];
- format(string_hung, sizeof(string_hung), "%03f", GetProgressBarValue(pb_fome[playerid]));
- format(string_blad, sizeof(string_blad), "%03f", GetProgressBarValue(pb_blad[playerid]));
- format(string_bath, sizeof(string_bath), "%03f", GetProgressBarValue(pb_bath[playerid]));
- format(string_heal, sizeof(string_heal), "%03f", GetProgressBarValue(pb_heal[playerid]));
- PlayerTextDrawSetString(playerid, TD_HUNG[playerid], string_hung);
- PlayerTextDrawSetString(playerid, TD_HIGI[playerid], string_bath);
- PlayerTextDrawSetString(playerid, TD_BLAD[playerid], string_blad);
- PlayerTextDrawSetString(playerid, TD_HEAL[playerid], string_heal);
- PlayerTextDrawShow(playerid, BugFix[playerid]);
- PlayerTextDrawShow(playerid, TD_HUNG[playerid]);
- PlayerTextDrawShow(playerid, TD_BLAD[playerid]);
- PlayerTextDrawShow(playerid, TD_HIGI[playerid]);
- PlayerTextDrawShow(playerid, TD_HEAL[playerid]);
- return 1;
- }
- //Server CMD
- CMD:pee(playerid)
- {
- SetPlayerSpecialAction(playerid, 68);
- SetTimerEx("StopAnims", 10000, 0, "e", playerid);
- SetProgressBarValue(pb_blad[playerid], GetProgressBarValue(pb_blad[playerid]) -10.0);
- UpdateProgressBar(pb_blad[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_blad[playerid]);
- SetProgressBarValue(pb_bath[playerid], GetProgressBarValue(pb_bath[playerid]) -25.0);
- UpdateProgressBar(pb_bath[playerid], playerid);
- ShowProgressBarForPlayer(playerid, pb_bath[playerid]);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement