Witamy w Nieoficjalnym polskim support'cie AMX Mod X
Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
|
Guest Message by DevFuse
Wklejka 1hd04iyrcso0g dodana przez TheRock, 20.06.2012 15:26
Loteria
1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. 31. 32. 33. 34. 35. 36. 37. 38. 39. 40. 41. 42. 43. 44. 45. 46. 47. 48. 49. 50. 51. 52. 53. 54. 55. 56. 57. 58. 59. 60. 61. 62. 63. 64. 65. 66. 67. 68. 69. 70. 71. 72. 73. 74. 75. 76. 77. 78. 79. 80. 81. 82. 83. 84. 85. 86. 87. 88. 89. 90. 91. 92. 93. 94. 95. 96. 97. 98. 99. 100. 101. 102. 103. 104. 105. 106. 107. 108. 109. 110. 111. 112. 113. 114. 115. 116. 117. 118. 119. 120. 121. 122. 123. 124. 125. 126. 127. 128. 129. 130. 131. 132. 133. 134. 135. 136. 137. 138. 139. 140. 141. 142. 143. 144. 145. 146. 147. 148. 149. 150. 151. 152. 153. 154. 155. 156. 157. 158. 159. 160. 161. 162. 163. 164. 165. 166. 167. 168. 169. 170. 171. 172. 173. 174. 175. 176. 177. 178. 179. 180. 181. 182. 183. 184. 185. 186. 187. 188. 189. 190. 191. 192. 193. 194. 195. 196. 197. 198. 199. 200. 201. 202.
#include <amxmodx> #include <amxmisc> #include <cstrike> #include <fun> #include <fakemeta> #include <engine> #include <hamsandwich> #define PLUGIN "Loteria" #define VERSION "0.1" #define AUTHOR "TheRock" new Float:LastGambleTime[33]; public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_clcmd("say /Loteria", "Los", 0) register_clcmd("say /loteria", "Los", 0) set_task(20.0, "printer", _, _, _, "b") register_logevent("Los", 2, "1=Round_End") register_cvar ("los_delay","50.0") register_forward(FM_EmitSound, "forward_EmitSound"); } public plugin_precache() { precache_sound ("sound/loteria/loser.wav") } public Los(id) { new rand new hp = get_user_health(id) new armor = get_user_armor(id) new fragi=get_user_frags(id) if(fragi<4){ // Koszy za fragi! if(is_user_alive(id)) { rand = random_num(0,17) switch(rand) { case 0: { give_item ( id, "weapon_hegrenade" ) client_print(id, print_chat, "[Loteria] Wylosowales granat Podpalajacy :)") } case 1: { give_item(id, "weapon_hegrenade") give_item(id, "weapon_flashbang") give_item(id, "weapon_flashbang") give_item(id, "weapon_smokegrenade") set_user_frags(id, get_user_frags ( id )+1) client_print(id, print_chat, "[Loteria] Wylosowales Paczke Granatow + 1 frag :)") } case 2: { set_user_armor(id, armor + 100) client_print(id, print_chat,"[Loteria] Wylosowales 100 armora") } case 3: { monety[id] += 5; client_print(id, print_chat,"[Loteria]Wylosowales 5 monet!") } case 4: { set_user_health(id, hp + 30) client_print(id, print_chat,"[Loteria]Wylosowales 30 HP!") } case 5: { monety[id] += 1; client_print(id, print_chat, "[Loteria]Wylosowales 1 Monete! :)") } case 6: { give_item(id, "weapon_smokegrenade") client_print(id, print_chat,"[Loteria]Wylosowales Flare Gratulacje!!") } case 7: { client_print(id, print_chat,"[Loteria]Wylosowales 5 expa Gratulacje!!") } case 8: { client_cmd(0,"spk misc/loser.wav"); client_print(id, print_chat, "[Loteria] Pusty Los Gratulacje!! :)") } case 9: { set_user_frags(id, get_user_frags ( id )+5) client_print(id, print_chat, "[Loteria] Wylosowales 5 fragow Gratulacje!!") } case 10: { client_print(id, print_chat, "[Loteria]Przeciwnicy ogluchli! Dostales ciche chodzenie! :)") } case 11: { client_print(id, print_chat,"[Loteria]Wystraszyles sie Zombi i uciekasz +30 szybkosci!") } case 12: { new sId[3] set_user_rendering(id, 1) set_user_rendering(id,kRenderFxGlowShell,255,0,0,kRenderNormal,25) set_task(60.0, "RendOFF", 666+id, sId) client_print(id, print_chat, "[Loteria]Wystraszyles sie Zombi!Barack Obama cie podswietlil!") } case 13: { set_user_frags(id, get_user_frags ( id )-5) client_print(id, print_chat,"[Loteria]Dostales od Ramzesa i zgubiles 5 fragow") } case 14: { user_slap(id, 5) client_print(id, print_chat,"[Loteria]Dostajesz kopy od Ramzesa") } case 15: { set_user_frags(id, get_user_frags ( id )+4) client_print(id, print_chat, "[Loteria]Dostales wsparcie od ludzi! +4 fragi wiecej! :)") } case 16: { monety[id] += 15; client_print(id, print_chat,"[Loteria]Zrabowales ludzia 15 Monet") } case 17: { client_print(id, print_chat,"[Loteria]Wylosowales 150 XP!") } } } else if (get_gametime() < LastGambleTime[id] + get_cvar_float ("los_delay")) client_print(id, print_chat, "<Loteria> Ty grales ostatnio, sprobuj ponownie za %d seconds.",floatround( LastGambleTime[id] + get_cvar_num("los_delay") - get_gametime()+1 )); } else { set_user_frags(id, get_user_frags ( id )-3) } } public GodmodeOFF(id) { set_user_godmode(id,0) } public FootstepsOFF(id) { set_user_footsteps(id, 0) remove_task(666+id) } public RenderingOFF(id) { set_user_rendering(id,0) } public RendOFF(id) { set_user_rendering(id, 0) remove_task(666+id) } public set_bartime(id) { message_begin((id)?MSG_ONE:MSG_ALL, get_user_msgid("BarTime2"), _, id) write_short(20); write_short(0); message_end(); } public set_bartime1(id) { message_begin((id)?MSG_ONE:MSG_ALL, get_user_msgid("BarTime2"), _, id) write_short(29); write_short(0); message_end(); } public ZoomOFF(id) { remove_task(666+id) } public CpunOFF(id) { remove_task(666+id) } /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE *{ rtf1 ansi deff0{ fonttbl{ f0 fnil Tahoma;}}n viewkind4 uc1 pard lang1045 f0 fs16 n par } */
Dodanych wklejek: 11179
Powered By (Pav32) Pastebin © 2011