Guest User

Untitled

a guest
Oct 7th, 2013
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.44 KB | None | 0 0
  1. local kickstrings = { "test", "these", "strings" } --Make sure these are ALL lowercase
  2.  
  3. function NameKicker( ply )
  4.  
  5.     local pname = string.lower( ply:Nick() )
  6.    
  7.     for k, v in pairs( kickstrings ) do
  8.    
  9.         if string.find( pname, v ) then
  10.        
  11.             ULib.kick( ply, "Auto-Kicked for having the string " .. v .. " in your name. Please change your name and rejoin" )
  12.            
  13.         end
  14.    
  15.     end
  16.    
  17. end
  18. hook.Add( "PlayerInitialSpawn", "NameKicker", NameKicker )
Advertisement
Add Comment
Please, Sign In to add comment