|
发表于 2008-4-24 12:45:26
|
显示全部楼层
来自 中国–北京–北京–朝阳区
回复: 可否人为创造闪光弹效果?
- #include <amxmodx>
- #define PLUGIN "Test"
- #define AUTHOR "Jim"
- #define VERSION "1.0"
- new g_msgScreenFade
- public plugin_init()
- {
- register_plugin(PLUGIN, VERSION, AUTHOR)
- g_msgScreenFade = get_user_msgid("ScreenFade")
- register_clcmd("test", "test")
- }
- public test(id)
- {
- flash_him(id)
- return PLUGIN_HANDLED
- }
- stock flash_him(id)
- {
- message_begin(MSG_ONE, g_msgScreenFade, _, id)
- write_short(102400)
- write_short(22756)
- write_short(0)
- write_byte(255)
- write_byte(255)
- write_byte(255)
- write_byte(255)
- message_end()
- }
复制代码 |
|