When player type /ad "damage amount"
exp: /ad "50"
player health will be received 50 damages.
plz help me![]()
Solved Adding damage on command?
Discussion in 'Rust Development' started by Novaa, Apr 8, 2018.
-
Code:
[ChatCommand("ad")] private void AdCommand(BasePlayer player, string command, string[] args) { var damage = Convert.ToInt32(args[0]); if ((player.health - damage) < 1) player.Die(); else player.health -= damage; }
-