mirror of
https://github.com/ineedbots/iw5_bot_warfare.git
synced 2025-04-26 07:34:50 +00:00
25 lines
249 B
Plaintext
25 lines
249 B
Plaintext
init()
|
|
{
|
|
level thread onConnect();
|
|
}
|
|
|
|
onConnect()
|
|
{
|
|
for (;;)
|
|
{
|
|
level waittill("connected", player);
|
|
|
|
player thread connected();
|
|
}
|
|
}
|
|
|
|
connected()
|
|
{
|
|
self endon("disconnect");
|
|
|
|
for(;;)
|
|
{
|
|
self waittill("spawned_player");
|
|
}
|
|
}
|