Aranhaa

Sistema puteiro

Oct 12th, 2022
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 27.32 KB | None | 0 0
  1. /* Los Santos Brothel
  2. * (c) Copyright 2015 by FoxHound
  3. *
  4. * @author : FoxHound
  5. * @date : 18 June 2015
  6. *
  7. *
  8. *
  9. * ___ ___
  10. * /\__\ /| |
  11. * /:/ _/_ |:| |
  12. * /:/ /\__\ |:| |
  13. * /:/ /:/ / __|:|__|
  14. * /:/_/:/ / /::::\__\_____
  15. * \:\/:/ / ~~~~\::::/___/
  16. * \::/__/ |:|~~|
  17. * \:\ \ |:| |
  18. * \:\__\ |:|__|
  19. * \/__/ |/__/
  20. * +--+-+-+-+-+-+-+-+-+-+--+
  21. * | p r o d u c t i o n s |
  22. * +--+-+-+-+-+-+-+-+-+-+--+
  23. *
  24. */
  25.  
  26. #include <a_samp>
  27.  
  28. #define BITCHES 4
  29. #define AKTORS 40
  30.  
  31. #define LMB 0
  32. #define RMB 1
  33.  
  34. new Text:moviemod[2],Text:exctext,Text:bshadow,Text:gagnfuck;
  35. new bitchchecktimer=-1;
  36. new object[26];
  37.  
  38. enum e_Player {
  39. PlayerText:ExcBalken,pFuckedBitch[BITCHES],pMovieMod,pInArea,pBitch,keyOrder,excMod,excTimer,Float:pExcitement, pFail }
  40. new Player[MAX_PLAYERS][e_Player];
  41.  
  42. new ActorID[AKTORS];
  43.  
  44. enum e_bitches {
  45. bID, bBusy, Text3D:bLabel }
  46. new Bitch[BITCHES][e_bitches];
  47.  
  48. new Float:iActorPos[AKTORS][4] = {
  49. {
  50. 2241.8386,-1192.1924,1029.7969,179.0464},
  51. {
  52. 2241.7595,-1193.3571,1029.7969,355.9131},
  53. {
  54. 2244.6501,-1184.7622,1029.7969,134.5527},
  55. {
  56. 2243.8542,-1185.4703,1029.8043,313.6265},
  57. {
  58. 2252.5945,-1158.2295,1030.4410,260.4296},
  59. {
  60. 2253.2141,-1158.3763,1030.4410,179.7338},
  61. {
  62. 2253.7300,-1160.0260,1029.7969,21.6198},
  63. {
  64. 2254.1301,-1160.5228,1029.8234,212.6288},
  65. {
  66. 2251.2595,-1164.1918,1029.7969,308.2752},
  67. {
  68. 2252.0063,-1163.6501,1029.7969,127.2379},
  69. {
  70. 2251.3088,-1164.1071,1029.7969,307.9857},
  71. {
  72. 2251.4631,-1163.4331,1029.7969,226.2047},
  73. {
  74. 2251.7854,-1164.3396,1029.7969,2.5068},
  75. {
  76. 2248.6479,-1185.4998,1030.4155,270.1193},
  77. {
  78. 2248.2444,-1185.4559,1030.4408,268.8192},
  79. {
  80. 2242.8718,-1149.5781,1029.7969,91.2535},
  81. {
  82. 2241.9275,-1149.6183,1029.7969,270.6991},
  83. {
  84. 2239.6919,-1159.2660,1029.7969,280.0941},
  85. {
  86. 2243.8235,-1189.1289,1029.90,269.4104},
  87. {
  88. 2244.50,-1189.0308,1029.8043,179.6376},
  89. {
  90. 2233.0732,-1160.9913,25.8906,59.2685},
  91. {
  92. 2209.1672,-1144.6469,25.7964,46.4236},
  93. {
  94. 2232.4165,-1180.4719,25.8906,69.1516},
  95. {
  96. 2232.1416,-1174.6890,25.8972,234.4017},
  97. {
  98. 2233.2546,-1168.7101,25.8972,85.0362},
  99. {
  100. 2218.9924,-1172.6731,25.7266,2.9911},
  101. {
  102. 2209.3762,-1150.4557,29.7969,358.1461},
  103. {
  104. 2202.5247,-1163.2509,29.7969,271.0621},
  105. {
  106. 2223.6086,-1184.3351,1030.2969,302.8044},
  107. {
  108. 2217.1760,-1145.3915,1026.1833,175.3461},
  109. {
  110. 2215.8076,-1144.8032,1026.1833,281.5670},
  111. {
  112. 2224.1853,-1181.6268,1029.7969,200.9700},
  113. {
  114. 2223.5735,-1177.2275,1030.4384,179.2773},
  115. {
  116. 2223.6733,-1177.0520,1030.4913,179.3792},
  117. {
  118. 2231.7378,-1164.9625,1029.7969,179.9529},
  119. {
  120. 2236.0391,-1154.4547,1030.4943,147.3170},
  121. {
  122. 2235.4265,-1166.1948,1030.4943,220.4438},
  123. {
  124. 2234.7705,-1166.8312,1029.7969,307.1024},
  125. {
  126. 2230.8052,-1183.3383,1030.5249,75.9637},
  127. {
  128. 2231.5518,-1183.2582,1030.5249,270.0039}
  129. };
  130.  
  131. new iActorAnimLib[AKTORS][2][128] = {
  132. {
  133. "BLOWJOBZ","BJ_COUCH_LOOP_P"},
  134. {
  135. "BLOWJOBZ","BJ_COUCH_LOOP_W"},
  136. {
  137. "BLOWJOBZ","BJ_COUCH_LOOP_P"},
  138. {
  139. "BLOWJOBZ","BJ_COUCH_LOOP_W"},
  140. {
  141. "BEACH","ParkSit_W_Loop"},
  142. {
  143. "BEACH","Lay_Bac_Loop"},
  144. {
  145. "BLOWJOBZ","BJ_COUCH_LOOP_P"},
  146. {
  147. "SWEET","Sweet_injuredloop"},
  148. {
  149. "BLOWJOBZ","BJ_STAND_LOOP_W"},
  150. {
  151. "BLOWJOBZ","BJ_STAND_LOOP_P"},
  152. {
  153. "PAULNMAC","wank_loop"},
  154. {
  155. "PAULNMAC","wank_loop"},
  156. {
  157. "PAULNMAC","wank_loop"},
  158. {
  159. "SNM","SPANKINGW"},
  160. {
  161. "SNM","SPANKINGP"},
  162. {
  163. "BLOWJOBZ","BJ_STAND_LOOP_W"},
  164. {
  165. "WUZI","Wuzi_stand_loop"},
  166. {
  167. "SMOKING","F_smklean_loop"},
  168. {
  169. "CRACK","crckidle1"},
  170. {
  171. "CRACK","crckidle4"},
  172. {
  173. "WUZI","Wuzi_stand_loop"},
  174. {
  175. "GRAVEYARD","mrnF_loop"},
  176. {
  177. "SMOKING","F_smklean_loop"},
  178. {
  179. "PED","phone_talk"},
  180. {
  181. "SMOKING","M_smk_drag"},
  182. {
  183. "BLOWJOBZ","BJ_COUCH_LOOP_P"},
  184. {
  185. "SMOKING","F_smklean_loop"},
  186. {
  187. "PED","phone_talk"},
  188. {
  189. "BEACH","ParkSit_W_Loop"},
  190. {
  191. "BLOWJOBZ","BJ_COUCH_LOOP_P"},
  192. {
  193. "PED","SEAT_IDLE"},
  194. {
  195. "BLOWJOBZ","BJ_COUCH_LOOP_P"},
  196. {
  197. "CRACK","crckidle2"},
  198. {
  199. "CRACK","crckidle2"},
  200. {
  201. "PED","SEAT_IDLE"},
  202. {
  203. "BEACH","Lay_Bac_Loop"},
  204. {
  205. "CRACK","crckidle4"},
  206. {
  207. "PAULNMAC","wank_loop"},
  208. {
  209. "BEACH","Lay_Bac_Loop"},
  210. {
  211. "SWEET","Sweet_injuredloop"}
  212. };
  213.  
  214. new iActorModel[AKTORS] = {
  215. 101,
  216. 237,
  217. 3,
  218. 87,
  219. 237,
  220. 154,
  221. 87,
  222. 8,
  223. 139,
  224. 97,
  225. 154,
  226. 18,
  227. 146,
  228. 64,
  229. 18,
  230. 193,
  231. 33,
  232. 75,
  233. 257,
  234. 64,
  235. 163,
  236. 226,
  237. 237,
  238. 238,
  239. 243,
  240. 131,
  241. 85,
  242. 201,
  243. 63,
  244. 249,
  245. 85,
  246. 207,
  247. 139,
  248. 18,
  249. 245,
  250. 154,
  251. 237,
  252. 146,
  253. 97,
  254. 246
  255. };
  256.  
  257. new Float:iBitchPos[BITCHES][27] = { //bX,bY,bZ,bAngle,bBusyAngle,pedX,pedY,pedZ,pedBusyAngle,camX,camY,camZ,camlookx,camlooky,camlookz,moviemaxX,moviemaxY,moviemaxZ,movieminX,movieminY,movieminZ,moviecamX,moviecamY,moviecamZ,movielookX,movielookY,movielookZ
  258. {
  259. 2204.2603,-1193.9603,1030.5249,269.3243,87.7342,2204.4917,-1193.9486,1030.5249,91.0367,2204.0039,-1193.9689,1030.7862,2203.4665,-1193.9736,1029.5133,2211.3813,-1185.0820,1036.0000,2201.5852,-1202.9032,1020.0000,2202.0046, -1195.3774, 1030.0256, 2202.8659, -1194.8697, 1029.9411},//bitch in room no 7
  260. {
  261. 2247.0784,-1193.2322,1029.7969,31.3569,213.3587,2247.7520,-1194.1115,1029.7969,28.9105,2242.8777,-1192.4258,1029.7969,2247.7520,-1194.1115,1029.4969,2249.7195,-1179.9448,1033.0021,2238.8054,-1195.9973,1028.0043,2248.3386,-1193.9710,1029.6519,2247.6442,-1193.2555,1029.728}, //bitch in the waiting room
  262. {
  263. 2239.0586,-1188.9985,1033.7969,1.3491,1.3491,2239.0454,-1188.0107,1033.7969,183.3017,2243.4841,-1187.6042,1035.6547,2242.5664,-1187.6758,1035.2642,2245.2495,-1179.3004,1037.6178,2238.4856,-1195.7620,1033.0021,2238.8078,-1190.5073,1033.6431,2239.1151,-1189.5558,1033.6402}, //bitch on the waiting room balcony
  264. {
  265. 2248.7563,-1165.9019,1029.7969,359.1815,269.1816,2248.5059,-1166.0874,1029.8401,100.8475,2249.296875,-1165.490600,1029.788330,2248.516845,-1166.110229,1029.875122,2249.9209,-1161.5800,1032.4417,2243.0193,-1166.7590,1029.7969,2249.3161,-1167.3656,1029.5098,2249.1120,-1166.3887,1029.5739} };
  266.  
  267. new iBitchModel[BITCHES] = {
  268. 214,
  269. 75,
  270. 131,
  271. 152
  272. };
  273.  
  274. new iBitchCost[BITCHES] = {
  275. 2000,
  276. 500,
  277. 250
  278. };
  279.  
  280. new iBitchHpArmor[BITCHES][2] = {
  281. {
  282. 100,100},
  283. {
  284. 100,0},
  285. {
  286. 30,0},
  287. {
  288. 100,50}
  289. };
  290.  
  291. new iBitchLabel[BITCHES][128] = {
  292. "Anna: {FFFFFF}Estou com tanto tesão agora .. Venha aqui!\nPressione F para sexo\n{00FF00}$2000",
  293. "Jessica: {FFFFFF}Quer se divertir, querido?\nPressione F para um boquete\n{00FF00}$500",
  294. "Janet: {FFFFFF}Eu adoraria ter algo saboroso na minha boca .. AGORA!\nPressione F para um boquete\n{00FF00}$250",
  295. "Lena: {FFFFFF}Estou esperando por você, querido...\nPressione F para sexo\n{00FF00}$1000"
  296. };
  297.  
  298. new iBitchAnimLib[BITCHES][14][18] = { //{idlelib,idlename,busystartlib,busystartname,pedstartlib,pedstartname,busylib,busyname,pedbusylib,pedbusyname,busyendlib,busyendname,pedendlib,pedendname
  299. {
  300. "BEACH","SitnWait_loop_W","SNM","SPANKING_IDLE_W","WUZI","Wuzi_stand_loop","SNM","SPANKINGW","SNM","SPANKEDP","BLOWJOBZ","BJ_STAND_END_W","BLOWJOBZ","BJ_STAND_END_P"},
  301. {
  302. "SMOKING","M_smk_drag","BLOWJOBZ","BJ_COUCH_START_W","BLOWJOBZ","BJ_COUCH_START_P","BLOWJOBZ","BJ_COUCH_LOOP_W","BLOWJOBZ","BJ_COUCH_LOOP_P","BLOWJOBZ","BJ_COUCH_END_W","BLOWJOBZ","BJ_COUCH_END_P"},
  303. {
  304. "SMOKING","F_smklean_loop","BLOWJOBZ","BJ_STAND_START_W","BLOWJOBZ","BJ_STAND_START_P","BLOWJOBZ","BJ_STAND_LOOP_W","BLOWJOBZ","BJ_STAND_LOOP_P","BLOWJOBZ","BJ_STAND_END_W","BLOWJOBZ","BJ_STAND_END_P"},
  305. {
  306. "SMOKING","M_smk_drag","CRACK","crckidle1","SNM","SPANKEDP","CRACK","crckidle1","SNM","SPANKEDP","BLOWJOBZ","BJ_STAND_END_W","BLOWJOBZ","BJ_STAND_END_P"}
  307. };
  308.  
  309. public OnFilterScriptInit()
  310. {
  311. object[0] = CreateObject(974, 2200.5, -1187, 1031.6, 0, 0, 272);
  312. object[1] = CreateObject(2987, 2232.2, -1167, 1030, 0, 0, 112.498);
  313. object[2] = CreateObject(323, 2235.1001, -1171.9, 1029.4, 0, 94, 299.75);
  314. object[3] = CreateObject(1828, 2220.3999, -1150.6, 1024.8, 0, 0, 170);
  315. object[4] = CreateObject(2819, 2240.5, -1150.9, 1028.8, 0, 0, 0);
  316. object[5] = CreateObject(2846, 2241.7, -1170.3, 1028.8, 0, 0, 0);
  317. object[6] = CreateObject(2845, 2233.7, -1167.2, 1028.8, 0, 0, 0);
  318. object[7] = CreateObject(2987, 2239.3, -1159.8, 1030, 0, 0, 95.248);
  319. object[8] = CreateObject(2773, 2201.5, -1189.3, 1029.3, 0, 0, 34);
  320. object[9] = CreateObject(2773, 2201.8999, -1188.1, 1029.3, 0, 0, 351.997);
  321. object[10] = CreateObject(971, 2214.8999, -1141.2, 1025, 90, 354.053, 95.947);
  322. object[11] = CreateObject(2079, 2217.3, -1144.5, 1025.8, 0, 0, 90);
  323. object[12] = CreateObject(2079, 2215.3999, -1144.9, 1025.8, 0, 0, 192);
  324. object[13] = CreateObject(985, 2235.8999, -1156.6, 1028.7, 270, 180, 90);
  325. object[14] = CreateObject(976, 2237.5, -1152.2, 1028.7, 270, 180, 180);
  326. object[15] = CreateObject(985, 2253.7, -1160.2, 1028.7, 270, 180, 300.002);
  327. object[16] = CreateObject(985, 2233.5, -1167.9, 1028.6, 270, 359.995, 0);
  328. object[17] = CreateObject(976, 2238, -1192.6, 1032.7, 90, 5.446, 84.554);
  329. object[18] = CreateObject(976, 2240.5, -1193.4004, 1028.7, 90, 6.01, 4.977);
  330. object[19] = CreateObject(976, 2251.7, -1186.2, 1028.7, 90, 5.488, 173.241);
  331. object[20] = CreateObject(976, 2238.3999, -1192.9, 1028.6, 90, 5.274, 40.704);
  332. object[21] = CreateObject(985, 2228.5, -1180.5, 1028.6, 270, 180, 90);
  333. object[22] = CreateObject(985, 2221.7, -1182.8, 1028.6, 270, 359.996, 270.002);
  334. object[23] = CreateObject(985, 2221.8999, -1176.3, 1028.6, 270, 180, 90.005);
  335. object[24] = CreateObject(976, 2209.6001, -1195.4, 1028.6, 90, 5.371, 174.623);
  336. object[25] = CreateObject(985, 2248.3999, -1163, 1028.7, 270, 359.996, 120);
  337.  
  338. moviemod[0] = TextDrawCreate(0.000000,0.000000,"I");
  339. moviemod[1] = TextDrawCreate(1.000000,340.000000,"I");
  340. TextDrawUseBox(moviemod[0],1);
  341. TextDrawBoxColor(moviemod[0],0x000000ff);
  342. TextDrawTextSize(moviemod[0],641.000000,15.000000);
  343. TextDrawUseBox(moviemod[1],1);
  344. TextDrawBoxColor(moviemod[1],0x000000ff);
  345. TextDrawTextSize(moviemod[1],639.000000,29.000000);
  346. TextDrawAlignment(moviemod[0],0);
  347. TextDrawAlignment(moviemod[1],0);
  348. TextDrawBackgroundColor(moviemod[0],0x000000ff);
  349. TextDrawBackgroundColor(moviemod[1],0x000000ff);
  350. TextDrawFont(moviemod[0],3);
  351. TextDrawLetterSize(moviemod[0],1.000000,10.600008);
  352. TextDrawFont(moviemod[1],3);
  353. TextDrawLetterSize(moviemod[1],1.000000,11.900006);
  354. TextDrawColor(moviemod[0],0x000000ff);
  355. TextDrawColor(moviemod[1],0x000000ff);
  356. TextDrawSetOutline(moviemod[0],1);
  357. TextDrawSetOutline(moviemod[1],1);
  358. TextDrawSetProportional(moviemod[0],1);
  359. TextDrawSetProportional(moviemod[1],1);
  360.  
  361. bshadow = TextDrawCreate(541.000000,109.000000,"_");
  362. TextDrawUseBox(bshadow,1);
  363. TextDrawBoxColor(bshadow,0x000000ff);
  364. TextDrawTextSize(bshadow,625.000000,0.000000);
  365. TextDrawAlignment(bshadow,0);
  366. TextDrawBackgroundColor(bshadow,0x00000000);
  367. TextDrawFont(bshadow,0);
  368. TextDrawLetterSize(bshadow,-1.099999,0.499998);
  369. TextDrawColor(bshadow,0xffffffff);
  370. TextDrawSetOutline(bshadow,1);
  371. TextDrawSetProportional(bshadow,1);
  372. TextDrawSetShadow(bshadow,1);
  373.  
  374. exctext = TextDrawCreate(397.000000,104.000000,"EXCITACAO:");
  375. TextDrawAlignment(exctext,0);
  376. TextDrawBackgroundColor(exctext,0x000000ff);
  377. TextDrawFont(exctext,2);
  378. TextDrawLetterSize(exctext,0.499999,1.500000);
  379. TextDrawColor(exctext,0xffffffff);
  380. TextDrawSetOutline(exctext,1);
  381. TextDrawSetProportional(exctext,1);
  382. TextDrawSetShadow(exctext,1);
  383.  
  384. gagnfuck = TextDrawCreate(12.000000,110.000000,"Pressione LMB e RMB do mause no ritmo para amordaçá-la");
  385. TextDrawUseBox(gagnfuck,1);
  386. TextDrawBoxColor(gagnfuck,0x00000033);
  387. TextDrawTextSize(gagnfuck,168.000000,3.000000);
  388. TextDrawAlignment(gagnfuck,0);
  389. TextDrawBackgroundColor(gagnfuck,0x00000033);
  390. TextDrawFont(gagnfuck,1);
  391. TextDrawLetterSize(gagnfuck,0.399999,1.400000);
  392. TextDrawColor(gagnfuck,0xffffffff);
  393. TextDrawSetOutline(gagnfuck,1);
  394. TextDrawSetProportional(gagnfuck,1);
  395.  
  396. for(new i;i<BITCHES;i++) {
  397. Bitch[i][bID]=-1;
  398. Bitch[i][bBusy]=-1; }
  399.  
  400. for(new i;i<AKTORS;i++) {
  401. if(!iActorPos[i][0]) break;
  402. ActorID[i] = CreateDynamicActor(iActorModel[i],iActorPos[i][0],iActorPos[i][1],iActorPos[i][2],iActorPos[i][3]);
  403. ApplyActorAnimation(ActorID[i],iActorAnimLib[i][0],iActorAnimLib[i][1],4,1,0,0,1,0); }
  404. for(new i;i<BITCHES;i++) {
  405. if(!iBitchPos[i][0]) break;
  406. Bitch[i][bID]=CreateDynamicActor(iBitchModel[i],iBitchPos[i][0],iBitchPos[i][1],iBitchPos[i][2],iBitchPos[i][3]);
  407. ApplyActorAnimation(Bitch[i][bID],iBitchAnimLib[i][0],iBitchAnimLib[i][1],4,1,0,0,1,0);
  408. new Float:add[3];
  409. if(i==0) { add[0]+=0.8; add[2]-=0.5; }
  410. else { add[0]=0; add[1]=0; add[2]=0; }
  411. Bitch[i][bLabel] = Create3DTextLabel(iBitchLabel[i],0xFF0000FF,iBitchPos[i][0]+add[0],iBitchPos[i][1]+add[1],iBitchPos[i][2]+add[2],5.0,0,0);
  412. Bitch[i][bBusy]=-1; }
  413.  
  414. bitchchecktimer=SetTimer("isPlayerInArea",1000,1);
  415.  
  416. print("\n----------------------------------------------------");
  417. print(" FoxHound's Los Santos Brothel successfully loaded.");
  418. print("----------------------------------------------------\n");
  419. return 1;
  420. }
  421.  
  422. static s_animlibz[][] = { !"BLOWJOBZ", !"MISC", !"PED", !"GRAVEYARD", !"PED", !"STRIP", !"BEACH", !"SNM", !"PAULNMAC", !"BEACH", !"CRACK", !"SWEET", !"WUZI", !"SMOKING" };
  423.  
  424. stock static PreloadAnimLib(playerid) {
  425. for(new i;i<sizeof(s_animlibz);i++){
  426. ApplyAnimation(playerid,s_animlibz[i],"null",0.0,0,0,0,0,0); } }
  427.  
  428. forward syncActors();
  429. public syncActors()
  430. {
  431. for(new i;i<AKTORS;i++) {
  432. if(!IsValidActor(ActorID[i])) continue;
  433. SetActorPos(ActorID[i],iActorPos[i][0],iActorPos[i][1],iActorPos[i][2]); }
  434. for(new i;i<BITCHES;i++) {
  435. if(!IsValidActor(Bitch[i][bID]) || (Bitch[i][bBusy]>-1)) continue;
  436. SetActorPos(Bitch[i][bID],iBitchPos[i][0],iBitchPos[i][1],iBitchPos[i][2]); }
  437. return 1;
  438. }
  439.  
  440. new streambugfixtimer=-1;
  441.  
  442. public OnActorStreamIn(actorid,forplayerid)
  443. {
  444. if(streambugfixtimer==-1) {
  445. streambugfixtimer=SetTimer("streambugfix",500,0); }
  446. return 1;
  447. }
  448. forward streambugfix();
  449. public streambugfix() { KillTimer(streambugfixtimer),syncActors(),streambugfixtimer=-1; }
  450.  
  451. public OnFilterScriptExit()
  452. {
  453. for(new i;i<AKTORS;i++) {
  454. if(!IsValidActor(ActorID[i])) continue;
  455. DestroyActor(ActorID[i]);
  456. ActorID[i]=-1; }
  457. for(new i;i<BITCHES;i++) {
  458. if(!IsValidActor(Bitch[i][bID])) continue;
  459. Delete3DTextLabel(Bitch[i][bLabel]);
  460. DestroyActor(Bitch[i][bID]);
  461. Bitch[i][bID]=-1; }
  462. for(new i;i<sizeof(object);i++) {
  463. if(IsValidObject(i)) DestroyObject(i); }
  464. KillTimer(bitchchecktimer);
  465. return 1;
  466. }
  467.  
  468. public OnPlayerSpawn(playerid)
  469. {
  470. Player[playerid][pBitch]=-1; Player[playerid][pInArea]=-1; Player[playerid][pMovieMod]=0;
  471. Player[playerid][pInArea]=-1; Player[playerid][pBitch]=-1; Player[playerid][keyOrder]=0;
  472. Player[playerid][excMod]=-1; Player[playerid][excTimer]=-1; Player[playerid][pExcitement]=0.0; Player[playerid][pFail]=0;
  473. for(new b;b<BITCHES;b++) {
  474. Player[playerid][pFuckedBitch][b]=0; }
  475. SetTimerEx("CheckPlayerSpawn",500,0,"d",playerid);
  476. PreloadAnimLib(playerid);
  477. return 1;
  478. }
  479.  
  480. forward CheckPlayerSpawn(playerid);
  481. public CheckPlayerSpawn(playerid)
  482. {
  483. syncActors();
  484. return 1;
  485. }
  486.  
  487. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  488. {
  489. if((newinteriorid == 15) || ((newinteriorid==0) && (oldinteriorid==15))) {
  490. for(new b;b<BITCHES;b++) {
  491. Player[playerid][pFuckedBitch][b]=0; }
  492. syncActors(); }
  493. return 1;
  494. }
  495.  
  496. forward Excitement(playerid,bitchid);
  497. public Excitement(playerid,bitchid)
  498. {
  499. new Float:phealth;
  500. GetPlayerHealth(playerid,phealth);
  501. if(Player[playerid][excMod]==0)
  502. {
  503.  
  504. Player[playerid][excMod]=1;
  505. }
  506. else if(Player[playerid][excMod]==1)
  507. {
  508.  
  509. Player[playerid][excMod]=2;
  510. if(bitchid!=1) { Player[playerid][excMod]=3; }
  511. }
  512. else if(Player[playerid][excMod]==2)
  513. {
  514.  
  515. Player[playerid][excMod]=3;
  516. }
  517. else if(Player[playerid][excMod]==3) {
  518. Player[playerid][pExcitement]=0.0;
  519. if((bitchid==0) || (bitchid==3)) TextDrawSetString(gagnfuck,"Pressione LMB e RMB do mause no ritmo para transar com ela.");
  520. else TextDrawSetString(gagnfuck,"Pressione LMB e RMB do mause no ritmo para amordaçá-la.");
  521. TextDrawShowForPlayer(playerid,gagnfuck);
  522. TextDrawShowForPlayer(playerid,exctext);
  523. TextDrawShowForPlayer(playerid,bshadow);
  524. if(bitchid==3) {
  525. ClearAnimations(playerid);
  526. ClearActorAnimations(Bitch[bitchid][bID]); }
  527. ApplyAnimation(playerid,iBitchAnimLib[bitchid][8],iBitchAnimLib[bitchid][9],4,1,0,0,1,0,1);
  528. ApplyActorAnimation(Bitch[bitchid][bID],iBitchAnimLib[bitchid][6],iBitchAnimLib[bitchid][7],4.3,1,0,0,0,0);
  529. PlayerTextDrawShow(playerid,Player[playerid][ExcBalken]);
  530. Player[playerid][excMod]=4; }
  531. else if(Player[playerid][excMod]==4)
  532. {
  533.  
  534. if(Player[playerid][pExcitement]>0) { Player[playerid][pExcitement]-=3.0; }
  535. if(Player[playerid][pExcitement] < 86.0) //sex/bj NOT complete
  536. {
  537.  
  538. PlayerTextDrawHide(playerid,Player[playerid][ExcBalken]);
  539. PlayerTextDrawTextSize(playerid,Player[playerid][ExcBalken],Player[playerid][pExcitement]+538.0,2.0);
  540. PlayerTextDrawShow(playerid,Player[playerid][ExcBalken]);
  541. if(bitchid==0)
  542. {
  543.  
  544. new rand=random(12);
  545. if(rand==5)
  546. {
  547.  
  548. SetPlayerCameraPos(playerid,2204.203857, -1192.829101, 1029.686279);
  549. SetPlayerCameraLookAt(playerid,2204.066650, -1194.023681, 1029.513305);
  550. }
  551. else if(rand==8)
  552. {
  553.  
  554. SetPlayerCameraPos(playerid,2205.703857, -1194.029052, 1029.986328);
  555. SetPlayerCameraLookAt(playerid,2203.466552, -1193.973632, 1029.513305);
  556. }
  557. else if(rand==9)//kap?d?sar?, oturarak sikerken
  558. {
  559.  
  560. SetPlayerCameraPos(playerid,2210.591552, -1189.841796, 1030.527587);
  561. SetPlayerCameraLookAt(playerid,2209.8275, -1190.473, 1030.395);
  562. }
  563. else if(rand==11)
  564. {
  565.  
  566. SetPlayerCameraPos(playerid,2204.003906, -1193.968994, 1030.786254);
  567. SetPlayerCameraLookAt(playerid,2203.466552, -1193.973632, 1029.513305);
  568. }
  569. }
  570. }
  571. else //sex/bj complete
  572. {
  573.  
  574. if(bitchid==0) {
  575. DestroyActor(Bitch[bitchid][bID]);
  576. Bitch[bitchid][bID]=CreateDynamicActor(iBitchModel[bitchid],iBitchPos[bitchid][0],iBitchPos[bitchid][1],iBitchPos[bitchid][2],iBitchPos[bitchid][3]); //0.3.7 Rotatebug-fix
  577. SetPlayerCameraPos(playerid,2203.701416,-1191.710449,1029.431396);
  578. SetPlayerCameraLookAt(playerid,2204.286865,-1192.479858,1029.686767,CAMERA_MOVE);
  579. SetPlayerPos(playerid,2205.2502,-1193.9957,1030.5249);
  580. SetPlayerFacingAngle(playerid,85.7275); }
  581. else if(bitchid==3) {
  582. DestroyActor(Bitch[bitchid][bID]);
  583. Bitch[bitchid][bID]=CreateDynamicActor(iBitchModel[bitchid],iBitchPos[bitchid][0],iBitchPos[bitchid][1],iBitchPos[bitchid][2],iBitchPos[bitchid][3]); //0.3.7 Rotatebug-fix
  584. SetPlayerCameraPos(playerid,2245.8842,-1166.4392,1030.9814);
  585. SetPlayerCameraLookAt(playerid,2246.7126,-1166.0609,1030.5684);
  586. SetPlayerPos(playerid,2248.7732,-1164.9709,1029.8754);
  587. SetPlayerFacingAngle(playerid,185.7614); }
  588. else {
  589. SetPlayerCameraPos(playerid,iBitchPos[bitchid][9],iBitchPos[bitchid][10],iBitchPos[bitchid][11]);
  590. SetPlayerCameraLookAt(playerid,iBitchPos[bitchid][12],iBitchPos[bitchid][13],iBitchPos[bitchid][14],CAMERA_MOVE); }
  591. PlayerTextDrawHide(playerid,Player[playerid][ExcBalken]);
  592. PlayerTextDrawTextSize(playerid,Player[playerid][ExcBalken],624.0,2.0);
  593. PlayerTextDrawShow(playerid,Player[playerid][ExcBalken]);
  594. ApplyAnimation(playerid,iBitchAnimLib[bitchid][12],iBitchAnimLib[bitchid][13],4,0,0,0,1,0,1);
  595. ApplyActorAnimation(Bitch[bitchid][bID],iBitchAnimLib[bitchid][10],iBitchAnimLib[bitchid][11],4,0,0,0,1,0);
  596. Player[playerid][excMod]=5;
  597. }
  598. }
  599. else if(Player[playerid][excMod]==5)
  600. {
  601.  
  602. Player[playerid][excMod]=6;
  603. }
  604. else if(Player[playerid][excMod]==6)
  605. {
  606.  
  607. Player[playerid][excMod]=7;
  608. }
  609. else if(Player[playerid][excMod]==7)
  610. {
  611.  
  612. Player[playerid][excMod]=8;
  613. }
  614. else if(Player[playerid][excMod]==8)
  615. {
  616.  
  617. Player[playerid][excMod]=9;
  618. if(bitchid!=1) { Player[playerid][excMod]=11; }
  619. }
  620. else if(Player[playerid][excMod]==9)
  621. {
  622.  
  623. Player[playerid][excMod]=10;
  624. }
  625. else if(Player[playerid][excMod]==10)
  626. {
  627.  
  628. Player[playerid][excMod]=11;
  629. }
  630. else if(Player[playerid][excMod]==11)
  631. {
  632.  
  633. if(!Player[playerid][pFail])
  634. {
  635.  
  636. new Float:addhp;
  637. if(phealth+iBitchHpArmor[bitchid][0]>100) { addhp=100; } else { addhp+=iBitchHpArmor[bitchid][0]; }
  638. SetPlayerHealth(playerid,addhp);
  639. GetPlayerArmour(playerid,phealth);
  640. if(phealth+iBitchHpArmor[bitchid][1]>100) { addhp=100; } else { addhp+=iBitchHpArmor[bitchid][1]; }
  641. SetPlayerArmour(playerid,addhp);
  642. ClearAnimations(playerid);
  643. ApplyAnimation(playerid,"MISC","Scratchballs_01",4,0,1,1,0,0);
  644. if(bitchid==0) {
  645. SetPlayerPos(playerid,2208.2087,-1190.9595,1029.7969);
  646. SetPlayerFacingAngle(playerid,292.6569); }
  647. TogglePlayerControllable(playerid,1);
  648. SetCameraBehindPlayer(playerid);
  649. }
  650. PlayerTextDrawDestroy(playerid,Player[playerid][ExcBalken]);
  651. TogglePlayerMovieMod(playerid,0);
  652. Bitch[bitchid][bLabel] = Create3DTextLabel(iBitchLabel[bitchid],0xFF0000FF,iBitchPos[bitchid][0],iBitchPos[bitchid][1],iBitchPos[bitchid][2],5.0,0,1);
  653. TextDrawHideForPlayer(playerid,gagnfuck);
  654. TextDrawHideForPlayer(playerid,bshadow);
  655. TextDrawHideForPlayer(playerid,exctext);
  656. DestroyActor(Bitch[bitchid][bID]);
  657. Bitch[bitchid][bID]=CreateDynamicActor(iBitchModel[bitchid],iBitchPos[bitchid][0],iBitchPos[bitchid][1],iBitchPos[bitchid][2],iBitchPos[bitchid][3]); //0.3.7 Rotatebug-fix
  658. ApplyActorAnimation(Bitch[bitchid][bID],iBitchAnimLib[bitchid][0],iBitchAnimLib[bitchid][1],4,1,0,0,1,0);
  659. KillTimer(Player[playerid][excTimer]);
  660. Player[playerid][pFuckedBitch][bitchid]=1;
  661. Bitch[bitchid][bBusy]=-1;
  662. Player[playerid][excMod]=0;
  663. Player[playerid][pFail]=0;
  664. Player[playerid][pBitch]=-1;
  665.  
  666. syncActors();
  667. }
  668. return 1;
  669. }
  670.  
  671. public OnPlayerDisconnect(playerid,reason)
  672. {
  673. if(Player[playerid][pBitch]>-1)
  674. {
  675.  
  676. Player[playerid][pFail]=1;
  677. Player[playerid][excMod]=11;
  678. KillTimer(Player[playerid][excTimer]);
  679. Excitement(playerid,Player[playerid][pBitch]);
  680. }
  681. return 1;
  682. }
  683.  
  684. public OnPlayerDeath(playerid,killerid,reason)
  685. {
  686. if(Player[playerid][pBitch]>-1)
  687. {
  688.  
  689. Player[playerid][pFail]=1;
  690. Player[playerid][excMod]=11;
  691. KillTimer(Player[playerid][excTimer]);
  692. Excitement(playerid,Player[playerid][pBitch]);
  693. }
  694. return 1;
  695. }
  696.  
  697. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  698. {
  699. if(newkeys == KEY_SECONDARY_ATTACK)
  700. {
  701.  
  702. for(new i=0;i<BITCHES;i++)
  703. {
  704.  
  705. if(IsPlayerInRangeOfPoint(playerid,3.0,iBitchPos[i][0],iBitchPos[i][1],iBitchPos[i][2]) && (Bitch[i][bBusy]==-1) && (!Player[playerid][pFuckedBitch][i]))
  706. {
  707.  
  708. if(GetPlayerMoney(playerid) >= iBitchCost[i])
  709. {
  710.  
  711. Player[playerid][pBitch]=i;
  712. Bitch[i][bBusy]=playerid;
  713. PlayerPlaySound(playerid,1150,0,0,0);
  714. GivePlayerMoney(playerid,-iBitchCost[i]);
  715. Delete3DTextLabel(Bitch[i][bLabel]);
  716. TogglePlayerControllable(playerid,0);
  717. DestroyActor(Bitch[i][bID]);
  718. if(i==3)
  719. {
  720.  
  721. Bitch[i][bID]=CreateDynamicActor(iBitchModel[i],2248.3857,-1166.1635,1030.6276,269.1816); //0.3.7 Rotatebug-fix
  722. }
  723. else
  724. {
  725.  
  726. Bitch[i][bID]=CreateDynamicActor(iBitchModel[i],iBitchPos[i][0],iBitchPos[i][1],iBitchPos[i][2],iBitchPos[i][4]); //0.3.7 Rotatebug-fix
  727. }
  728. SetPlayerPos(playerid,iBitchPos[i][5],iBitchPos[i][6],iBitchPos[i][7]);
  729. SetPlayerFacingAngle(playerid,iBitchPos[i][8]);
  730. TogglePlayerMovieMod(playerid,1);
  731. SetPlayerCameraPos(playerid,iBitchPos[i][9],iBitchPos[i][10],iBitchPos[i][11]);
  732. SetPlayerCameraLookAt(playerid,iBitchPos[i][12],iBitchPos[i][13],iBitchPos[i][14],CAMERA_MOVE);
  733. ApplyAnimation(playerid,iBitchAnimLib[i][4],iBitchAnimLib[i][5],4,0,0,0,1,0,1);
  734. ApplyActorAnimation(Bitch[i][bID],iBitchAnimLib[i][2],iBitchAnimLib[i][3],4,0,0,0,1,0);
  735. Player[playerid][ExcBalken] = CreatePlayerTextDraw(playerid,543.000000,110.000000,"_");
  736. PlayerTextDrawUseBox(playerid,Player[playerid][ExcBalken],1);
  737. PlayerTextDrawBoxColor(playerid,Player[playerid][ExcBalken],0xffffff99);
  738. PlayerTextDrawTextSize(playerid,Player[playerid][ExcBalken],624.000000,2.000000);
  739. PlayerTextDrawAlignment(playerid,Player[playerid][ExcBalken],0);
  740. PlayerTextDrawBackgroundColor(playerid,Player[playerid][ExcBalken],0x000000ff);
  741. PlayerTextDrawFont(playerid,Player[playerid][ExcBalken],3);
  742. PlayerTextDrawLetterSize(playerid,Player[playerid][ExcBalken],1.000000,0.299999);
  743. PlayerTextDrawColor(playerid,Player[playerid][ExcBalken],0xffffffff);
  744. PlayerTextDrawSetOutline(playerid,Player[playerid][ExcBalken],1);
  745. PlayerTextDrawSetProportional(playerid,Player[playerid][ExcBalken],1);
  746. PlayerTextDrawSetShadow(playerid,Player[playerid][ExcBalken],1);
  747. Player[playerid][excMod]=0;
  748. Player[playerid][excTimer] = SetTimerEx("Excitement",1000,1,"dd",playerid,i);
  749. break;
  750. }
  751. }
  752. }
  753. }
  754. if((Player[playerid][pBitch]>-1) && (Player[playerid][excMod]>=3))
  755. {
  756.  
  757. if((newkeys & KEY_FIRE) && (Player[playerid][keyOrder]==LMB))
  758. {
  759.  
  760. Player[playerid][pExcitement]+=1.0;
  761. Player[playerid][keyOrder]=RMB;
  762. }
  763. if((newkeys & KEY_HANDBRAKE) && (Player[playerid][keyOrder]==RMB))
  764. {
  765.  
  766. Player[playerid][pExcitement]+=1.0;
  767. Player[playerid][keyOrder]=LMB;
  768. }
  769. }
  770. return 1;
  771. }
  772.  
  773. forward isPlayerInArea();
  774. public isPlayerInArea()
  775. {
  776. for(new i;i<MAX_PLAYERS;i++) {
  777. if(GetPlayerInterior(i)!=15) continue;
  778. for(new b;b<BITCHES;b++)
  779. {
  780.  
  781. if(!IsActorStreamedIn(Bitch[b][bID],i)) continue;
  782. new Float:ppos[3];
  783. GetPlayerPos(i,ppos[0],ppos[1],ppos[2]);
  784. if((ppos[0] <= iBitchPos[b][15]) && (ppos[0] >= iBitchPos[b][18]) && (ppos[1] <= iBitchPos[b][16]) && (ppos[1] >= iBitchPos[b][19]) && (ppos[2] <= iBitchPos[b][17]) && (ppos[2] >= iBitchPos[b][20]) && (!Player[i][pFuckedBitch][b]))
  785. {
  786.  
  787. if(Bitch[b][bBusy]==-1)
  788. {
  789. //bX,bY,bZ,bAngle,bBusyAngle,pedX,pedY,pedZ,pedBusyAngle,camX,camY,camZ,camlookx,camlooky,camlookz,moviemaxX,moviemaxY,moviemaxZ,movieminX,movieminY,movieminZ,moviecamX,moviecamY,moviecamZ,movielookX,movielookY,movielookZ
  790. if(!Player[i][pMovieMod] && (Player[i][pInArea]!=b))
  791. {
  792.  
  793. Player[i][pInArea]=b;
  794. SetPlayerCameraPos(i,iBitchPos[b][21],iBitchPos[b][22],iBitchPos[b][23]);
  795. SetPlayerCameraLookAt(i,iBitchPos[b][24],iBitchPos[b][25],iBitchPos[b][26],CAMERA_MOVE);
  796. TogglePlayerMovieMod(i,1);
  797. return 1;
  798. }
  799. }
  800. }
  801. else
  802. {
  803.  
  804. if(Player[i][pMovieMod] && (Player[i][pInArea]==b))
  805. {
  806.  
  807. Player[i][pInArea]=-1;
  808. TogglePlayerMovieMod(i,0);
  809. SetCameraBehindPlayer(i);
  810. return 1;
  811. }
  812. }
  813. }
  814. }
  815. return 1;
  816. }
  817.  
  818. stock TogglePlayerMovieMod(playerid,mod)
  819. {
  820. if(!mod)
  821. {
  822.  
  823. Player[playerid][pMovieMod]=0;
  824. TextDrawHideForPlayer(playerid,moviemod[0]);
  825. TextDrawHideForPlayer(playerid,moviemod[1]);
  826. }
  827. else
  828. {
  829.  
  830. Player[playerid][pMovieMod]=1;
  831. TextDrawShowForPlayer(playerid,moviemod[0]);
  832. TextDrawShowForPlayer(playerid,moviemod[1]);
  833. }
  834. }
Add Comment
Please, Sign In to add comment