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

[CS:GO] Ban By VAC


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
adska
Junior Member
Join Date: Jul 2018
Old 07-11-2018 , 02:20   [CS:GO] Ban By VAC
Reply With Quote #1

Hello, is it possible to catch an event when player on server is being banned by VAC?
adska is offline
Facksy
Senior Member
Join Date: Apr 2017
Location: +2+2
Old 07-11-2018 , 04:51   Re: [CS:GO] Ban By VAC
Reply With Quote #2

Lel, I dont think so, what do you want to do?
__________________
My Steam I take private requests if related with TF2
My Plugins
Facksy is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 07-11-2018 , 05:18   Re: [CS:GO] Ban By VAC
Reply With Quote #3

I use a cookie system to track computers. So when an account becomes VACd all the other accounts with the same tracking cookie are banned.
__________________
Neuro Toxin is offline
Ilusion9
Veteran Member
Join Date: Jun 2018
Location: Romania
Old 07-11-2018 , 13:15   Re: [CS:GO] Ban By VAC
Reply With Quote #4

Hook player_disconnect event and check the reason

PHP Code:

event
.GetString("reason"reasonsizeof(reason); 
Ilusion9 is offline
midnight9
Senior Member
Join Date: Nov 2012
Old 07-11-2018 , 16:15   Re: [CS:GO] Ban By VAC
Reply With Quote #5

Quote:
Originally Posted by Neuro Toxin View Post
I use a cookie system to track computers. So when an account becomes VACd all the other accounts with the same tracking cookie are banned.
How exactly does it work?
midnight9 is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 07-11-2018 , 19:15   Re: [CS:GO] Ban By VAC
Reply With Quote #6

Using the HTML MOTD. Use PHP to insert a tracking cookie.
__________________
Neuro Toxin is offline
adska
Junior Member
Join Date: Jul 2018
Old 07-12-2018 , 04:52   Re: [CS:GO] Ban By VAC
Reply With Quote #7

Quote:
Originally Posted by Facksy View Post
Lel, I dont think so, what do you want to do?
I want to do if player is banned by VAC then his account on my web would be frozen and he would not be able to do several actions.

Quote:
Originally Posted by Ilusion9 View Post
Hook player_disconnect event and check the reason

PHP Code:

event
.GetString("reason"reasonsizeof(reason); 
It is a good idea, but what exactly should I check in that string?

Last edited by adska; 07-12-2018 at 04:53.
adska is offline
mug1wara
AlliedModders Donor
Join Date: Jun 2018
Old 07-12-2018 , 08:13   Re: [CS:GO] Ban By VAC
Reply With Quote #8

I don't understand why, but here you go

PHP Code:
#include <sourcemod>

public void OnPluginStart()
{
    
HookEvent("player_disconnect"Event_Disconnect);
}

public 
Action Event_Disconnect(Event hEvent, const char[] sNamebool bDontBroadcast)
{
    
char sReason[256];
    
    
GetEventString(hEvent"reason"sReasonsizeof(sReason));
    
    if (
StrEqual(sReason"VAC")) /* "VAC" is just an example, I don't know how it looks like while getting vac banned */
    
{
        
/* Do something here */
    
}


Last edited by mug1wara; 07-16-2018 at 15:31.
mug1wara is offline
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 07-12-2018 , 09:05   Re: [CS:GO] Ban By VAC
Reply With Quote #9

iirc the message is "VAC banned from secure server"
__________________
retired
shavit is offline
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 07-12-2018 , 10:05   Re: [CS:GO] Ban By VAC
Reply With Quote #10

PHP Code:
#include <sourcemod> 

public void OnPluginStart() 

    
HookEvent("player_disconnect"Event_Disconnect); 


public 
void Event_Disconnect(Event event, const char[] namebool dontBroadcast

    
char sReason[256]; 
    
event.GetString("reason"sReasonsizeof(sReason)); 
     
    if (
StrContains(sReason"VAC") != -1)
    { 
        
//action
    


This makes more sense.
Drixevel 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 06:23.


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