Ejemplo n.º 1
0
        public void CMD_MakeLeader(Client client, string player, int rank)
        {
            Client target = NAPI.Player.GetPlayerFromName(player);

            if (!AdminSystem.HasRank(client, 2))
            {
                client.SendNotification("~r~Du hast dazu keine Berechtigung!");
                return;
            }

            if (LeaderSystem.SetRank(player, rank))
            {
                client.SendNotification($"[~r~Server~w~] Spieler {player} wurde {LeaderSystem.GetSetLeaderText(target)}");
                PlayerData.Respawn(client);
                return;
            }
            else
            {
                client.SendNotification($"[~r~Server~w~] Spieler {player} konnte nicht zum Leader ernannt werden!");
                return;
            }
        }
Ejemplo n.º 2
0
        public void CMD_MakeLeader(Client client, string player, int rank)
        {
            Client target = NAPI.Player.GetPlayerFromName(player);

            if (!AdminSystem.HasRank(client, 2))
            {
                client.SendNotification("~r~Vous n'avez pas l'autorisation!");
                return;
            }

            if (LeaderSystem.SetRank(player, rank))
            {
                client.SendNotification($"[~r~Server~w~] Joueur {player} était {LeaderSystem.GetSetLeaderText(target)}");
                PlayerData.Respawn(client);
                return;
            }
            else
            {
                client.SendNotification($"[~r~Server~w~] Joueur {player} ne peut pas être nommé chef!");
                return;
            }
        }