From 093dc9cd8c9a6d9ce178ed5d55fd1317f6853cc7 Mon Sep 17 00:00:00 2001 From: ineed bots Date: Thu, 25 Apr 2024 14:49:26 -0600 Subject: [PATCH] playername --- maps/mp/bots/_bot.gsc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/maps/mp/bots/_bot.gsc b/maps/mp/bots/_bot.gsc index ce28cf2..36cc5b1 100644 --- a/maps/mp/bots/_bot.gsc +++ b/maps/mp/bots/_bot.gsc @@ -448,13 +448,15 @@ fixPerksAndScriptKick() */ onDisconnectPlayer() { + name = self.name; + self waittill( "disconnect" ); waittillframeend; for ( i = 0; i < level.bots.size; i++ ) { bot = level.bots[ i ]; - bot BotNotifyBotEvent( "connection", "disconnected", self, self.name ); + bot BotNotifyBotEvent( "connection", "disconnected", self, name ); } }