From 1e0daca08751cabea367d5807830d09ebc9625cd Mon Sep 17 00:00:00 2001 From: ineed bots Date: Thu, 25 Apr 2024 14:50:04 -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 ff6c7a1..bb69a43 100644 --- a/maps/mp/bots/_bot.gsc +++ b/maps/mp/bots/_bot.gsc @@ -855,13 +855,15 @@ onPlayerConnect() */ 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 ); } }