Raised This Month: $ Target: $400
 0% 

Flashlight to Nightvision


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bos93
Veteran Member
Join Date: Jul 2010
Old 05-22-2013 , 13:52   Re: Flashlight to Nightvision
Reply With Quote #1

try:

PHP Code:
#include < amxmodx >
#include < cstrike >
#include < engine >

#define PLUGIN_NAME "x"
#define PLUGIN_VERSION "0.0.0.1"
#define PLUGIN_AUTHOR "x"

public plugin_init( ) 
{
    
register_plugin
    

        
PLUGIN_NAME
        
PLUGIN_VERSION
        
PLUGIN_AUTHOR 
    
);

    
register_impulse100"ClientCommand__Impulse" );
}

public 
ClientCommand__ImpulsepPlayer )
{
    if( !
is_user_alivepPlayer ) || cs_get_user_teampPlayer ) != CS_TEAM_T )
        return 
PLUGIN_CONTINUE;

    
cs_set_user_nvgpPlayer, .nvgoggles = !cs_get_user_nvgpPlayer ) );

    return 
PLUGIN_HANDLED;

__________________

Last edited by Bos93; 05-22-2013 at 14:20.
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-22-2013 , 16:29   Re: Flashlight to Nightvision
Reply With Quote #2

This only set item to true or false, you need to execute engclient_cmd(id, "nightvision").
__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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 16:20.


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