HLMOD.HU Forrás Megtekintés - www.hlmod.hu
  1. #include <amxmodx>
  2. #include <fun>
  3.  
  4. #define PLUGIN_VERSION "1.0"
  5.  
  6. public plugin_init()
  7. {
  8. register_plugin("Screen Fade", PLUGIN_VERSION, "zEEDu")
  9.  
  10. register_event("DeathMsg", "hook_death", "a", "1>0")
  11. }
  12.  
  13. public hook_death()
  14. {
  15. new iVictim = read_data(2)
  16.  
  17. if(is_user_connected(iVictim))
  18. {
  19. message_begin(MSG_ONE, get_user_msgid("ScreenFade"), {0,0,0}, iVictim)
  20. write_short(1<<10)
  21. write_short(1<<10)
  22. write_short(0x0000)
  23. write_byte(255)
  24. write_byte(0)
  25. write_byte(0)
  26. write_byte(75)
  27. message_end()
  28. }
  29. }
  30. /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
  31. *{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1038\\ f0\\ fs16 \n\\ par }
  32. */
  33.