this is useless

Posts 1–10 of 10 · Page 1 of 1
this is useless
im bored so i made this
Code:
//Mute//
local function findPlayer( name )
	name = string.lower( name )
	for k,v in pairs( player.GetAll() ) do
		if string.lower( v:SteamID() ) == name then
			return v
		end
		if string.lower( v:UniqueID() ) == name then
			return v
		end
		local nick = string.lower( v:Nick() )
		if string.find( nick, name ) then
			return v
		end
		if v.SteamName then
			local sname = string.lower( v:SteamName() )
			if string.find( sname, name ) then
				return v
			end
		end
	end
end

local function mutePlayer( ply, cmd, args )
	if args[1] then
		if findPlayer( args[1] ) then
			local target = findPlayer( args[1] )
			target:SetMuted( !target:IsMuted() )
			local color = Color( 0, 255, 0 )
			local msgText = "unmuted"
			if target:IsMuted() then
				color = Color( 255, 0, 0 )
				msgText = "muted"
			end
			MsgC( color, target:Nick() .. " has been " .. msgText .. ".\n" )
		end
	end
end
concommand.Add( "muteplayer", mutePlayer )
type in console muteplayer playername to mute them
Looks Great!! Will try it now!
if string.find( nick, name ) then
return v
end

check for multiple occurrences

also this won't work outside of darkrp
haha funny, skid. http : // prntscr. com/7kj8cx <-- print screen of same code on youtube. You are just another paster
you actually took the time to do that
Quote Originally Posted by p100 body shot View Post
you actually took the time to do that
you actually took the time to paste that
Will this mute for everyone or just for you?

and does it mute mic? or chat? or both?

I quess mic and only for you
will only mute anyone that you pick to mute. also it just mutes them for you
NO FOOL YOU USED A FAKING YOUTUBE VIDEO SCRUB
https://www.youtube DOT com/watch?v=TvyrApq7KlM

Quote Originally Posted by p100 body shot View Post
im bored so i made this
Code:
//Mute//
local function findPlayer( name )
	name = string.lower( name )
	for k,v in pairs( player.GetAll() ) do
		if string.lower( v:SteamID() ) == name then
			return v
		end
		if string.lower( v:UniqueID() ) == name then
			return v
		end
		local nick = string.lower( v:Nick() )
		if string.find( nick, name ) then
			return v
		end
		if v.SteamName then
			local sname = string.lower( v:SteamName() )
			if string.find( sname, name ) then
				return v
			end
		end
	end
end

local function mutePlayer( ply, cmd, args )
	if args[1] then
		if findPlayer( args[1] ) then
			local target = findPlayer( args[1] )
			target:SetMuted( !target:IsMuted() )
			local color = Color( 0, 255, 0 )
			local msgText = "unmuted"
			if target:IsMuted() then
				color = Color( 255, 0, 0 )
				msgText = "muted"
			end
			MsgC( color, target:Nick() .. " has been " .. msgText .. ".\n" )
		end
	end
end
concommand.Add( "muteplayer", mutePlayer )
type in console muteplayer playername to mute them
youporn.com is the best site for skidding lua cheats (trust me i know)
Posts 1–10 of 10 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us