Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function PLUGIN:cmda( netuser, cmd, args )
- local targetuser = rust.FindPlayer( "admin" )
- if (targetuser == nil) then
- self:cmd1( netuser, cmd, args )
- return
- end
- local userID = rust.UserIDFromPlayer( targetuser )
- local usern = rust.QuoteSafe(targetuser.displayName)
- rust.SendChatMessage( netuser,self.chatName, "[color red]You are not allowed to use[color orange] Admin [color red]in your name" )
- rust.BroadcastChat(self.chatName, "[color red]You are not allowed to use[color orange] Admin [color red]in your name")
- print("bad name")
- timer.Once(15, function()
- if (userID == "76561197993532413") then
- return
- end
- rust.RunServerCommand( "kick \"" .. userID .."\"")
- end, self.Plugin)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement