Beispiel #1
0
        public void CMD_givemoney(Player client, double money)
        {
            Data.PlayerInfo playerInfo = new Data.PlayerInfo(client);
            playerInfo.GiveMoney(money);

            string msg = money < 0 ? "" : "+";

            UtilityFuncs.SendPlayerNotify(client, 0, $"{msg}{money}$");
        }
Beispiel #2
0
 public void CMD_sethp(Player player, int hp)
 {
     new PlayerInfo(player).SetHealth(hp);
     UtilityFuncs.SendPlayerNotify(player, 2, $"Ваше здоровье было изменено на {hp}");
 }