Raised This Month: $51 Target: $400
 12% 

CSGO how to Custom NVG Color


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
pchun
Member
Join Date: Sep 2013
Old 07-17-2014 , 15:23   CSGO how to Custom NVG Color
Reply With Quote #1

I want to white

PHP Code:
#pragma semicolon 1
#include <sdktools>
//#include <sdktools_sound>
#define VERSION "0.2"
#define AUTHOR "TummieTum (TumTum)"
#define MAX_FILE_LEN 80

// CVAR Handles
new Handle:cvarnven INVALID_HANDLE;
new 
Handle:cvarnvspawn INVALID_HANDLE;
new 
Handle:cvarnvonoff INVALID_HANDLE;

// Basic Information (Do not change it)
public Plugin:myinfo =
{
    
name "Night Vision Goggles",
    
author AUTHOR,
    
description "CS:GO Night Vision",
    
version VERSION,
    
url "https://www.team-secretforce.com"
};

// Command
public OnPluginStart()
{
    
// Default
    
RegConsoleCmd("sm_nvg"Command_nightvision);
    
    
// Events
    
HookEvent("player_spawn"PlayerSpawn);
    
    
//Cvars
    
cvarnvspawn CreateConVar("nv_spawnmsg""1""Enable or Disable Spawnmessages");
    
cvarnvonoff CreateConVar("nv_onoff""1""Disable Enable / Disable Messages");
    
cvarnven CreateConVar("nv_command""1""Enable or Disable !NVG");
    
    
// Version
    
CreateConVar("sm_nightvision_version"VERSION"Plugin info"FCVAR_DONTRECORD|FCVAR_NOTIFY);
    
    
//Generate
    
AutoExecConfig(true"Night_Vision_TummieTum");
         
}


public 
Action:PlayerSpawn(Handle:event, const String:name[], bool:dontBroadcast)
{
    
// Get Client
    
new client GetClientOfUserId(GetEventInt(event"userid"));
    
    if (
GetClientTeam(client) == && !IsPlayerAlive(client))
    {
    return;
    }
    
    
// Check Convar & Spawnmsg
    
if (GetConVarInt(cvarnvspawn) == 1)
    {    
        
PrintToChat(client,"[Night Vision] 输入 \x03!nvg \x01使用夜视仪.");
    }
    
}

// Enable
public Action:Command_nightvision(clientargs)
{
     if (
GetConVarInt(cvarnven) == 1)
    {
        if (
IsPlayerAlive(client)) 
        {
            if(
GetEntProp(clientProp_Send"m_bNightVisionOn") == 0)
            {
                
SetEntProp(clientProp_Send"m_bNightVisionOn"1);
                
//if (GetConVarInt(cvarnvonoff) == 1)
                //PrintToChat(client,"[Night Vision] \x03NV is Enabled!");
                

                
}
            else
            {
                
SetEntProp(clientProp_Send"m_bNightVisionOn"0);
                
//if (GetConVarInt(cvarnvonoff) == 1)
                //{
                //PrintToChat(client,"[Night Vision] \x03NV is Disabled!");
                //}
            
}
        }
    }
    return 
Plugin_Handled;

pchun is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 07-17-2014 , 16:40   Re: CSGO how to Custom NVG Color
Reply With Quote #2

It's built into the game, it's a simple color correction, if i remember correctly.
Mitchell is offline
pchun
Member
Join Date: Sep 2013
Old 07-17-2014 , 19:41   Re: CSGO how to Custom NVG Color
Reply With Quote #3

Quote:
Originally Posted by Mitchell View Post
It's built into the game, it's a simple color correction, if i remember correctly.
Can you change the color to use plugin?
pchun 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 23:44.


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