Raised This Month: $ Target: $400
 0% 

Set nightvision color and block for using flashlight.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 12-26-2008 , 13:09   Set nightvision color and block for using flashlight.
Reply With Quote #1

1.How to set nightvision color?
2. How to block to use flashlight.

Last edited by xbatista; 12-26-2008 at 13:12.
xbatista is offline
Send a message via Skype™ to xbatista
Old 12-26-2008, 13:25
xPaw
This message has been deleted by xPaw. Reason: my bad ;D
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 12-26-2008 , 13:29   Re: Set nightvision color and block for using flashlight.
Reply With Quote #2

Quote:
// 100percents i'm sure it will not work
YES...
xbatista is offline
Send a message via Skype™ to xbatista
IneedHelp
Veteran Member
Join Date: Mar 2007
Location: Argentina
Old 12-26-2008 , 13:54   Re: Set nightvision color and block for using flashlight.
Reply With Quote #3

1. See custom NVG Color by SAMURAI
2. FM_CmdStart forward, check if the impulse is 100 and then block it ?
__________________
IneedHelp is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 12-26-2008 , 14:00   Re: Set nightvision color and block for using flashlight.
Reply With Quote #4

Quote:
1. See custom NVG Color by SAMURAI
Complicated code :/
I need simple set nvg color decay and other.
Without any stop nvg and other....

Quote:
2. FM_CmdStart forward, check if the impulse is 100 and then block it ?
I don't know.Ehhm somehow but block use flashlight.I solved the problem with icon now need to block it somehow :/
xbatista is offline
Send a message via Skype™ to xbatista
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 12-26-2008 , 14:07   Re: Set nightvision color and block for using flashlight.
Reply With Quote #5

2.
Code:
#include <amxmodx> #include <fakemeta> public plugin_init( ) {     register_plugin( "Flashlight Blocker", "1.0", "xPaw" );     register_forward( FM_CmdStart, "fwCmdStart" ); } public fwCmdStart( id, uc_handle, seed ) {     if( get_uc( uc_handle, UC_Impulse ) == 100 ) {         if( get_user_team(id) == 1 ) {             set_uc( uc_handle, UC_Impulse, 0 );             return FMRES_HANDLED;         }     }     return FMRES_IGNORED; }
__________________

Last edited by xPaw; 12-26-2008 at 14:52.
xPaw is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 12-26-2008 , 14:09   Re: Set nightvision color and block for using flashlight.
Reply With Quote #6

ok will test
EDIT: tested,not blocks. :/

Last edited by xbatista; 12-26-2008 at 14:15.
xbatista is offline
Send a message via Skype™ to xbatista
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 12-26-2008 , 14:16   Re: Set nightvision color and block for using flashlight.
Reply With Quote #7

i'm failed with impusle number i set 101 but should be 100 ;D
__________________
xPaw is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 12-26-2008 , 14:17   Re: Set nightvision color and block for using flashlight.
Reply With Quote #8

WoW.
if( get_uc( uc_handle, UC_Impulse ) == 101 ) {
must be if( get_uc( uc_handle, UC_Impulse ) == 100) {

EDIT:YEP.
HOW ABOUT 1.? ))
xbatista is offline
Send a message via Skype™ to xbatista
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 12-26-2008 , 14:21   Re: Set nightvision color and block for using flashlight.
Reply With Quote #9

See custom NVG Color by SAMURAI like IneedHelp sayd, its pretty good code.
__________________
xPaw is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 12-26-2008 , 14:22   Re: Set nightvision color and block for using flashlight.
Reply With Quote #10

OK :/
Спасибо за flashlight xD .
xbatista is offline
Send a message via Skype™ to xbatista
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 09:09.


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