Exemplo n.º 1
0
        void OnPlayerSpawn(BasePlayer player)
        {
            if (this.spawnPoint.isNotSet())
            {
                if (playerIsAdmin(player))
                {
                    this.chatMessage(player, config.getMessage("noSpawn", new string[] { }));
                }

                return;
            }

            if (playerSpawnedAtSleepingBag(player))
            {
                return;
            }

            this.doTeleport(null, null, player);
            this.chatMessage(player, config.getMessage("welcome", new string[] { }));
        }
Exemplo n.º 2
0
        void OnPlayerInit(BasePlayer player)
        {
            Faction faction = this.getPlayerOwnedFaction(player);

            if (faction != null)
            {
                foreach (string request in faction.requests)
                {
                    BasePlayer requestee = this.getActivePlayer(request);
                    if (requestee != null)
                    {
                        this.chatMessage(player, config.getMessage("requestReceived", new string[] { requestee.displayName.ToString() }));
                    }
                }
            }


            foreach (Faction f in this.factions)
            {
                if (f.hasInvite(player))
                {
                    this.chatMessage(player, config.getMessage("invitationReceived", new string[] { f.name }));
                }
            }
        }