Hi,
I'm very new to Oxide coding and I'm new to C.
In a Rust plugin, I have a message that is presented to the player and I want to present it to all players.
Existing Player Message:
"groupAssigned" is a Registered message as followsCode:SendMessage(player, "groupAssigned", usergroup.requirement, Config["serverName"].ToString(), usergroup.usergroup);
It's my understanding that I should use Server.Broadcast, but I'm having trouble converting it.Code:["groupAssigned"] = "Congratulations, by spending <color={0}>{1} minutes</color> on <color={0}>{2}</color> you have been assigned to the usergroup <color={0}>{3}</color>. Thank you for playing!",
How might I convert the SendMessage to Server.Broadcast?
Also, how might I capture the player name and send it back to the registered message like the usergroup.requirement?
Thanks in advance.
Converting SendMessage to Server.Broadcast
Discussion in 'Rust Development' started by Tunnleram, Jan 25, 2018.