搜索
查看: 1556|回复: 2

希望能編個利用指令令畫面震動的插件

[复制链接]
誰值得你去愛 该用户已被删除
发表于 2008-5-7 23:27:11 | 显示全部楼层 |阅读模式 来自 香港
提示: 作者被禁止或删除 内容自动屏蔽
发表于 2008-5-8 12:13:26 | 显示全部楼层 来自 北京海淀

回复: 希望能編個利用指令令畫面震動的插件

  1. #include <amxmodx>
  2. #include <fakemeta>
  3. #define PLUGIN "Test"
  4. #define AUTHOR "Jim"
  5. #define VERSION "1.0"
  6. new g_maxplayers
  7. new g_msgScreenShake
  8. public plugin_init()
  9. {
  10. register_plugin(PLUGIN, VERSION, AUTHOR)
  11. register_event("Damage", "event_damage", "be", "2>10", "3=0", "4!0")
  12. g_maxplayers = get_maxplayers()
  13. g_msgScreenShake = get_user_msgid("ScreenShake")
  14. }
  15. public event_damage(id)
  16. {
  17. if(pev(id, pev_dmg_inflictor) > g_maxplayers)
  18. {
  19.   message_begin(MSG_ONE_UNRELIABLE, g_msgScreenShake, _, id)
  20.   write_short(1<<14);
  21.   write_short(1<<14);
  22.   write_short(1<<14);
  23.   message_end()
  24. }
  25. }
复制代码
回复

使用道具 举报

誰值得你去愛 该用户已被删除
 楼主| 发表于 2008-5-8 19:32:35 | 显示全部楼层 来自 香港
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

游客
回复
您需要登录后才可以回帖 登录 | 注个册吧

快速回复 返回顶部 返回列表