Raised This Month: $ Target: $400
 0% 

Screen Fade problems


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
blackops7799
Senior Member
Join Date: May 2006
Old 01-27-2007 , 02:23   Screen Fade problems
Reply With Quote #1

Well on my server I have that night/day timer. I decided to make a night vision thing for this mod I use. It fades the screen to the green color, but when you get hit/damaged the screen goes back to normal even though it still says its on.

Can this be fixed?

Code:
public nightvisiontoglle(id) {     if(!is_user_alive(id))     {         return PLUGIN_HANDLED     }     if(nightvision[id] == 0)     {         message_begin(MSG_ONE,get_user_msgid("ScreenFade"),{0,0,0},id);         write_short(~0);         write_short(~0);         write_short(1<<2);         write_byte(0);         write_byte(255);         write_byte(0);         write_byte(50);         message_end();         client_print(id, print_chat, "[ZombieMod] Night Vision On.")         nightvision[id] = 1         return PLUGIN_HANDLED     }     else     {         message_begin(MSG_ONE,get_user_msgid("ScreenFade"),{0,0,0},id);         write_short(~0);         write_short(~0);         write_short(1<<2);         write_byte(0);         write_byte(0);         write_byte(0);         write_byte(0);         message_end();         client_print(id, print_chat, "[ZombieMod] Night Vision Off.")         nightvision[id] = 0         return PLUGIN_HANDLED     }     return PLUGIN_HANDLED }
blackops7799 is offline
dutchmeat
Senior Member
Join Date: Sep 2006
Old 01-27-2007 , 07:36   Re: Screen Fade problems
Reply With Quote #2

use pre/postthink
__________________
before you criticize someone, you should walk a mile in their shoes. that way, when you criticize them, you're a mile away and you have their shoes.
dutchmeat is offline
Reply



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 22:22.


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