View Single Post
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Lazytown
Old 07-12-2018 , 11: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.
__________________
I sometimes do commissions. [ADD ME]
Drixevel is offline