Advertisement
wotadotid

FS Cinema 3d

Nov 1st, 2014
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.69 KB | None | 0 0
  1. // Cinema3D by Teddy
  2. // put in filterscript amx and pwn
  3. //server.cfg / FILTERSCRIPT put Cinema3D and restarted your server
  4.  
  5. #include <a_samp>
  6. #include <sscanf>
  7.  
  8.  
  9. #define color_red "{F81414}"
  10. #define color_orange "{FFAF00}"
  11. #define COLOR_GREEN 0x33AA33AA
  12. #define COLOR_RED 0xAA3333AA
  13. #define PTP PlayerToPoint
  14.  
  15. forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
  16.  
  17. #if defined FILTERSCRIPT
  18.  
  19. public OnFilterScriptInit()
  20. {
  21. print("\n--------------------------------------");
  22. print(" SCript cinema 3d by wota dot id");
  23. print("--------------------------------------\n");
  24. return 1;
  25. }
  26.  
  27. public OnFilterScriptExit()
  28. {
  29. return 1;
  30. }
  31.  
  32. #else
  33.  
  34. main()
  35. {
  36. print("\n----------------------------------");
  37. print(" MPRP by Wota and odoy");
  38. print("----------------------------------\n");
  39. }
  40.  
  41. #endif
  42.  
  43. public OnGameModeInit()
  44. {
  45. Create3DTextLabel(""color_red"Cinema\n"color_orange"/enter", COLOR_RED ,1244.1207,-1128.7041,23.9471,30.0,0); //
  46. new reclama1 = CreateObject(4735,-1479.7301, -205.1329, 1081.4974, -180.0000, -184.0000, 360.0000);
  47. SetObjectMaterialText(reclama1, "{FFFFFF}Cinema 3D\n {00FFEE}by {F81414}Teddy", 0, OBJECT_MATERIAL_SIZE_256x128, "Gabriola", 55, 1, -32256, 1, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
  48.  
  49. new reclama2 = CreateObject(19329,1244.1207,-1128.7041,25.9471, 0.0000, 0.0000, 0.0);
  50. SetObjectMaterialText(reclama2, "{FFFFFF}Cinema 3D\n {00FFEE}by {F81414}Teddy", 0, OBJECT_MATERIAL_SIZE_256x128, "Gabriola", 70, 1, -32256, 1, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
  51. AddStaticPickup(19130,23,1281.8215, -1265.2635, 14.1828);//Enter Cinema
  52. AddStaticPickup(19130,23,-1443.8389,-204.0373,1072.5171);//Exit Cinema
  53.  
  54. //======== cinema
  55. CreateObject(7909, -1457.98, -194.64, 1072.47, -2.00, -6.00, 359.00);
  56. CreateObject(7909, -1460.45, -213.80, 1071.84, 0.00, 4.00, 179.13);
  57. CreateObject(9189, -1459.04, -195.70, 1084.12, -1.00, -4.00, 6.48);
  58. CreateObject(7903, -1444.32, -203.50, 1075.99, 8.00, 0.00, 277.70);
  59. CreateObject(9189, -1457.02, -212.66, 1081.16, 1.00, 0.00, 186.00);
  60. CreateObject(18981, -1469.38, -204.20, 1087.99, 0.00, -94.00, 357.15);
  61. CreateObject(18981, -1468.79, -194.28, 1077.37, -9.00, 0.00, 89.00);
  62. CreateObject(18981, -1453.69, -194.52, 1079.77, -9.00, 0.00, 89.00);
  63. CreateObject(18981, -1468.72, -213.92, 1077.44, -9.00, 0.00, 89.00);
  64. CreateObject(18981, -1443.29, -204.37, 1077.80, 0.00, -8.00, 0.00);
  65. CreateObject(18981, -1468.34, -203.02, 1068.50, 0.00, -94.00, 357.15);
  66. CreateObject(18981, -1449.57, -203.87, 1070.18, 0.00, -94.00, 357.76);
  67. CreateObject(18981, -1446.60, -204.45, 1070.50, 0.00, -94.00, 0.00);
  68. CreateObject(18981, -1442.78, -204.50, 1071.09, 0.00, -94.00, 0.00);
  69. CreateObject(19380, -1455.89, -200.47, 1075.75, 0.00, 90.00, 269.69);
  70. CreateObject(11544, -1456.35, -212.36, 1074.80, 0.00, 0.00, 91.64);
  71. CreateObject(1723, -1458.42, -206.25, 1075.82, 0.00, 0.00, 269.06);
  72. CreateObject(1710, -1451.22, -204.57, 1070.95, 0.00, 0.00, 269.43);
  73. CreateObject(1710, -1451.26, -196.58, 1070.95, 0.00, 0.00, 269.43);
  74. CreateObject(1710, -1455.32, -204.41, 1070.09, 0.00, 0.00, 269.43);
  75. CreateObject(1710, -1459.06, -196.38, 1069.57, 0.00, 0.00, 269.43);
  76. CreateObject(1710, -1459.06, -204.33, 1069.57, 0.00, 0.00, 269.43);
  77. CreateObject(1710, -1455.31, -196.44, 1070.09, 0.00, 0.00, 269.43);
  78. CreateObject(1710, -1462.20, -204.24, 1069.24, 0.00, 0.00, 269.43);
  79. CreateObject(1710, -1462.19, -196.44, 1069.24, 0.00, 0.00, 269.43);
  80. CreateObject(1723, -1456.46, -201.53, 1075.82, 0.00, 0.00, 269.06);
  81. CreateObject(1723, -1458.38, -196.63, 1075.82, 0.00, 0.00, 269.06);
  82. CreateObject(1828, -1459.11, -202.69, 1075.82, 0.00, 0.00, 269.41);
  83. CreateObject(1817, -1460.40, -206.73, 1075.82, 0.00, 0.00, 269.41);
  84. CreateObject(1817, -1460.52, -197.10, 1075.82, 0.00, 0.00, 269.41);
  85. CreateObject(1817, -1458.21, -202.20, 1075.82, 0.00, 0.00, 269.41);
  86. CreateObject(18981, -1456.33, -214.03, 1079.47, -9.00, 0.00, 89.00);
  87. CreateObject(11544, -1453.26, -212.33, 1072.27, 0.00, 0.00, 91.64);
  88. CreateObject(19380, -1455.98, -210.42, 1075.75, 0.00, 90.00, 269.69);
  89. CreateObject(1504, -1442.97, -203.04, 1071.50, 8.00, -1.00, 270.00);
  90. CreateObject(18981, -1468.34, -203.02, 1068.50, 0.00, -94.00, 357.15);
  91. CreateObject(18981, -1453.52, -205.00, 1089.10, 0.00, -94.00, 357.15);
  92. CreateObject(18981, -1480.62, -203.74, 1077.66, 0.00, -178.00, 359.00);
  93. CreateObject(1815, -1460.45, -196.97, 1075.82, 0.00, 0.00, 269.41);
  94. CreateObject(1815, -1458.40, -201.94, 1075.82, 0.00, 0.00, 269.41);
  95. CreateObject(1815, -1460.32, -206.75, 1075.82, 0.00, 0.00, 269.41);
  96. CreateObject(2801, -1457.94, -202.48, 1075.98, 0.00, 0.00, 0.00);
  97. CreateObject(2801, -1459.85, -207.27, 1075.98, 0.00, 0.00, 0.00);
  98. CreateObject(2801, -1459.94, -197.48, 1075.98, 0.00, 0.00, 0.00);
  99. CreateObject(2168, -1443.70, -203.11, 1071.26, 0.00, 0.00, 266.86);
  100. CreateObject(2168, -1443.68, -205.38, 1071.26, 0.00, 0.00, 266.86);
  101. CreateObject(2586, -1463.66, -206.13, 1069.31, 0.00, 0.00, 270.65);
  102. CreateObject(2586, -1463.71, -198.31, 1069.24, 0.00, 0.00, 270.54);
  103. CreateObject(2586, -1460.44, -206.21, 1069.83, 0.00, 0.00, 271.16);
  104. CreateObject(2586, -1460.43, -198.18, 1069.79, 0.00, 0.00, 271.16);
  105. CreateObject(2586, -1456.80, -206.17, 1070.14, 0.00, 0.00, 271.16);
  106. CreateObject(2586, -1456.88, -198.19, 1070.14, 0.00, 0.00, 271.16);
  107. CreateObject(2586, -1452.81, -198.23, 1070.80, 0.00, 0.00, 271.16);
  108. CreateObject(2586, -1452.71, -206.30, 1070.80, 0.00, 0.00, 271.16);
  109. CreateObject(1486, -1463.52, -199.24, 1069.88, 0.00, 0.00, 0.00);
  110. CreateObject(1486, -1463.69, -198.71, 1069.88, 0.00, 0.00, 0.00);
  111. CreateObject(1486, -1463.38, -198.21, 1069.88, 0.00, 0.00, 0.00);
  112. CreateObject(1486, -1463.48, -197.51, 1069.88, 0.00, 0.00, 0.00);
  113. CreateObject(1486, -1463.46, -205.30, 1069.96, 0.00, 0.00, 0.00);
  114. CreateObject(1486, -1463.70, -205.40, 1069.96, 0.00, 0.00, 0.00);
  115. CreateObject(1486, -1463.64, -206.55, 1069.96, 0.00, 0.00, 0.00);
  116. CreateObject(1486, -1463.48, -207.10, 1069.96, 0.00, 0.00, 0.00);
  117. CreateObject(1487, -1460.29, -207.20, 1070.51, 0.00, 0.00, 0.00);
  118. CreateObject(1487, -1460.53, -206.68, 1070.51, 0.00, 0.00, 0.00);
  119. CreateObject(1487, -1460.35, -205.50, 1070.51, 0.00, 0.00, 0.00);
  120. CreateObject(1487, -1460.19, -205.20, 1070.51, 0.00, 0.00, 0.00);
  121. CreateObject(1487, -1456.62, -207.16, 1070.80, 0.00, 0.00, 0.00);
  122. CreateObject(1487, -1456.89, -206.69, 1070.80, 0.00, 0.00, 0.00);
  123. CreateObject(1487, -1456.90, -205.49, 1070.80, 0.00, 0.00, 0.00);
  124. CreateObject(1487, -1456.56, -205.20, 1070.80, 0.00, 0.00, 0.00);
  125. CreateObject(1487, -1452.57, -205.43, 1071.52, 0.00, 0.00, 0.00);
  126. CreateObject(1487, -1452.41, -205.98, 1071.52, 0.00, 0.00, 0.00);
  127. CreateObject(1487, -1452.79, -206.75, 1071.52, 0.00, 0.00, 0.00);
  128. CreateObject(1487, -1452.55, -207.26, 1071.52, 0.00, 0.00, 0.00);
  129. CreateObject(1487, -1452.63, -199.20, 1071.52, 0.00, 0.00, 0.00);
  130. CreateObject(1487, -1452.89, -198.76, 1071.52, 0.00, 0.00, 0.00);
  131. CreateObject(1487, -1452.54, -197.86, 1071.52, 0.00, 0.00, 0.00);
  132. CreateObject(1487, -1452.61, -197.23, 1071.52, 0.00, 0.00, 0.00);
  133. CreateObject(1487, -1456.70, -199.20, 1070.80, 0.00, 0.00, 0.00);
  134. CreateObject(1487, -1456.97, -198.59, 1070.80, 0.00, 0.00, 0.00);
  135. CreateObject(1487, -1456.59, -197.92, 1070.80, 0.00, 0.00, 0.00);
  136. CreateObject(1487, -1456.67, -197.21, 1070.80, 0.00, 0.00, 0.00);
  137. CreateObject(1487, -1460.28, -199.18, 1070.51, 0.00, 0.00, 0.00);
  138. CreateObject(1487, -1460.54, -198.72, 1070.51, 0.00, 0.00, 0.00);
  139. CreateObject(1487, -1460.18, -197.99, 1070.51, 0.00, 0.00, 0.00);
  140. CreateObject(1487, -1460.27, -197.22, 1070.51, 0.00, 0.00, 0.00);
  141. CreateObject(1665, -1463.43, -206.54, 1069.82, 0.00, 0.00, 0.00);
  142. CreateObject(1665, -1460.20, -198.63, 1070.34, 0.00, 0.00, 0.00);
  143. CreateObject(1665, -1463.48, -198.96, 1069.76, 0.00, 0.00, 0.00);
  144. CreateObject(1665, -1456.61, -198.85, 1070.66, 0.00, 0.00, 0.00);
  145. CreateObject(1665, -1460.26, -206.85, 1070.36, 0.00, 0.00, 0.00);
  146. CreateObject(1665, -1456.59, -206.66, 1070.66, 0.00, 0.00, 0.00);
  147. CreateObject(1665, -1452.61, -198.92, 1071.32, 0.00, 0.00, 0.00);
  148. CreateObject(1665, -1452.53, -206.85, 1071.32, 0.00, 0.00, 0.00);
  149. CreateObject(1828, -1454.79, -208.01, 1075.84, 0.00, 0.00, 269.41);
  150. CreateObject(1828, -1454.69, -198.04, 1075.84, 0.00, 0.00, 269.41);
  151. CreateObject(2858, -1452.78, -206.28, 1071.30, 0.00, 0.00, 69.22);
  152. CreateObject(2860, -1452.76, -197.80, 1071.30, 0.00, 0.00, 58.24);
  153. CreateObject(2860, -1456.88, -197.89, 1070.64, 0.00, 0.00, 58.24);
  154. CreateObject(2860, -1460.44, -197.85, 1070.32, 0.00, 0.00, 58.24);
  155. CreateObject(2860, -1463.69, -197.85, 1069.81, 0.00, 0.00, 58.24);
  156. CreateObject(2858, -1463.65, -205.86, 1069.84, 0.00, 0.00, 115.21);
  157. CreateObject(2858, -1460.39, -206.23, 1070.34, 0.00, 0.00, 115.21);
  158. CreateObject(2858, -1456.75, -206.19, 1070.65, 0.00, 0.00, 115.21);
  159. CreateObject(2888, -1470.58, -195.49, 1078.46, -26.00, 0.00, 149.00);
  160. CreateObject(8878, -1476.01, -201.31, 1075.06, -18.00, -74.00, 280.60);
  161. CreateObject(8878, -1475.54, -207.10, 1075.76, -18.00, -74.00, 192.15);
  162. CreateObject(2888, -1470.64, -213.07, 1079.11, -22.00, 0.00, 26.00);
  163.  
  164. return 1;
  165. }
  166.  
  167. public OnGameModeExit()
  168. {
  169. return 1;
  170. }
  171.  
  172. public OnPlayerRequestClass(playerid, classid)
  173. {
  174. return 1;
  175. }
  176.  
  177. public OnPlayerConnect(playerid)
  178. {
  179. return 1;
  180. }
  181.  
  182. public OnPlayerDisconnect(playerid, reason)
  183. {
  184. return 1;
  185. }
  186.  
  187. public OnPlayerSpawn(playerid)
  188. {
  189. return 1;
  190. }
  191.  
  192. public OnPlayerDeath(playerid, killerid, reason)
  193. {
  194. return 1;
  195. }
  196.  
  197. public OnVehicleSpawn(vehicleid)
  198. {
  199. return 1;
  200. }
  201.  
  202. public OnVehicleDeath(vehicleid, killerid)
  203. {
  204. return 1;
  205. }
  206.  
  207. public OnPlayerText(playerid, text[])
  208. {
  209. return 1;
  210. }
  211. strtok(const string[], &index)
  212. {
  213. new length = strlen(string);
  214. while ((index < length) && (string[index] <= ' '))
  215. {
  216. index++;
  217. }
  218.  
  219. new offset = index;
  220. new result[20];
  221. while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
  222. {
  223. result[index - offset] = string[index];
  224. index++;
  225. }
  226. result[index - offset] = EOS;
  227. return result;
  228. }
  229. public OnPlayerCommandText(playerid, cmdtext[])
  230. {
  231. new cmd[128], idx;
  232. cmd = strtok(cmdtext, idx);
  233. //================ Dush On ======================================
  234. if(strcmp(cmdtext, "/enter", true) == 0)
  235. {
  236. if(IsPlayerConnected(playerid))
  237. {
  238. if PlayerToPoint(5,playerid,1244.1207,-1128.7041,23.9471)
  239. *then
  240. {
  241. SetPlayerPos(playerid,-1443.8389,-204.0373,1072.5171);
  242. SetPlayerInterior(playerid,7);
  243. PlayAudioStreamForPlayer(playerid, "http://www.greudedifuzat.eu/greudedifuzat.m3u",-1479.73, -205.13, 1081.50,500, 1);
  244. SendClientMessage(playerid,COLOR_GREEN,"*** Bine ai venit la Cinema!");
  245. return 1;
  246. }
  247. }
  248. }
  249. if(strcmp(cmdtext, "/exit", true) == 0)
  250. {
  251. if(IsPlayerConnected(playerid))
  252. {
  253. if PlayerToPoint(5,playerid,-1443.8389,-204.0373,1072.5171)
  254. *then
  255. {
  256. SetPlayerPos(playerid,1244.1207,-1128.7041,23.9471);
  257. SetPlayerInterior(playerid,0);
  258. SendClientMessage(playerid,COLOR_GREEN,"*** Ai iesit din Cinema!");
  259. return 1;
  260. }
  261. }
  262. }
  263. return 0;
  264. }
  265.  
  266. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  267. {
  268. return 1;
  269. }
  270.  
  271. public OnPlayerExitVehicle(playerid, vehicleid)
  272. {
  273. return 1;
  274. }
  275.  
  276. public OnPlayerStateChange(playerid, newstate, oldstate)
  277. {
  278. return 1;
  279. }
  280.  
  281. public OnPlayerEnterCheckpoint(playerid)
  282. {
  283. return 1;
  284. }
  285.  
  286. public OnPlayerLeaveCheckpoint(playerid)
  287. {
  288. return 1;
  289. }
  290.  
  291. public OnPlayerEnterRaceCheckpoint(playerid)
  292. {
  293. return 1;
  294. }
  295.  
  296. public OnPlayerLeaveRaceCheckpoint(playerid)
  297. {
  298. return 1;
  299. }
  300.  
  301. public OnRconCommand(cmd[])
  302. {
  303. return 1;
  304. }
  305.  
  306. public OnPlayerRequestSpawn(playerid)
  307. {
  308. return 1;
  309. }
  310.  
  311. public OnObjectMoved(objectid)
  312. {
  313. return 1;
  314. }
  315.  
  316. public OnPlayerObjectMoved(playerid, objectid)
  317. {
  318. return 1;
  319. }
  320.  
  321. public OnPlayerPickUpPickup(playerid, pickupid)
  322. {
  323. return 1;
  324. }
  325.  
  326. public OnVehicleMod(playerid, vehicleid, componentid)
  327. {
  328. return 1;
  329. }
  330.  
  331. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  332. {
  333. return 1;
  334. }
  335.  
  336. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  337. {
  338. return 1;
  339. }
  340.  
  341. public OnPlayerSelectedMenuRow(playerid, row)
  342. {
  343. return 1;
  344. }
  345.  
  346. public OnPlayerExitedMenu(playerid)
  347. {
  348. return 1;
  349. }
  350.  
  351. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  352. {
  353. return 1;
  354. }
  355.  
  356. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  357. {
  358. return 1;
  359. }
  360.  
  361. public OnRconLoginAttempt(ip[], password[], success)
  362. {
  363. return 1;
  364. }
  365.  
  366. public OnPlayerUpdate(playerid)
  367. {
  368. return 1;
  369. }
  370.  
  371. public OnPlayerStreamIn(playerid, forplayerid)
  372. {
  373. return 1;
  374. }
  375.  
  376. public OnPlayerStreamOut(playerid, forplayerid)
  377. {
  378. return 1;
  379. }
  380.  
  381. public OnVehicleStreamIn(vehicleid, forplayerid)
  382. {
  383. return 1;
  384. }
  385.  
  386. public OnVehicleStreamOut(vehicleid, forplayerid)
  387. {
  388. return 1;
  389. }
  390.  
  391. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  392. {
  393. return 1;
  394. }
  395. public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
  396. {
  397. if(IsPlayerConnected(playerid))
  398. {
  399. new Float:oldposx, Float:oldposy, Float:oldposz;
  400. new Float:tempposx, Float:tempposy, Float:tempposz;
  401. GetPlayerPos(playerid, oldposx, oldposy, oldposz);
  402. tempposx = (oldposx -x);
  403. tempposy = (oldposy -y);
  404. tempposz = (oldposz -z);
  405. //printf("DEBUG: X:%f Y:%f Z:%f",posx,posy,posz);
  406. if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
  407. {
  408. return 1;
  409. }
  410. }
  411. return 0;
  412. }
  413. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  414. {
  415. return 1;
  416. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement