Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.52 KB | None | 0 0
  1. hook.Add( "PlayerSay", "ISaid", function( ply, text, team )
  2.     if (string.sub(text, 1, 5) == "/kill") then--if the first 4 letters are /all continue
  3.        
  4.         if(string.len(text) < 6) then
  5.        
  6.         ply:Kill()
  7.        
  8.         end
  9.     else
  10.    
  11. local textt = string.Explode(" ", text)
  12.    
  13. local playerk = textt[2]
  14.  
  15.     for k,v in pairs(player.GetAll())do
  16.        
  17.         if(string.match(string.lower(v:Nick()),playerk))then
  18.        
  19.         v:Kill()
  20.        
  21.         end
  22.     end
  23. end
  24. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement