Skip to content

Commit

Permalink
playername
Browse files Browse the repository at this point in the history
  • Loading branch information
ineedbots committed Apr 25, 2024
1 parent 6f2057c commit 582268a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion maps/mp/bots/_bot.gsc
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
}

Expand Down

0 comments on commit 582268a

Please sign in to comment.