Okay heres the code... when I type amx_nvg in the game console it does not fade red or anything..... help? Thanks
Code:
#include <amxmodx>
public plugin_init() {
register_plugin("Red NVG","1.0","SnipaJ")
register_clcmd("amx_nvg","nvg1")
register_clcmd("amx_nvg2","nvg2")
register_clcmd("amx_nvg3","nvg3")
}
public nvg1(id) {
message_begin(MSG_ONE,get_user_msgid("ScreenFade"),{0,0,0},id)
write_short( 1<<99999) // fade lasts this long duration
write_short( 1<<99999 ) // fade lasts this long hold time
write_short( 1<<12 ) // fade type (in / out)
write_byte( 200 ) // fade red
write_byte( 0 ) // fade green
write_byte( 0 ) // fade blue
write_byte( 50 ) // fade alpha
message_end()
return PLUGIN_HANDLED
}
public nvg2(id) {
message_begin(MSG_ONE,get_user_msgid("ScreenFade"),{0,0,0},id)
write_short( 1<<99999) // fade lasts this long duration
write_short( 1<<99999 ) // fade lasts this long hold time
write_short( 1<<12 ) // fade type (in / out)
write_byte( 200 ) // fade red
write_byte( 0 ) // fade green
write_byte( 0 ) // fade blue
write_byte( 150 ) // fade alpha
message_end()
return PLUGIN_HANDLED
}
public nvg3(id) {
message_begin(MSG_ONE,get_user_msgid("ScreenFade"),{0,0,0},id)
write_short( 1<<99999) // fade lasts this long duration
write_short( 1<<99999 ) // fade lasts this long hold time
write_short( 1<<12 ) // fade type (in / out)
write_byte( 200 ) // fade red
write_byte( 0 ) // fade green
write_byte( 0 ) // fade blue
write_byte( 200 ) // fade alpha
message_end()
return PLUGIN_HANDLED
}