View Single Post
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