fisheater>nexdick
[highlight](User was banned for this post ("Dumb bump" - Benji))[/highlight]
*whistle*Oh, don't mind me, I'm just hangin' out...
[CODE]function P_Kick(ply, cmd, args)
if(!ply:IsAdmin()) then
print(ply:Name().."tried to access an admin command")
return;
elseif(#args != 2) then --If you don't have two arguments, then return.
return;
end
for k, v in pairs(player.GetAll()) do
if(v:Name() == args[1]) then -- args[1] is the player name
ply:ConCommand("kick "..v:Name());
v:PrintMessage(2," \""..args[2].."\"");--args[2] == your reason
end
end
end
concommand.Add("ply_kick", P_Kick);[/CODE]run the command like this: "ply_kick player reason"
Sorry, you need to Log In to post a reply to this thread.