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

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

            if (player != null)
            {
                if (AdminSystem.SetRank(client, playerName, rank))
                {
                    client.SendNotification("Rank wurde gesetzt!");
                    return;
                }
                else
                {
                    client.SendNotification("Rank wurde NICHT gesetzt!");
                    return;
                }
            }
            else
            {
                client.SendChatMessage("Spieler wurde nicht gefunden!");
                return;
            }
        }
Ejemplo n.º 2
0
        public void CMD_MakeAdmin(Client client, string playerName, int rank)
        {
            Client player = NAPI.Player.GetPlayerFromName(playerName);

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

            if (player != null)
            {
                if (AdminSystem.SetRank(client, playerName, rank))
                {
                    client.SendNotification("Le rang à était défini!");
                    return;
                }
                else
                {
                    client.SendNotification("Le rang n'a pas était défini!");
                    return;
                }
            }
            else
            {
                client.SendChatMessage("Le joueur n'a pas été trouvé!");
                return;
            }
        }