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 jynzz6y7h40k dodana przez Amaroq, 30.12.2012 22:12
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. 203. 204. 205. 206. 207. 208. 209. 210. 211. 212. 213. 214. 215. 216. 217. 218. 219. 220. 221. 222. 223. 224. 225. 226. 227. 228. 229. 230. 231. 232. 233. 234. 235. 236. 237. 238. 239. 240. 241. 242. 243. 244. 245. 246. 247. 248. 249. 250. 251. 252. 253. 254. 255. 256. 257. 258. 259. 260. 261. 262.
#include <amxmodx> #include <amxmisc> #include <fakemeta> #include <engine> #include <cstrike> //new const ny_time = 1230764400 // 00:00:00 1 styczen 2009 new ny_time new cvar_ny_time new cvar_ny_time_format new gmsgDamage new FIRE = 0 new c_info = 0 new const max_info = 100 public plugin_init() { register_plugin("New Year Countdown", "0.1", "Pavulon") gmsgDamage = get_user_msgid("Damage") cvar_ny_time = register_cvar("amx_ny_time", "00:00:00 01-01-2012"); cvar_ny_time_format = register_cvar("amx_ny_time_format", "%H:%M:%S %d-%m-%Y"); set_task(2.0, "B4",777) } public plugin_cfg() { new sz_ny_time[32], sz_ny_time_format[32]; get_pcvar_string(cvar_ny_time, sz_ny_time, charsmax(sz_ny_time)); get_pcvar_string(cvar_ny_time_format, sz_ny_time_format, charsmax(sz_ny_time_format)); ny_time = parse_time(sz_ny_time, sz_ny_time_format); } public B4() { new sek_left = ny_time - get_systime() if (sek_left>0) set_task(1.0, "countdown",0,_,_,"b") else pause("a") } public countdown() { new sek_left = ny_time - get_systime() if (sek_left<0) { remove_task(0) set_task(0.1,"ny_info", 999) return } else if (sek_left<=8 && !FIRE) { FIRE = 1 server_cmd("sv_restart 1") set_task(5.0, "rakietki", 1337) set_task(60.0, "normal_lights", 666) } new Time[128] format(Time, 127, "%s", timeleft(sek_left)) set_hudmessage(0, 0, 255, 0.020, 0.20, 0, 6.0, 1.0, 0.0, 0.0) ShowSyncHudMsg(0,CreateHudSyncObj(),"Do nowego roku pozostalo:^n%s",Time) } public ny_info() { if (c_info>max_info) return set_hudmessage(random_num(0,255), random_num(0,255), random_num(0,255), -1.0, -1.0, 0, 6.0, 0.1, 0.0, 0.0) ShowSyncHudMsg(0,CreateHudSyncObj(),"!!! SZCZESLIWEGO NOWEGO ROKU !!!^n!!! Zyczy ekipa !!!^n!!!tralalala !!!") c_info++ set_task(0.1,"ny_info", 999) } public rakietki() { new players[32], inum get_players(players, inum) for (new i = 0; i < inum; ++i) { cs_set_user_money (players[i] , 16000, 1) set_task(0.2*inum+0.1, "admin_rocket", players[i]) } } stock timeleft(sek_left) { new dni, godzin, minut, left = sek_left new Time[128], len = 0 if (left / 86400 >= 1) { dni = (left / 86400) left -= dni * 86400 len += format(Time[len], 127 -len, "%d d. ", dni) } if (left / 3600 >= 1) { godzin = (left / 3600) left -= godzin * 3600 len += format(Time[len], 127 -len, "%d godz. ", godzin) } if (left / 60 >= 1) { minut = (left / 60) left -= minut * 60 len += format(Time[len], 127 -len, "%d min. ", minut) } format(Time[len], 127 -len, "%d sek.", left) return Time } //////////////////////////////////////////////////////////////////////////////////////////////////////////// //ADMIN ROCKET v1.3 by f117bomb //Revised by JTP10181 //========================================================================================================== new rocket_z[33] new blueflare2, mflash, white, smoke public admin_rocket(id) { emit_sound(id,CHAN_WEAPON ,"weapons/rocketfire1.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) fm_set_user_maxspeed(id,0.01) set_task(1.2, "rocket_liftoff", id+69) } public rocket_liftoff(id) { new victim = id - 69 if (!is_user_alive(victim)) return fm_set_user_gravity(victim,-0.50) client_cmd(victim,"+jump;wait;wait;-jump") emit_sound(victim, CHAN_VOICE, "weapons/rocket1.wav", 1.0, 0.5, 0, PITCH_NORM) rocket_effects(victim) } public rocket_effects(victim) { if (!is_user_alive(victim)) return new vorigin[3] get_user_origin(victim,vorigin) message_begin(MSG_ONE, gmsgDamage, {0,0,0}, victim) write_byte(30) // dmg_save write_byte(30) // dmg_take write_long(1<<16) // visibleDamageBits write_coord(vorigin[0]) // damageOrigin.x write_coord(vorigin[1]) // damageOrigin.y write_coord(vorigin[2]) // damageOrigin.z message_end() if (rocket_z[victim] == vorigin[2]) { rocket_explode(victim) } rocket_z[victim] = vorigin[2] //Draw Trail and effects //TE_SPRITETRAIL - line of moving glow sprites with gravity, fadeout, and collisions message_begin( MSG_BROADCAST, SVC_TEMPENTITY ) write_byte( 15 ) write_coord( vorigin[0]) // coord, coord, coord (start) write_coord( vorigin[1]) write_coord( vorigin[2]) write_coord( vorigin[0]) // coord, coord, coord (end) write_coord( vorigin[1]) write_coord( vorigin[2] - 30) write_short( blueflare2 ) // short (sprite index) write_byte( 5 ) // byte (count) write_byte( 1 ) // byte (life in 0.1's) write_byte( 1 ) // byte (scale in 0.1's) write_byte( 10 ) // byte (velocity along vector in 10's) write_byte( 5 ) // byte (randomness of velocity in 10's) message_end() //TE_SPRITE - additive sprite, plays 1 cycle message_begin( MSG_BROADCAST,SVC_TEMPENTITY) write_byte( 17 ) write_coord(vorigin[0]) // coord, coord, coord (position) write_coord(vorigin[1]) write_coord(vorigin[2] - 30) write_short( mflash ) // short (sprite index) write_byte( 15 ) // byte (scale in 0.1's) write_byte( 255 ) // byte (brightness) message_end() set_task(0.2, "rocket_effects", victim) } public rocket_explode(victim) { if (is_user_alive(victim)) { new vec1[3] get_user_origin(victim,vec1) // blast circles message_begin( MSG_BROADCAST,SVC_TEMPENTITY,vec1) write_byte( 21 ) write_coord(vec1[0]) write_coord(vec1[1]) write_coord(vec1[2] - 10) write_coord(vec1[0]) write_coord(vec1[1]) write_coord(vec1[2] + 1910) write_short( white ) write_byte( 0 ) // startframe write_byte( 0 ) // framerate write_byte( 2 ) // life write_byte( 16 ) // width write_byte( 0 ) // noise write_byte( 188 ) // r write_byte( 220 ) // g write_byte( 255 ) // b write_byte( 255 ) //brightness write_byte( 0 ) // speed message_end() //Explosion2 message_begin( MSG_BROADCAST,SVC_TEMPENTITY) write_byte( 12 ) write_coord(vec1[0]) write_coord(vec1[1]) write_coord(vec1[2]) write_byte( 188 ) // byte (scale in 0.1's) write_byte( 10 ) // byte (framerate) message_end() //smoke message_begin( MSG_BROADCAST,SVC_TEMPENTITY,vec1) write_byte( 5 ) write_coord(vec1[0]) write_coord(vec1[1]) write_coord(vec1[2]) write_short( smoke ) write_byte( 2 ) write_byte( 10 ) message_end() user_kill(victim,1) } //stop_sound emit_sound(victim, CHAN_VOICE, "weapons/rocket1.wav", 0.0, 0.0, (1<<5), PITCH_NORM) fm_set_user_maxspeed(victim,1.0) fm_set_user_gravity(victim,1.00) } stock fm_set_user_maxspeed(index, Float:speed = -1.0) { engfunc(EngFunc_SetClientMaxspeed, index, speed) set_pev(index, pev_maxspeed, speed) return 1 } stock fm_set_user_gravity(index, Float:gravity = 1.0) { set_pev(index, pev_gravity, gravity) return 1 } public plugin_precache() { mflash = precache_model("sprites/muzzleflash.spr") smoke = precache_model("sprites/steam1.spr") blueflare2 = precache_model( "sprites/blueflare2.spr") white = precache_model("sprites/white.spr") precache_sound("weapons/rocketfire1.wav") precache_sound("weapons/rocket1.wav") }
Dodanych wklejek: 12215
Powered By (Pav32) Pastebin © 2011