mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-07 10:28:26 +00:00
fix it changing human names on connect
This commit is contained in:
parent
7ca863f04b
commit
c81f958efb
@ -2608,11 +2608,11 @@ public Action BotEvents(Event event, const char[] name, bool dontBroadcast)
|
||||
|
||||
int client = GetClientOfUserId(event.GetInt("userid"));
|
||||
|
||||
if(event.GetBool("bot") || !client || IsFakeClient(client))
|
||||
if (event.GetBool("bot") || (client && IsFakeClient(client)))
|
||||
{
|
||||
event.BroadcastDisabled = true;
|
||||
|
||||
if (StrEqual(name, "player_connect"))
|
||||
if (StrContains(name, "player_connect") != -1)
|
||||
{
|
||||
char sName[MAX_NAME_LENGTH];
|
||||
FillBotName(gA_BotInfo_Temp, sName);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user