This is my code:
Output:Code://FRUSTRATIONS [ChatCommand("rename")] void renamecmd(BasePlayer player, string command, string[] args) { if (args.Length < 1) return; string newname = args[0]; IPlayer p = covalence.Players.FindPlayerById(player.userID.ToString()); SendReply(player, "Name in covalence: " + p.Name); p.Rename(newname); SendReply(player, "hopefully changed name to: " + newname); SendReply(player, "New name (covalence): " + p.Name); return; }
https://i.gyazo.com/c6966dcfdaba7485890ac3b6d8b47b5a.png
Fixed IPlayer.Rename not working properly
Discussion in 'Rust Development' started by Slydelix, Oct 27, 2017.