Raised This Month: $32 Target: $400
 8% 

[CS:GO/CS:S] No-Scope Detector


Post New Thread Reply   
 
Thread Tools Display Modes
Hackmastr
Member
Join Date: Sep 2013
Old 01-23-2017 , 13:03   Re: [CS:GO/CS:S] No-Scope Detector
Reply With Quote #71

Quote:
Originally Posted by Abusador View Post
How to use PrintCenterText instead CPrintToChat ???
I have this error :
error 035: argument type mismatch (argument 1)

Sorry my bad english
Whats the code?

PrintCenterText syntax is as follows:

PHP Code:
void PrintCenterText(int client, const char[] formatany ...)

// Example
PrintCenterText(client"Hello %s"clientName); 

Last edited by Hackmastr; 01-23-2017 at 13:09.
Hackmastr is offline
Abusador
Member
Join Date: Sep 2015
Old 01-23-2017 , 16:16   Re: [CS:GO/CS:S] No-Scope Detector
Reply With Quote #72

Quote:
Originally Posted by Hackmastr View Post
Whats the code?

PrintCenterText syntax is as follows:

PHP Code:
void PrintCenterText(int client, const char[] formatany ...)

// Example
PrintCenterText(client"Hello %s"clientName); 
This code : (in line 106 and 111)
Spoiler

Last edited by Abusador; 01-23-2017 at 16:19.
Abusador is offline
sbbidol
Junior Member
Join Date: Mar 2017
Old 03-16-2017 , 02:37   Re: [CS:GO/CS:S] No-Scope Detector
Reply With Quote #73

Can i change the sounds? They're too loud @@
sbbidol is offline
sharavoz
New Member
Join Date: Mar 2017
Old 03-31-2017 , 11:15   Re: [CS:GO/CS:S] No-Scope Detector
Reply With Quote #74

Is it possible to change sounds to myself choosed ones?
sharavoz is offline
digimon_dk
Junior Member
Join Date: Dec 2015
Old 07-31-2017 , 07:49   Re: [CS:GO/CS:S] No-Scope Detector
Reply With Quote #75

Nice plugin.. it is possible to add database eg Mysql so it saves people's noscope ?
digimon_dk is offline
Grey83
Veteran Member
Join Date: Dec 2014
Location: Ukraine
Old 07-31-2017 , 09:05   Re: [CS:GO/CS:S] No-Scope Detector
Reply With Quote #76

digimon_dk, yes, it's possible
__________________
Grey83 is offline
MithatGuner
Member
Join Date: Sep 2016
Location: Turkey
Old 08-01-2017 , 03:28   Re: [CS:GO/CS:S] No-Scope Detector
Reply With Quote #77

Quote:
Originally Posted by Abusador View Post
This code : (in line 106 and 111)
Spoiler
There is i changed PrintCenterText to PrintCenterTextAll

PHP Code:
#pragma semicolon 1
#pragma newdecls required

#include <sourcemod>
#include <sdktools>
#include <clientprefs>
#include <multicolors>

static char TAG[] = "☆";        // Example: "{darkred}[www.FrmAkDaG.Com] "

int kills[MAXPLAYERS+1], headshots[MAXPLAYERS+1];
bool enableddebugmsgallcsgoenablesounds;

#define SOUND_ULTRAKILL_REL "*anormais_quake/holyshit.mp3"
#define SOUND_ULTRAKILL "sound/anormais_quake/holyshit.mp3"
#define SOUND_GODLIKE_REL "*/anormais_quake/holyshit.mp3"
#define SOUND_GODLIKE "sound/anormais_quake/holyshit.mp3"

public Plugin myinfo 
{
    
name        "[AWP] No-Scope Detector",
    
author        "Ak0 (improved by Grey83 & onehand)",
    
description    "Awp Maping No-Scope Detector",
    
version        "1.2.5_debug2",
    
url            "https://forums.alliedmods.net/showthread.php?t=290241"
}


public 
void OnPluginStart()
{
    if(
GetEngineVersion() != Engine_CSGO && GetEngineVersion() != Engine_CSSSetFailState("Plugin supports CSS and CS:GO only.");

    
LoadTranslations("core.phrases");
    
LoadTranslations("noscope_gotcha.phrases");

    
ConVar CVar;
    
HookConVarChange((CVar CreateConVar("sm_noscope_enable""1""0/1 - Disable/Enable messages"FCVAR_NOTIFYtrue0.0true1.0)), CVarChange);
    
enabled CVar.BoolValue;
    
HookConVarChange((CVar CreateConVar("sm_noscope_debug""1""0/1 - Disable/Enable debug messages"FCVAR_NOTIFYtrue0.0true1.0)), CVarChangeDebug);
    
debugmsg CVar.BoolValue;
    
HookConVarChange((CVar CreateConVar("sm_noscope_allcsgoguns""0""0/1 - Disable/Enable no-scope detection for all CS:GO weapons w/o crosshairs (g3sg1, scar20, awp, ssg08)"FCVAR_NOTIFYtrue0.0true1.0)), CVarChangeCsgo);
    
allcsgo CVar.BoolValue;
    
HookConVarChange((CVar CreateConVar("sm_noscope_enablesounds""1""0/1 - Disable/Enable quake announcer sounds on a no-scope kill"FCVAR_NOTIFYtrue0.0true1.0)), CVarChangeSounds);
    
enablesounds CVar.BoolValue;



    
HookEvent("player_death"OnPlayerDeath);
}

public 
void CVarChange(ConVar CVar, const char[] oldValue, const char[] newValue)
{
    
enabled CVar.BoolValue;
}

public 
void CVarChangeDebug(ConVar CVar, const char[] oldValue, const char[] newValue)
{
    
debugmsg CVar.BoolValue;
}

public 
void CVarChangeCsgo(ConVar CVar, const char[] oldValue, const char[] newValue)
{
    
allcsgo CVar.BoolValue;
}

public 
void CVarChangeSounds(ConVar CVar, const char[] oldValue, const char[] newValue)
{
    
enablesounds CVar.BoolValue;
}

public 
void OnClientConnected(int client)
{
    
kills[client] = headshots[client] = 0;
}

public 
void OnPlayerDeath(Event event, const char[] namebool dontBroadcast)
{
    
int attacker GetClientOfUserId(event.GetInt("attacker"));
    
int victim GetClientOfUserId(GetEventInt(event"userid"));
    if(
debugmsgPrintToServer("    Attacker: %i"attacker);
    if(!(
attacker <= MaxClients && IsClientInGame(attacker))) return;

    
char weapon[16];
    
event.GetString("weapon"weaponsizeof(weapon));
    
ReplaceString(weapon16"weapon_""");
    if(
debugmsgPrintToServer("    Weapon: %s\n    FOV: %i"weaponGetEntProp(attackerProp_Data"m_iFOV"));
    if(
debugmsgPrintToServer("    DefFOV: %i"GetEntProp(attackerProp_Data"m_iDefaultFOV"));

    if(((
StrContains(weapon"awp") != -|| StrContains(weapon"ssg08") != -|| StrContains(weapon"scout") != -1) ||
        (
allcsgo && (StrContains(weapon"g3sg1") != -|| StrContains(weapon"scar20") != -1))) &&
        (
GetEntProp(attackerProp_Data"m_iFOV") <= || GetEntProp(attackerProp_Data"m_iFOV") == GetEntProp(attackerProp_Data"m_iDefaultFOV")))
    {
        
char sName[MAX_NAME_LENGTH];
        
char vName[MAX_NAME_LENGTH];
        
GetClientName(attackersNamesizeof(sName));
        
GetClientName(victimvNamesizeof(vName));
        
kills[attacker]++;
        static 
bool bHS;

        if((
bHS event.GetBool("headshot"))) headshots[attacker]++;

        if(
enabled)
        {
            if(
bHS)
            {
                
PrintCenterTextAll("%t""HS2All"TAGsNamevNameweapon);
                if(
enablesoundsplaySound(SOUND_GODLIKE_REL);
            }
            else 
            {
                
PrintCenterTextAll("%t""Kill2All"TAGsNamevNameweapon);
                if(
enablesoundsplaySound(SOUND_ULTRAKILL_REL);
            }
        }
    }
}

public 
void playSound(const char[] filelocation)
{
    
char target_soundPath[200];
        
    
Format(target_soundPathsizeof(target_soundPath), "playgamesound %s"filelocation);
    
    for (
int i 1<= MaxClientsi++)
    {
        if(
IsClientInGame(i))
        {
            
ClientCommand(itarget_soundPath);
        }
    }

MithatGuner is offline
digimon_dk
Junior Member
Join Date: Dec 2015
Old 08-01-2017 , 05:06   Re: [CS:GO/CS:S] No-Scope Detector
Reply With Quote #78

Is there one that will help me make mySql on this plugin? It's probably quite easy but I'm not that strong in coding
digimon_dk is offline
tzzion
Member
Join Date: Oct 2016
Old 09-04-2017 , 19:32   Re: [CS:GO/CS:S] No-Scope Detector
Reply With Quote #79

Hey guys !

I'm trying to add the plugin in my MYSQL Database, but I'm not getting it.

I'm using this in databases.cfg

Quote:
"noscope_gotcha 1.2.6_debug2"
{
"driver" "mysql"
"host" "myhost"
"database" "mydatabase"
"user" "myuser"
"pass" "mypassword"
//"timeout" "0"
"port" "3306"
}

Quote:
Originally Posted by Grey83 View Post
digimon_dk, yes, it's possible
Quote:
Originally Posted by digimon_dk View Post
Nice plugin.. it is possible to add database eg Mysql so it saves people's noscope ?

Can anybody help me?

Last edited by tzzion; 09-04-2017 at 19:36.
tzzion is offline
tzzion
Member
Join Date: Oct 2016
Old 09-18-2017 , 22:20   Re: [CS:GO/CS:S] No-Scope Detector
Reply With Quote #80

Quote:
Originally Posted by tzzion View Post
Hey guys !

I'm trying to add the plugin in my MYSQL Database, but I'm not getting it.

I'm using this in databases.cfg









Can anybody help me?

I tried in several ways to put this plugin to be saved ... none of them I got!

Can someone give me support?
tzzion is offline
Reply


Thread Tools
Display Modes

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 04:51.


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