mirror of
https://github.com/ineedbots/t4_bot_warfare.git
synced 2025-09-08 16:37:25 +00:00
connection events
This commit is contained in:
@@ -268,10 +268,31 @@ start_chat_watch()
|
||||
case "attack_dog":
|
||||
self thread bot_chat_attack_dog_watch( a, b, c, d, e, f, g );
|
||||
break;
|
||||
|
||||
case "connection":
|
||||
self thread bot_chat_connection_player_watch( a, b, c, d, e, f, g );
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
When a player connected
|
||||
*/
|
||||
bot_chat_connection_player_watch( conn, player, playername, d, e, f, g )
|
||||
{
|
||||
self endon( "disconnect" );
|
||||
|
||||
switch ( conn )
|
||||
{
|
||||
case "connected":
|
||||
break;
|
||||
|
||||
case "disconnected":
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
start_startgame_watch
|
||||
*/
|
||||
|
Reference in New Issue
Block a user