死亡屏幕变红,改成只要是死亡永远变成红的
死亡屏幕变红插件,死亡的瞬间变红但是慢慢会恢复正常视角颜色。想改成只要是死亡,那视角永远是红色的。
这是源码:
public plugin_init() {
register_plugin("Enhanced Death", "0.1", "Platters")
register_event("DeathMsg", "death", "a")
return PLUGIN_CONTINUE
}
public death() {
new id=read_data(2)
message_begin(MSG_ONE,get_user_msgid("ScreenFade"),{0,0,0},id)
write_short( 10<<12 ) // fade lasts this long duration
write_short( 10<<16 ) // fade lasts this long hold time
write_short( 1<<1 ) // fade type (in / out)
write_byte( 255 ) // fade red
write_byte( 0) // fade green
write_byte( 0 ) // fade blue
write_byte( 255 ) // fade alpha
message_end()
new deadname
get_user_name(id,deadname,32)
return PLUGIN_CONTINUE
}
页:
[1]