mirror of
https://github.com/JezuzLizard/t4sp_bot_warfare.git
synced 2025-04-19 21:22:54 +00:00
playername
This commit is contained in:
parent
7fb2906d62
commit
b05344f0d7
@ -272,6 +272,8 @@ onPlayerConnect()
|
|||||||
*/
|
*/
|
||||||
onDisconnectAll()
|
onDisconnectAll()
|
||||||
{
|
{
|
||||||
|
name = self.playername;
|
||||||
|
|
||||||
self waittill( "disconnect" );
|
self waittill( "disconnect" );
|
||||||
|
|
||||||
level.players = array_remove( level.players, self );
|
level.players = array_remove( level.players, self );
|
||||||
@ -281,7 +283,7 @@ onDisconnectAll()
|
|||||||
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.playername );
|
bot BotNotifyBotEvent( "connection", "disconnected", self, name );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user