Raised This Month: $ Target: $400
 0% 

Red Nightvision?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
yikomaka
Member
Join Date: May 2004
Old 09-11-2004 , 22:07   Red Nightvision?
Reply With Quote #1

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
}
yikomaka is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:16.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode