playername

This commit is contained in:
ineed bots 2024-04-25 14:44:52 -06:00
parent a836c9528e
commit 825d147ea2

View File

@ -447,13 +447,15 @@ fixPerksAndScriptKick()
*/ */
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 );
} }
} }