playername

This commit is contained in:
ineed bots 2024-04-25 14:50:04 -06:00
parent dfe2ba0c47
commit 1e0daca087

View File

@ -855,13 +855,15 @@ onPlayerConnect()
*/ */
onDisconnectPlayer() onDisconnectPlayer()
{ {
name = self.name;
self waittill( "disconnect" ); self waittill( "disconnect" );
waittillframeend; waittillframeend;
for ( i = 0; i < level.bots.size; i++ ) for ( i = 0; i < level.bots.size; i++ )
{ {
bot = level.bots[ i ]; bot = level.bots[ i ];
bot BotNotifyBotEvent( "connection", "disconnected", self, self.name ); bot BotNotifyBotEvent( "connection", "disconnected", self, name );
} }
} }