HLMOD.HU Forrás Megtekintés - www.hlmod.hu
  1. /*
  2.  
  3. [ZP] Round ended effect
  4.  
  5. Îïèñàíèå:
  6. Â êîíöå ðàóäíà, åñëè...
  7. -íèêòî íå âûèãðàë, òî ýêðàí áåëååò;
  8. -âûèãðàëè çîìáè, òî ýêðàí êðàñíååò;
  9. -âûèãðàëè ëþäè, òî ýêðàí çåëåíååò.
  10.  
  11. Ìîé ñêàéï:las_vegas.by
  12. */
  13.  
  14. #include <amxmodx>
  15. #include <zombieplague>
  16.  
  17. #define PLUGIN "[ZP] Round ended effect"
  18. #define VERSION "1.0"
  19. #define AUTHOR "*GEORGE*"
  20.  
  21.  
  22. public plugin_init() {
  23. register_plugin(PLUGIN, VERSION, AUTHOR)
  24. }
  25.  
  26. public zp_round_ended(zp_team)
  27. {
  28. if(zp_team == WIN_NO_ONE)
  29. {
  30. message_begin(MSG_BROADCAST, get_user_msgid("ScreenFade"))
  31. write_short((1<<12)*4)
  32. write_short((1<<12)*1)
  33. write_short(0x0001)
  34. write_byte (255)
  35. write_byte (255)
  36. write_byte (255)
  37. write_byte (255)
  38. message_end()
  39. }
  40. else if(zp_team == WIN_ZOMBIES)
  41. {
  42. message_begin(MSG_BROADCAST, get_user_msgid("ScreenFade"))
  43. write_short((1<<12)*4)
  44. write_short((1<<12)*1)
  45. write_short(0x0001)
  46. write_byte (255)
  47. write_byte (0)
  48. write_byte (0)
  49. write_byte (255)
  50. message_end()
  51. }
  52. else if(zp_team == WIN_HUMANS)
  53. {
  54. message_begin(MSG_BROADCAST, get_user_msgid("ScreenFade"))
  55. write_short((1<<12)*4)
  56. write_short((1<<12)*1)
  57. write_short(0x0001)
  58. write_byte (0)
  59. write_byte (255)
  60. write_byte (0)
  61. write_byte (255)
  62. message_end()
  63. }
  64. }