From 582268aa3c7ff02b5e2c38d137731ab3e7c5de88 Mon Sep 17 00:00:00 2001 From: ineed bots Date: Thu, 25 Apr 2024 14:50:35 -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 a8bb50e..13e9f21 100644 --- a/maps/mp/bots/_bot.gsc +++ b/maps/mp/bots/_bot.gsc @@ -604,13 +604,15 @@ watchScrabler() */ 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 ); } }