Ban/Kick User
Discussion in 'Rust Development' started by Rusty, Aug 7, 2015.
-
Wulf Community Admin
I'd recommend taking a look at existing plugins that do this such as Enhanced Ban System.
-
Having trouble making this work...any insight?Code:
ServerUsers.Set(target.userID, ServerUsers.UserGroup.Banned, target.displayName, reason); ServerUsers.Save(); Network.Net.sv:Kick(target.net.connection, reason)
ServerUsers is nill it says -
Wulf Community Admin
What is ServerUsers from? Your answer is the Network.Net.sv:Kick(target.net.connection, reason), I'm not sure what the other portions are. -
I seen that in the plugin you mentioned, the kick part works but i cant figure out out to ban.
-
Wulf Community Admin
rust.RunServerCommand("ban", player.displayName, reason) -
Perfect. Many thanks.
SOLVED
