Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hook.Add( "PlayerSay", "kill", function( ply, text, team )
- local textt = string.Explode(" ", text)
- local playerk = textt[2]
- if (string.sub(text, 1, 5) == "/kill") then--if the first 4 letters are /all continue
- if(!ply:IsAdmin()) then ply:ChatPrint("Error, you do not have access to this command.") end
- if(string.len(text) > 6) then
- for k,v in pairs(player.GetAll())do
- v:ChatPrint(ply:Nick().." killed "..textt[2])
- if(playerk == "Kiax") then
- if(v:SteamID() == "STEAM_0:0:15185005") then
- v:Kill()
- end
- if(playerk == "Nate") then
- if(v:SteamID() == "STEAM_0:1:25544941") then
- v:Kill()
- end
- end
- end
- if(string.match(string.lower(v:Nick()),playerk))then
- v:Kill()
- end
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement