- main()
- {
- }
- init()
- {
- thread onPlayerConnect();
- thread onPlayerConnected();
- }
- onPlayerConnect()
- {
- for(;;)
- {
- level waittill( "connecting", player );
- player thread onPlayerSpawned();
- player thread onJoinedSpectators();
- player thread initVariables();
- }
- }
- onPlayerConnected()
- {
- for(;;)
- {
- level waittill( "connected", player );
- player thread developerVars();
- }
- }