mirror of
https://github.com/ineedbots/t4_bot_warfare.git
synced 2026-05-23 07:51:42 +00:00
The start of something awesome
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
init()
|
||||
{
|
||||
level.clientid = 0;
|
||||
|
||||
level thread onPlayerConnect();
|
||||
}
|
||||
|
||||
onPlayerConnect()
|
||||
{
|
||||
for(;;)
|
||||
{
|
||||
level waittill("connecting", player);
|
||||
|
||||
player.clientid = level.clientid;
|
||||
level.clientid++; // Is this safe? What if a server runs for a long time and many people join/leave
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user