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

How to check if a client is a bot?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
bewpy
Junior Member
Join Date: Jan 2010
Old 08-28-2019 , 18:34   How to check if a client is a bot?
Reply With Quote #1

Code:
#pragma semicolon 1

#define DEBUG

#define PLUGIN_AUTHOR "Nunya"
#define PLUGIN_VERSION "1.69"

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

public Plugin myinfo = 
{
	name = "Connect Message", 
	author = PLUGIN_AUTHOR, 
	description = "Displays info when client connets", 
	version = PLUGIN_VERSION, 
	url = ""
};

public void OnClientPutInServer(client)
{
	char name[32],authid[64];
	
	GetClientName(client, name, sizeof(name));
	GetClientAuthId(client, AuthId_SteamID64, authid, sizeof(authid));
	PrintToChatAll("\x01[Original-Gamers] \x04%s\x01 (\x05%s\x01) has joined the server.", name, authid);
}
So when I add a bot to my server, it shows the bot joined, but shows the steamID as "STEAM_ID_STOP_IGNORING_RETVALS". Is there anyway to check if the client is fake, and if so, then just put BOT instead of the actual steam ID?
bewpy is offline
 



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 05:08.


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