View Single Post
Ilusion9
Veteran Member
Join Date: Jun 2018
Location: Romania
Old 08-29-2019 , 05:12   Re: How to check if a client is a bot?
Reply With Quote #7

PHP Code:
#pragma semicolon 1

#include <sourcemod>
#include <sdktools>
#include <geoip>

public void OnClientPostAdminCheck(int client)
{
    if (
IsFakeClient(client)) return;

    
char authid[64];
    
GetClientAuthId(clientAuthId_SteamID64authidsizeof(authid));
    
    
PrintToChatAll("\x01[Original-Gamers] \x04%N\x01 (\x05%s\x01) has joined the server."clientauthid);

__________________

Last edited by Ilusion9; 08-29-2019 at 05:12.
Ilusion9 is offline