Guest User

Sistema de sacerdote simple

a guest
Jan 3rd, 2012
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 26.15 KB | None | 0 0
  1. //Sistema de sacerdote by davidxxx
  2. //Gracias a Elmo por el mapa (modificado by davidxxx)
  3. //Edugta , Nickk123, LULU, dis77urbio (necrox) testers
  4.  
  5. #define FILTERSCRIPT
  6.  
  7. #include <a_samp>
  8. #include <streamer>
  9.  
  10. #if defined FILTERSCRIPT
  11.  
  12. //define
  13. #define misa 42
  14.  
  15. //news
  16.  
  17. new Enmisa[MAX_PLAYERS];
  18. new ya[MAX_PLAYERS];
  19. new com[MAX_PLAYERS];
  20. new abu[MAX_PLAYERS];
  21.  
  22. //Textdraws
  23. new Text:Textdraw0;
  24. new Text:Textdraw1;
  25. new Text:Textdraw2;
  26.  
  27. //strings
  28. new Misa[] = "Empezar Misa\nOraciones\nRecolectar Limosna\nFinalizar Misa";
  29.  
  30.  
  31. public OnFilterScriptInit()
  32. {
  33. print("\n--------------------------------------");
  34. print(" Sistema de sacerdote by davidxxx");
  35. print("--------------------------------------\n");
  36.  
  37. Textdraw0 = TextDrawCreate(561.000000, 23.000000, "_");
  38. TextDrawBackgroundColor(Textdraw0, 255);
  39. TextDrawFont(Textdraw0, 1);
  40. TextDrawLetterSize(Textdraw0, 0.519999, 4.599997);
  41. TextDrawColor(Textdraw0, -1);
  42. TextDrawSetOutline(Textdraw0, 0);
  43. TextDrawSetProportional(Textdraw0, 1);
  44. TextDrawSetShadow(Textdraw0, 1);
  45. TextDrawUseBox(Textdraw0, 1);
  46. TextDrawBoxColor(Textdraw0, 840827135);
  47. TextDrawTextSize(Textdraw0, 595.000000, 5.000000);
  48.  
  49. Textdraw1 = TextDrawCreate(577.000000, 29.000000, "_");
  50. TextDrawBackgroundColor(Textdraw1, 255);
  51. TextDrawFont(Textdraw1, 1);
  52. TextDrawLetterSize(Textdraw1, 0.519999, 3.499998);
  53. TextDrawColor(Textdraw1, -1);
  54. TextDrawSetOutline(Textdraw1, 0);
  55. TextDrawSetProportional(Textdraw1, 1);
  56. TextDrawSetShadow(Textdraw1, 1);
  57. TextDrawUseBox(Textdraw1, 1);
  58. TextDrawBoxColor(Textdraw1, -1);
  59. TextDrawTextSize(Textdraw1, 580.000000, 4.000000);
  60.  
  61. Textdraw2 = TextDrawCreate(569.000000, 37.000000, "_");
  62. TextDrawBackgroundColor(Textdraw2, 255);
  63. TextDrawFont(Textdraw2, 1);
  64. TextDrawLetterSize(Textdraw2, 0.519999, 0.499999);
  65. TextDrawColor(Textdraw2, -1);
  66. TextDrawSetOutline(Textdraw2, 0);
  67. TextDrawSetProportional(Textdraw2, 1);
  68. TextDrawSetShadow(Textdraw2, 1);
  69. TextDrawUseBox(Textdraw2, 1);
  70. TextDrawBoxColor(Textdraw2, -1);
  71. TextDrawTextSize(Textdraw2, 588.000000, 4.000000);
  72.  
  73.  
  74. //mapa
  75. CreateDynamicObject(3494, 202.00, -2618.50, 102.80,   0.00, 0.00, 0.00);
  76. CreateDynamicObject(3494, 201.70, -2628.30, 102.80,   0.00, 0.00, 0.00);
  77. CreateDynamicObject(3494, 201.20, -2618.20, 110.80,   0.00, 0.00, 0.00);
  78. CreateDynamicObject(3494, 201.50, -2628.70, 110.80,   0.00, 0.00, 0.00);
  79. CreateDynamicObject(3494, 200.40, -2618.00, 118.80,   0.00, 0.00, 0.00);
  80. CreateDynamicObject(3494, 200.70, -2628.90, 118.70,   0.00, 0.00, 0.00);
  81. CreateDynamicObject(3494, 201.50, -2640.80, 102.80,   0.00, 0.00, 0.00);
  82. CreateDynamicObject(3494, 201.80, -2611.60, 102.80,   0.00, 0.00, 0.00);
  83. CreateDynamicObject(3494, 201.10, -2611.80, 110.80,   0.00, 0.00, 0.00);
  84. CreateDynamicObject(3494, 174.30, -2603.80, 102.80,   0.00, 0.00, 0.00);
  85. CreateDynamicObject(3494, 173.40, -2641.10, 102.80,   0.00, 0.00, 0.00);
  86. CreateDynamicObject(3494, 158.30, -2641.20, 102.80,   0.00, 0.00, 0.00);
  87. CreateDynamicObject(3494, 158.20, -2603.90, 102.80,   0.00, 0.00, 0.00);
  88. CreateDynamicObject(3494, 188.60, -2603.80, 102.80,   0.00, 0.00, 0.00);
  89. CreateDynamicObject(3494, 190.20, -2640.80, 102.80,   0.00, 0.00, 0.00);
  90. CreateDynamicObject(3494, 174.30, -2603.80, 110.80,   0.00, 0.00, 0.00);
  91. CreateDynamicObject(3494, 173.30, -2641.10, 110.80,   0.00, 0.00, 0.00);
  92. CreateDynamicObject(3494, 201.00, -2640.80, 110.80,   0.00, 0.00, 0.00);
  93. CreateDynamicObject(3494, 184.80, -2618.40, 102.80,   0.00, 0.00, 0.00);
  94. CreateDynamicObject(3494, 184.60, -2627.90, 102.80,   0.00, 0.00, 0.00);
  95. CreateDynamicObject(3494, 174.20, -2618.30, 102.80,   0.00, 0.00, 0.00);
  96. CreateDynamicObject(3494, 173.60, -2628.20, 102.80,   0.00, 0.00, 0.00);
  97. CreateDynamicObject(3494, 158.20, -2618.00, 102.80,   0.00, 0.00, 0.00);
  98. CreateDynamicObject(3494, 166.40, -2618.20, 102.80,   0.00, 0.00, 0.00);
  99. CreateDynamicObject(9833, 199.80, -2618.00, 125.40,   0.00, 0.00, 0.00);
  100. CreateDynamicObject(9833, 199.90, -2629.20, 125.80,   0.00, 0.00, 0.00);
  101. CreateDynamicObject(3494, 158.10, -2627.50, 102.80,   0.00, 0.00, 0.00);
  102. CreateDynamicObject(3494, 165.80, -2627.80, 102.80,   0.00, 0.00, 0.00);
  103. CreateDynamicObject(3494, 150.80, -2618.40, 102.80,   0.00, 0.00, 0.00);
  104. CreateDynamicObject(3494, 150.70, -2627.30, 102.80,   0.00, 0.00, 0.00);
  105. CreateDynamicObject(3515, 174.10, -2604.00, 116.80,   0.00, 0.00, 0.00);
  106. CreateDynamicObject(3515, 173.30, -2641.30, 116.80,   0.00, 0.00, 0.00);
  107. CreateDynamicObject(8397, 202.80, -2609.60, 98.80,   0.00, 0.00, 90.00);
  108. CreateDynamicObject(8397, 202.80, -2635.90, 98.00,   0.00, 0.00, 90.00);
  109. CreateDynamicObject(8397, 196.20, -2602.90, 98.80,   0.00, 0.00, 90.00);
  110. CreateDynamicObject(8397, 181.00, -2603.60, 98.80,   0.00, 0.00, 90.00);
  111. CreateDynamicObject(8397, 165.90, -2604.60, 98.80,   0.00, 0.00, 90.00);
  112. CreateDynamicObject(8397, 151.10, -2604.50, 98.80,   0.00, 0.00, 90.00);
  113. CreateDynamicObject(8397, 199.10, -2641.20, 98.80,   0.00, 0.00, 90.00);
  114. CreateDynamicObject(8397, 182.50, -2641.20, 98.80,   0.00, 0.00, 90.00);
  115. CreateDynamicObject(8397, 166.20, -2641.00, 98.80,   0.00, 0.00, 90.00);
  116. CreateDynamicObject(8397, 150.40, -2641.30, 98.80,   0.00, 0.00, 90.00);
  117. CreateDynamicObject(8397, 143.60, -2636.00, 98.80,   0.00, 0.00, 90.00);
  118. CreateDynamicObject(8397, 143.90, -2629.70, 98.80,   0.00, 0.00, 90.00);
  119. CreateDynamicObject(8397, 143.40, -2615.90, 98.80,   0.00, 0.00, 90.00);
  120. CreateDynamicObject(8397, 143.50, -2609.00, 98.80,   0.00, 0.00, 90.00);
  121. CreateDynamicObject(8397, 149.60, -2623.00, 118.40,   0.00, 0.00, 90.00);
  122. CreateDynamicObject(2207, 200.00, -2622.30, 98.80,   0.00, 0.00, 270.00);
  123. CreateDynamicObject(1723, 187.60, -2629.50, 98.80,   0.00, 0.00, 90.00);
  124. CreateDynamicObject(1723, 192.50, -2629.30, 98.80,   0.00, 0.00, 90.00);
  125. CreateDynamicObject(1723, 192.50, -2632.20, 98.80,   0.00, 0.00, 90.00);
  126. CreateDynamicObject(1723, 187.60, -2632.40, 98.80,   0.00, 0.00, 90.00);
  127. CreateDynamicObject(1723, 167.60, -2615.70, 98.80,   0.00, 0.00, 90.00);
  128. CreateDynamicObject(1723, 167.60, -2618.50, 98.80,   0.00, 0.00, 90.00);
  129. CreateDynamicObject(1723, 187.50, -2618.60, 98.80,   0.00, 0.00, 90.00);
  130. CreateDynamicObject(1723, 187.60, -2615.80, 98.80,   0.00, 0.00, 90.00);
  131. CreateDynamicObject(1723, 167.10, -2629.40, 98.80,   0.00, 0.00, 90.00);
  132. CreateDynamicObject(1723, 192.60, -2618.70, 98.80,   0.00, 0.00, 90.00);
  133. CreateDynamicObject(1723, 192.60, -2615.80, 98.80,   0.00, 0.00, 90.00);
  134. CreateDynamicObject(1723, 167.10, -2632.40, 98.80,   0.00, 0.00, 90.00);
  135. CreateDynamicObject(1723, 178.50, -2629.20, 98.80,   0.00, 0.00, 90.00);
  136. CreateDynamicObject(1723, 178.50, -2632.00, 98.80,   0.00, 0.00, 90.00);
  137. CreateDynamicObject(1723, 174.90, -2629.20, 98.80,   0.00, 0.00, 90.00);
  138. CreateDynamicObject(1723, 174.80, -2632.10, 98.80,   0.00, 0.00, 90.00);
  139. CreateDynamicObject(1723, 175.40, -2618.70, 98.80,   0.00, 0.00, 90.00);
  140. CreateDynamicObject(1723, 175.40, -2615.90, 98.80,   0.00, 0.00, 90.00);
  141. CreateDynamicObject(1723, 178.40, -2618.80, 98.80,   0.00, 0.00, 90.00);
  142. CreateDynamicObject(1723, 178.40, -2615.90, 98.80,   0.00, 0.00, 90.00);
  143. CreateDynamicObject(870, 195.20, -2621.00, 99.10,   0.00, 0.00, 0.00);
  144. CreateDynamicObject(870, 195.00, -2624.50, 99.10,   0.00, 0.00, 0.00);
  145. CreateDynamicObject(870, 192.20, -2623.10, 99.10,   0.00, 0.00, 0.00);
  146. CreateDynamicObject(870, 190.40, -2621.00, 99.10,   0.00, 0.00, 0.00);
  147. CreateDynamicObject(870, 190.00, -2624.60, 99.10,   0.00, 0.00, 0.00);
  148. CreateDynamicObject(870, 187.50, -2622.70, 99.10,   0.00, 0.00, 0.00);
  149. CreateDynamicObject(870, 186.10, -2620.80, 99.10,   0.00, 0.00, 0.00);
  150. CreateDynamicObject(870, 185.80, -2624.70, 99.10,   0.00, 0.00, 0.00);
  151. CreateDynamicObject(870, 183.10, -2622.90, 99.10,   0.00, 0.00, 0.00);
  152. CreateDynamicObject(870, 181.20, -2625.20, 99.10,   0.00, 0.00, 0.00);
  153. CreateDynamicObject(870, 181.30, -2620.80, 99.10,   0.00, 0.00, 0.00);
  154. CreateDynamicObject(870, 178.30, -2623.10, 99.10,   0.00, 0.00, 0.00);
  155. CreateDynamicObject(870, 176.00, -2620.90, 99.10,   0.00, 0.00, 0.00);
  156. CreateDynamicObject(870, 176.10, -2625.00, 99.10,   0.00, 0.00, 0.00);
  157. CreateDynamicObject(870, 173.20, -2623.00, 99.10,   0.00, 0.00, 0.00);
  158. CreateDynamicObject(870, 171.20, -2620.90, 99.10,   0.00, 0.00, 0.00);
  159. CreateDynamicObject(870, 171.10, -2624.80, 99.10,   0.00, 0.00, 0.00);
  160. CreateDynamicObject(870, 167.90, -2625.40, 99.10,   0.00, 0.00, 0.00);
  161. CreateDynamicObject(870, 169.00, -2623.10, 99.10,   0.00, 0.00, 0.00);
  162. CreateDynamicObject(870, 167.40, -2621.20, 99.10,   0.00, 0.00, 0.00);
  163. CreateDynamicObject(870, 165.60, -2623.20, 99.10,   0.00, 0.00, 0.00);
  164. CreateDynamicObject(870, 163.80, -2621.50, 99.10,   0.00, 0.00, 0.00);
  165. CreateDynamicObject(870, 163.40, -2625.20, 99.10,   0.00, 0.00, 0.00);
  166. CreateDynamicObject(870, 161.00, -2622.90, 99.10,   0.00, 0.00, 0.00);
  167. CreateDynamicObject(870, 158.70, -2621.40, 99.10,   0.00, 0.00, 0.00);
  168. CreateDynamicObject(870, 158.50, -2624.80, 99.10,   0.00, 0.00, 0.00);
  169. CreateDynamicObject(870, 162.00, -2621.00, 99.10,   0.00, 0.00, 0.00);
  170. CreateDynamicObject(870, 156.00, -2622.20, 99.10,   0.00, 0.00, 0.00);
  171. CreateDynamicObject(870, 154.00, -2620.20, 99.10,   0.00, 0.00, 0.00);
  172. CreateDynamicObject(870, 153.70, -2624.20, 99.10,   0.00, 0.00, 0.00);
  173. CreateDynamicObject(870, 150.50, -2622.30, 99.10,   0.00, 0.00, 0.00);
  174. CreateDynamicObject(870, 148.10, -2624.20, 99.10,   0.00, 0.00, 0.00);
  175. CreateDynamicObject(870, 148.00, -2620.40, 99.10,   0.00, 0.00, 0.00);
  176. CreateDynamicObject(4206, 206.00, -2623.20, 106.60,   179.99, 270.00, 0.00);
  177. CreateDynamicObject(4206, 165.20, -2628.30, 153.20,   180.00, 0.00, 0.00);
  178. CreateDynamicObject(4206, 165.30, -2616.50, 153.20,   180.00, 0.00, 0.00);
  179. CreateDynamicObject(4206, 176.50, -2628.70, 153.20,   179.99, 0.00, 0.00);
  180. CreateDynamicObject(4206, 177.00, -2615.00, 153.20,   180.00, 0.00, 0.00);
  181. CreateDynamicObject(4206, 187.40, -2630.80, 153.20,   180.00, 0.00, 0.00);
  182. CreateDynamicObject(4206, 187.80, -2614.70, 153.20,   180.00, 0.00, 0.00);
  183. CreateDynamicObject(3461, 200.70, -2624.70, 100.40,   0.00, 0.00, 0.00);
  184. CreateDynamicObject(3461, 200.57, -2628.92, 100.60,   0.00, 0.00, 0.00);
  185. CreateDynamicObject(9833, 122.00, -2622.70, 102.00,   0.00, 0.00, 0.00);
  186. CreateDynamicObject(6959, 142.40, -2622.30, 98.80,   0.00, 0.00, 0.00);
  187. CreateDynamicObject(6959, 126.50, -2622.30, 98.80,   0.00, 0.00, 0.00);
  188. CreateDynamicObject(3934, 122.20, -2612.90, 98.80,   0.00, 0.00, 0.00);
  189. CreateDynamicObject(3934, 122.30, -2631.10, 98.80,   0.00, 0.00, 0.00);
  190. CreateDynamicObject(3505, 138.70, -2618.00, 98.80,   0.00, 0.00, 0.00);
  191. CreateDynamicObject(3505, 138.60, -2627.20, 98.80,   0.00, 0.00, 0.00);
  192. CreateDynamicObject(3505, 121.90, -2602.80, 98.80,   0.00, 0.00, 0.00);
  193. CreateDynamicObject(3505, 122.40, -2641.90, 98.80,   0.00, 0.00, 0.00);
  194. CreateDynamicObject(3505, 107.20, -2603.00, 98.80,   0.00, 0.00, 0.00);
  195. CreateDynamicObject(3505, 200.50, -2613.80, 98.80,   0.00, 0.00, 0.00);
  196. CreateDynamicObject(3505, 199.40, -2631.80, 98.80,   0.00, 0.00, 0.00);
  197. CreateDynamicObject(6959, 152.40, -2622.10, 98.80,   0.00, 0.00, 0.00);
  198. CreateDynamicObject(6959, 172.40, -2622.00, 98.80,   0.00, 0.00, 0.00);
  199. CreateDynamicObject(6959, 187.30, -2621.80, 98.80,   0.00, 0.00, 0.00);
  200. CreateDynamicObject(3505, 106.80, -2641.30, 98.80,   0.00, 0.00, 0.00);
  201. CreateDynamicObject(1597, 138.30, -2611.40, 101.40,   0.00, 0.00, 0.00);
  202. CreateDynamicObject(1597, 138.80, -2634.10, 101.40,   0.00, 0.00, 0.00);
  203. CreateDynamicObject(1597, 107.00, -2622.60, 101.40,   0.00, 0.00, 0.00);
  204. CreateDynamicObject(1597, 107.20, -2610.60, 101.40,   0.00, 0.00, 0.00);
  205. CreateDynamicObject(1597, 107.20, -2634.60, 101.40,   0.00, 0.00, 0.00);
  206. CreateDynamicObject(1597, 129.60, -2603.40, 101.40,   0.00, 0.00, 90.00);
  207. CreateDynamicObject(1597, 114.30, -2603.20, 101.40,   0.00, 0.00, 90.00);
  208. CreateDynamicObject(1597, 114.60, -2641.80, 101.40,   0.00, 0.00, 90.00);
  209. CreateDynamicObject(1597, 130.20, -2641.90, 101.40,   0.00, 0.00, 90.00);
  210. CreateDynamicObject(3494, 206.50, -2623.31, 127.50,   0.00, 0.00, 0.00);
  211. CreateDynamicObject(3494, 205.80, -2623.40, 110.80,   0.00, 0.00, 0.00);
  212. CreateDynamicObject(3494, 205.77, -2623.52, 123.00,   90.00, 0.00, 0.00);
  213. CreateDynamicObject(3494, 204.80, -2623.40, 118.20,   0.00, 0.00, 0.00);
  214. CreateDynamicObject(14629, 169.80, -2615.50, 118.00,   0.00, 0.00, 0.00);
  215. CreateDynamicObject(14629, 180.00, -2614.50, 115.60,   0.00, 0.00, 0.00);
  216. CreateDynamicObject(14629, 189.30, -2614.30, 112.90,   0.00, 0.00, 0.00);
  217. CreateDynamicObject(14629, 173.60, -2609.20, 123.80,   0.00, 0.00, 0.00);
  218. CreateDynamicObject(14629, 165.90, -2620.70, 131.00,   0.00, 0.00, 0.00);
  219. CreateDynamicObject(14629, 192.90, -2610.40, 143.80,   0.00, 0.00, 0.00);
  220. CreateDynamicObject(14629, 168.80, -2618.10, 144.90,   0.00, 0.00, 0.00);
  221. CreateDynamicObject(14629, 187.20, -2615.80, 135.60,   0.00, 0.00, 0.00);
  222. CreateDynamicObject(14629, 181.10, -2616.40, 128.80,   0.00, 0.00, 0.00);
  223. CreateDynamicObject(14629, 181.60, -2623.20, 121.10,   0.00, 0.00, 0.00);
  224. CreateDynamicObject(14629, 182.30, -2625.30, 137.30,   0.00, 0.00, 0.00);
  225. CreateDynamicObject(14629, 171.20, -2610.30, 141.50,   0.00, 0.00, 0.00);
  226. CreateDynamicObject(14629, 194.20, -2616.20, 143.40,   0.00, 0.00, 0.00);
  227. CreateDynamicObject(14629, 184.60, -2611.50, 129.50,   0.00, 0.00, 0.00);
  228. CreateDynamicObject(4206, 206.50, -2624.10, 117.60,   179.99, 270.00, 0.00);
  229. CreateDynamicObject(4206, 207.00, -2622.10, 129.30,   179.99, 270.00, 0.00);
  230. CreateDynamicObject(4206, 207.50, -2623.10, 141.00,   179.99, 270.00, 0.00);
  231. CreateDynamicObject(4206, 208.00, -2623.00, 148.10,   179.99, 270.00, 0.00);
  232. CreateDynamicObject(4206, 208.50, -2623.10, 157.40,   179.99, 270.00, 0.00);
  233. CreateDynamicObject(4206, 149.49, -2623.12, 164.87,   270.00, 270.00, 0.00);
  234. CreateDynamicObject(4206, 106.29, -2612.89, 106.30,   270.00, 270.00, 180.22);
  235. CreateDynamicObject(1455, 200.70, -2622.52, 99.67,   0.00, 0.00, 0.00);
  236. CreateDynamicObject(1455, 199.90, -2623.29, 99.67,   0.00, 0.00, 0.00);
  237. CreateDynamicObject(1455, 200.62, -2624.18, 99.67,   0.00, 0.00, 0.00);
  238. CreateDynamicObject(1667, 200.27, -2623.11, 99.67,   0.00, 0.00, 359.37);
  239. CreateDynamicObject(2000, 146.25, -2623.12, 135.66,   0.00, 0.00, 0.00);
  240. CreateDynamicObject(2000, 146.25, -2623.12, 134.29,   0.00, 0.00, 0.00);
  241. CreateDynamicObject(2000, 146.25, -2623.12, 133.02,   0.00, 0.00, 0.00);
  242. CreateDynamicObject(2000, 146.42, -2623.14, 131.58,   0.00, 0.00, 0.10);
  243. CreateDynamicObject(2000, 146.42, -2623.14, 130.26,   0.00, 0.00, 0.10);
  244. CreateDynamicObject(2000, 146.42, -2623.14, 128.81,   0.00, 0.00, 0.10);
  245. CreateDynamicObject(2000, 146.42, -2623.14, 127.49,   0.00, 0.00, 0.10);
  246. CreateDynamicObject(2000, 146.42, -2623.14, 126.07,   0.00, 0.00, 0.10);
  247. CreateDynamicObject(2000, 146.34, -2623.66, 135.71,   0.00, 0.00, 0.10);
  248. CreateDynamicObject(2000, 146.34, -2623.66, 134.30,   0.00, 0.00, 0.10);
  249. CreateDynamicObject(2000, 146.34, -2623.66, 132.98,   0.00, 0.00, 0.10);
  250. CreateDynamicObject(2000, 146.34, -2623.66, 131.54,   0.00, 0.00, 0.10);
  251. CreateDynamicObject(2000, 146.34, -2623.66, 130.12,   0.00, 0.00, 0.10);
  252. CreateDynamicObject(2000, 146.34, -2623.66, 128.80,   0.00, 0.00, 0.10);
  253. CreateDynamicObject(2000, 146.34, -2623.66, 127.57,   0.00, 0.00, 0.10);
  254. CreateDynamicObject(2000, 146.45, -2621.31, 133.87,   -91.00, 0.00, 358.51);
  255. CreateDynamicObject(2000, 146.34, -2623.66, 126.13,   0.00, 0.00, 0.10);
  256. CreateDynamicObject(2000, 146.36, -2625.09, 134.38,   -91.00, 0.00, 358.00);
  257. CreateDynamicObject(2000, 146.37, -2626.44, 134.38,   -91.00, 0.00, 358.00);
  258. CreateDynamicObject(2000, 146.46, -2626.44, 133.87,   -91.00, 0.00, 358.00);
  259. CreateDynamicObject(2000, 146.46, -2625.02, 133.87,   -91.00, 0.00, 358.51);
  260. CreateDynamicObject(2000, 146.45, -2622.74, 133.87,   -91.00, 0.00, 358.51);
  261. CreateDynamicObject(2000, 146.45, -2622.74, 134.38,   -91.00, 0.00, 358.51);
  262. CreateDynamicObject(2000, 146.45, -2621.31, 134.38,   -91.00, 0.00, 358.51);
  263. CreateDynamicObject(3461, 201.00, -2621.80, 100.60,   0.00, 0.00, 0.00);
  264. CreateDynamicObject(3461, 201.01, -2617.82, 100.60,   0.00, 0.00, 0.00);
  265. CreateDynamicObject(3461, 200.58, -2627.47, 100.60,   0.00, 0.00, 0.00);
  266. CreateDynamicObject(3461, 201.01, -2619.37, 100.60,   0.00, 0.00, 0.00);
  267. CreateDynamicObject(4206, 106.25, -2622.10, 106.30,   270.00, 270.00, 179.92);
  268. CreateDynamicObject(4206, 106.34, -2634.45, 106.30,   270.00, 270.00, 178.79);
  269. CreateDynamicObject(4206, 196.33, -2642.32, 106.30,   270.00, 270.00, 270.13);
  270. CreateDynamicObject(4206, 160.35, -2642.20, 106.30,   270.00, 270.00, 270.13);
  271. CreateDynamicObject(4206, 136.16, -2602.46, 106.30,   270.00, 270.00, 270.13);
  272. CreateDynamicObject(4206, 116.72, -2601.95, 106.30,   270.00, 270.00, 270.13);
  273. CreateDynamicObject(4206, 164.08, -2602.21, 106.30,   270.00, 270.00, 270.13);
  274. CreateDynamicObject(4206, 184.53, -2602.61, 106.30,   270.00, 270.00, 270.13);
  275. CreateDynamicObject(4206, 205.86, -2601.73, 106.30,   270.00, 270.00, 270.13);
  276. CreateDynamicObject(4206, 184.53, -2602.61, 106.30,   270.00, 270.00, 270.13);
  277. CreateDynamicObject(4206, 164.08, -2602.21, 106.30,   270.00, 270.00, 270.13);
  278. CreateDynamicObject(4206, 138.41, -2642.31, 106.30,   270.00, 270.00, 270.13);
  279. CreateDynamicObject(4206, 119.00, -2642.23, 106.30,   270.00, 270.00, 270.13);
  280. CreateDynamicObject(4206, 179.25, -2642.26, 106.30,   270.00, 270.00, 270.13);
  281. CreateDynamicObject(2908, 205.23, -2623.42, 103.52,   -91.00, 0.00, 3.00);
  282. CreateDynamicObject(2907, 205.28, -2623.44, 102.96,   -90.00, -11.00, 81.00);
  283. CreateDynamicObject(2906, 205.26, -2623.80, 103.31,   178.00, 0.00, 0.00);
  284. CreateDynamicObject(2906, 205.26, -2623.08, 103.31,   4.00, 0.00, 0.00);
  285. CreateDynamicObject(2905, 205.23, -2623.36, 102.29,   -103.00, 0.00, 1.00);
  286. CreateDynamicObject(2905, 205.17, -2623.49, 102.29,   -76.00, 0.00, 1.00);
  287. CreateDynamicObject(3409, 1101.50, -2619.24, 86.77,   360.00, 258.00, 0.00);
  288. CreateDynamicObject(3409, 204.50, -2629.86, 94.14,   0.00, 91.00, 1.00);
  289. CreateDynamicObject(3409, 204.43, -2615.11, 94.14,   0.00, 91.00, 1.00);
  290. CreateDynamicObject(862, 206.87, -2623.52, 103.42,   0.00, -84.00, 357.00);
  291. CreateDynamicObject(862, 206.77, -2623.39, 103.52,   55.00, -84.00, 357.00);
  292. CreateDynamicObject(2046, 205.77, -2623.41, 103.58,   0.00, 0.00, 0.00);
  293. CreateDynamicObject(2046, 205.79, -2623.41, 101.73,   0.00, 0.00, 0.00);
  294. CreateDynamicObject(2046, 205.79, -2623.41, 102.86,   0.00, 0.00, 0.00);
  295. CreateDynamicObject(2046, 205.91, -2623.82, 103.28,   -91.00, 0.00, 0.00);
  296. CreateDynamicObject(2046, 205.87, -2623.01, 103.28,   -90.00, 0.00, 0.00);
  297. CreateDynamicObject(2962, 195.74, -2623.84, 104.71,   0.00, 0.00, 0.00);
  298. CreateDynamicObject(2962, 205.35, -2623.34, 103.79,   0.00, 0.00, 269.41);
  299. CreateDynamicObject(2962, 205.35, -2623.42, 103.79,   0.00, 0.00, 269.41);
  300. CreateDynamicObject(2962, 205.35, -2623.34, 103.85,   0.00, 0.00, 269.41);
  301. CreateDynamicObject(2962, 205.35, -2623.42, 103.85,   0.00, 0.00, 269.41);
  302. return 1;
  303. }
  304.  
  305. public OnFilterScriptExit()
  306. {
  307. return 1;
  308. }
  309.  
  310. #else
  311.  
  312. main()
  313. {
  314. print("\n----------------------------------");
  315. print(" Sistema de sacerdote by davidxxx");
  316. print("----------------------------------\n");
  317. }
  318.  
  319. #endif
  320.  
  321. public OnPlayerDisconnect(playerid, reason)
  322. {
  323. Enmisa[playerid] = 0;
  324. ya[playerid] = 0;
  325. com[playerid] = 0;
  326. abu[playerid] = 0;
  327. TextDrawHideForPlayer(playerid,Textdraw0);
  328. TextDrawHideForPlayer(playerid,Textdraw1);
  329. TextDrawHideForPlayer(playerid,Textdraw2);
  330. return 1;
  331. }
  332.  
  333. public OnPlayerCommandText(playerid, cmdtext[])
  334. {
  335.  
  336. if (strcmp("/Sacerdote", cmdtext, true, 10) == 0)
  337. {
  338. if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "No Eres Sacerdote");
  339. GameTextForPlayer(playerid," ~w~ Bienvenido ~b~Sacerdote",3000,4);
  340. SetPlayerPos(playerid,201.3160,-2623.3357,99.8800);
  341. SendClientMessage(playerid, -1, "Usa /Menu Para Activar El Menu De Sacerdote");
  342. SetPlayerSkin(playerid,68);
  343. Enmisa[playerid] = 1;
  344. ResetPlayerWeapons(playerid);
  345. TextDrawShowForPlayer(playerid,Textdraw0);
  346. TextDrawShowForPlayer(playerid,Textdraw1);
  347. TextDrawShowForPlayer(playerid,Textdraw2);
  348. return 1;
  349. }
  350.  
  351. if (strcmp("/Menu", cmdtext, true, 10) == 0)
  352. {
  353. if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "No Eres Sacerdote");
  354. if(Enmisa[playerid] == 0) return SendClientMessage(playerid, -1, "No Estas En Misa");
  355. ShowPlayerDialog(playerid,misa,DIALOG_STYLE_LIST,"Menu De Sacerdote",Misa,"Aceptar","Cancelar");
  356. return 1;
  357. }
  358.  
  359. if (strcmp("/asiento", cmdtext, true) == 0) {
  360. ApplyAnimation(playerid, "ped", "SEAT_down", 4.000000, 0, 0, 0, 1, 0);
  361. SendClientMessage(playerid, -1, "Usa /depie Para Pararte");
  362. return 1;
  363. }
  364.  
  365.  
  366. if (strcmp("/depie", cmdtext, true) == 0) {
  367. ApplyAnimation(playerid, "ped", "SEAT_up", 4.000000, 0, 0, 1, 0, 0);
  368. return 1;
  369. }
  370.  
  371. if(Enmisa[playerid]== 1) return SendClientMessage(playerid, -1, "No Puedes Usar Comandos Mientras Estas En Misa");
  372.  
  373.  
  374. if(strcmp("/Iglesia",cmdtext,true) == 0)
  375. {
  376. if(ya[playerid] == 1) return SendClientMessage(playerid, -1,"Ya Ha Comenzado La Misa, No Puedes Entrar");
  377. SetPlayerPos(playerid,132.0111,-2622.8179,100.00);
  378. SendClientMessage(playerid,-1,"Bienvenido Peregrino, Podras Salir Cuando Termine La Misa");
  379. GameTextForPlayer(playerid,"~w~Bienvenido A La ~p~Iglesia",3000,4);
  380. Enmisa[playerid] = 1;
  381. ResetPlayerWeapons(playerid);
  382. TextDrawShowForPlayer(playerid,Textdraw0);
  383. TextDrawShowForPlayer(playerid,Textdraw1);
  384. TextDrawShowForPlayer(playerid,Textdraw2);
  385. return 1;
  386. }
  387. return 0;
  388. }
  389.  
  390. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  391. {
  392. //oraciones
  393. new padrenuestro[400]; //padre nuestro
  394.  
  395. strcat(padrenuestro,"\tPadre nuestro,\n\tque estás en el cielo,\n\tsantificado sea tu Nombre\n\t");
  396. strcat(padrenuestro,"venga a nosotros tu reino,\n\thágase tu voluntad en la tierra como en el cielo.\n\t");
  397. strcat(padrenuestro,"Danos hoy nuestro pan de cada día;\n\tperdona nuestras ofensas,\n\tcomo también nosotros perdonamos.\n\t");
  398. strcat(padrenuestro,"a los que nos ofenden;\n\tno nos dejes caer en la tentación,\n\ty líbranos del mal.\n\tAmén.");
  399.  
  400. new angelguarda[250]; //angel de la guarda
  401.  
  402. strcat(angelguarda,"\tAngel de mi guarda,\n\tdulce compañía, no me desampares,\n\tni de noche ni de día\n\t");
  403. strcat(angelguarda,"Hasta que me pongas en paz y alegria,\n\tcon todos los santos;\n\tJesus, Jose y Maria.\n\tAmén.");
  404.  
  405. new avemaria[300]; //ave maria
  406.  
  407. strcat(avemaria,"\tDios te salve María llena eres de gracia,\n\tel Señor es contigo; bendita tú eres\n\t");
  408. strcat(avemaria,"entre todas las mujeres,\n\ty bendito es el fruto de tu vientre, Jesús.\n\tSanta María, Madre de Dios,\n\t");
  409. strcat(avemaria,"ruega por nosotros, pecadores,\n\tahora y en la ahora de nuestra muerte.\n\tAmén");
  410.  
  411. switch(dialogid)
  412. {
  413. case misa:
  414. {
  415. if(!response)
  416. {
  417. return 1;
  418. }
  419. switch(listitem)
  420. {
  421. case 0:
  422. {
  423. SendClientMessage(playerid,-1,"La Misa Empezara En 5 Minutos");
  424. SendClientMessageToAll(-1,"El Sacerdote Iniciara Una Misa En 5 Minutos Usa /Iglesia Para Asistir");
  425. SetTimerEx("conteo",300000,false,"d",playerid);
  426. }// finalizacion case 0
  427. case 1:
  428. {
  429. ShowPlayerDialog(playerid,misa+1,DIALOG_STYLE_LIST,"Oraciones","Padre Nuestro\nAngel De Mi Guarda\nAve Maria\nParar Musica\nAtras","Cancion","Texto");
  430. }//finalizacion case 1
  431. case 2:
  432. {
  433. if(abu[playerid] == 1) return SendClientMessage(playerid,-1,"No Puedes Recoger La Limosna 2 Veces");
  434. new count;
  435. for(new i, j=GetMaxPlayers(); i<j; i++)
  436. {
  437. if(IsPlayerConnected(i) && Enmisa[i])
  438. {
  439. count++;
  440. GivePlayerMoney(i, -10);
  441. GivePlayerMoney(playerid, count*10);
  442. GameTextForPlayer(i," ~r~ -10",3000,4);
  443. SendClientMessage(i,-1,"El Sacerdote Ha Recogido La Limosna");
  444. abu[playerid] = 1;
  445. }
  446. }
  447. }//finalizacion case 2
  448. case 3:
  449. {
  450. for(new i=0;i<MAX_PLAYERS;i++)
  451. {
  452. if(IsPlayerConnected(i) && Enmisa[i] == 1)
  453. {
  454. SpawnPlayer(i);
  455. GameTextForPlayer(i,"La Misa Ha Finalizado",3000,4);
  456. SendClientMessage(i,-1,"Gracias Por Asistir Vuelve Pronto");
  457. StopAudioStreamForPlayer(i);
  458. Enmisa[i]= 0;
  459. abu[playerid] = 0;
  460. TextDrawHideForPlayer(i,Textdraw0);
  461. TextDrawHideForPlayer(i,Textdraw1);
  462. TextDrawHideForPlayer(i,Textdraw2);
  463. }
  464. if(IsPlayerConnected(i) && ya[i] == 1)
  465. {
  466. ya[i] = 0;
  467. SendClientMessage(i,-1,"La Misa Finalizo");
  468. }
  469. }
  470. }//finalizacion case 3
  471. }//finalizacion del switch
  472. }//finalizacion del dialogo
  473.  
  474. case misa+1:
  475. {
  476. if(!response)
  477. {
  478. switch(listitem)
  479. {
  480. case 0:
  481. {
  482. for(new i=0; i<MAX_PLAYERS; i++)
  483. {
  484. if(IsPlayerConnected(i) && Enmisa[i] == 1)
  485. {
  486. ShowPlayerDialog(i,misa+2,DIALOG_STYLE_MSGBOX,"Padre Nuestro",padrenuestro,"Aceptar","");
  487. }
  488. }
  489. }//fin case 0
  490. case 1:
  491. {
  492. for(new i=0; i<MAX_PLAYERS; i++)
  493. {
  494. if(IsPlayerConnected(i) && Enmisa[i] == 1)
  495. {
  496. ShowPlayerDialog(i,misa+3,DIALOG_STYLE_MSGBOX,"Angel De La Guarda",angelguarda,"Aceptar","");
  497. }
  498. }
  499. }//fin case 1
  500. case 2:
  501. {
  502. for(new i=0; i<MAX_PLAYERS; i++)
  503. {
  504. if(IsPlayerConnected(i) && Enmisa[i] == 1)
  505. {
  506. ShowPlayerDialog(i,misa+4,DIALOG_STYLE_MSGBOX,"Ave Maria",avemaria,"Aceptar","");
  507. }
  508. }
  509. }//fin case 2
  510. case 3:
  511. {
  512. for(new i=0; i<MAX_PLAYERS; i++)
  513. {
  514. if(IsPlayerConnected(i) && Enmisa[i] == 1)
  515. {
  516. StopAudioStreamForPlayer(i);
  517. }
  518. }
  519. }//finalizacion case 3
  520. case 4:
  521. ShowPlayerDialog(playerid,misa,DIALOG_STYLE_LIST,"Menu De Sacerdote",Misa,"Aceptar","Cancelar");
  522. }//fin case 4
  523. return 1;
  524. }//fin if(!response)
  525. switch(listitem)
  526. {
  527. case 0:
  528. {
  529. for(new i=0;i<MAX_PLAYERS;i++)
  530. {
  531. if(IsPlayerConnected(i) && Enmisa[i] == 1)
  532. {
  533. PlayAudioStreamForPlayer(i,"http://reverdecer.com/descargas/audio/Padre_nuestro.mp3");
  534. }
  535. }
  536. }//finlaizacion case 0
  537. case 1:
  538. {
  539. for(new i=0;i<MAX_PLAYERS;i++)
  540. {
  541. if(IsPlayerConnected(i) && Enmisa[i] == 1)
  542. {
  543. PlayAudioStreamForPlayer(i,"http://dc162.4shared.com/img/128022031/3eb705f7/dlink__2Fdownload_2FgShMmCFb_3Ftsid_3D00000000-000000-00000000/preview.mp3");
  544. }
  545. }
  546. }//finalizacion case 1
  547. case 2:
  548. {
  549. for(new i=0;i<MAX_PLAYERS;i++)
  550. {
  551. if(IsPlayerConnected(i) && Enmisa[i] == 1)
  552. {
  553. PlayAudioStreamForPlayer(i,"http://20.media.v4.skyrock.net/music/207/7fe/2077fea4307e7e7f544f9273a2871cf9.mp3");
  554. }
  555. }
  556. }//finalizacion case 2
  557. case 3:
  558. {
  559. for(new i=0; i<MAX_PLAYERS; i++)
  560. {
  561. if(IsPlayerConnected(i) && Enmisa[i] == 1)
  562. {
  563. StopAudioStreamForPlayer(i);
  564. }
  565. }
  566. }//finalizacion case 3
  567. case 4:
  568. {
  569. ShowPlayerDialog(playerid,misa,DIALOG_STYLE_LIST,"Menu De Sacerdote",Misa,"Aceptar","Cancelar");
  570. }//fin case 4
  571. }//finalizacion case listitem
  572. }//finalizacion misa+1
  573.  
  574. }//finalizacion switch dialogid
  575. return 1;
  576. }
  577.  
  578.  
  579. forward conteo(playerid);
  580. public conteo(playerid)
  581. {
  582. for(new i=0;i<MAX_PLAYERS;i++)
  583. {
  584. if(IsPlayerConnected(i) && Enmisa[i]== 0)
  585. {
  586. ya[i] = 1;
  587. }
  588. }
  589. SendClientMessage(playerid,-1,"Haz Empezado Una Misa");
  590. SendClientMessageToAll(-1,"La Misa Ha Comenzado");
  591. com[playerid] = 1;
  592. return 1;
  593. }
Advertisement
Add Comment
Please, Sign In to add comment