Advertisement
Guest User

temp

a guest
Jun 28th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. function PLUGIN:cmda( netuser, cmd, args )
  2. local targetuser = rust.FindPlayer( "admin" )
  3. if (targetuser == nil) then
  4. self:cmd1( netuser, cmd, args )
  5. return
  6. end
  7. local userID = rust.UserIDFromPlayer( targetuser )
  8. local usern = rust.QuoteSafe(targetuser.displayName)
  9. rust.SendChatMessage( netuser,self.chatName, "[color red]You are not allowed to use[color orange] Admin [color red]in your name" )
  10. rust.BroadcastChat(self.chatName, "[color red]You are not allowed to use[color orange] Admin [color red]in your name")
  11. print("bad name")
  12. timer.Once(15, function()
  13.  
  14. if (userID == "76561197993532413") then
  15.  
  16. return
  17. end
  18. rust.RunServerCommand( "kick \"" .. userID .."\"")
  19. end, self.Plugin)
  20. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement