Drawing effect per player.

I have made a effect but when triggered it turns the effect on for everyone how do i get it to work only for the player that triggers it? here is my code

in cl_init


local tab = {
	["$pp_colour_addr"] = 0,
	["$pp_colour_addg"] = 0,
	["$pp_colour_addb"] = 0,
	["$pp_colour_brightness"] = -0.04,
	["$pp_colour_contrast"] = 1.35,
	["$pp_colour_colour"] = 5,
	["$pp_colour_mulr"] = 0,
	["$pp_colour_mulg"] = 0,
	["$pp_colour_mulb"] = 0
}

SetGlobalBool("effect", false)
function GM:RenderScreenspaceEffects() if GetGlobalBool("effect") == true then
	DrawColorModify( tab ) 
	DrawSobel( 0.5 ) 
	DrawMotionBlur( 0.03,1,0)
end
end

i trigger it like this from a serverside function


SetGlobalBool("ishi", true)
	timer.Simple( 30, function() SetGlobalBool("effect", false) end )

[lua]–client
local enable = false
net.Receive(“SomeDescriptiveName”, function() enable = net.ReadBool() end)

– in RenderScreenspaceEffects:
if enable then
–whatever
end

–server
util.AddNetworkString(“SomeDescriptiveName”)

–when you want to enable this for ply
net.Start(“SomeDescriptiveName”)
net.WriteBool(true)
net.Send(ply)[/lua]

Untested.

this gives me Tried to use a NULL entity! what did i do wrong? & thanks for the help


--in init.lua i put 
util.AddNetworkString("ishi")

--in cl_init.lua i put
local tab = {
	["$pp_colour_addr"] = 0,
	["$pp_colour_addg"] = 0,
	["$pp_colour_addb"] = 0,
	["$pp_colour_brightness"] = -0.04,
	["$pp_colour_contrast"] = 1.35,
	["$pp_colour_colour"] = 5,
	["$pp_colour_mulr"] = 0,
	["$pp_colour_mulg"] = 0,
	["$pp_colour_mulb"] = 0
}
local enable = false
net.Receive("ishi", function() enable = net.ReadBool() end)

function GM:RenderScreenspaceEffects() if enable then
	DrawColorModify( tab ) --Draws Color Modify effect
	DrawSobel( 0.5 ) --Draws Sobel effect
	DrawMotionBlur( 0.03,1,0)
end
end

--then i call it like this 

net.Start("ishi")
 net.WriteBool(true)
net.Send(ply)

maybe need to include self somewhere?

[editline]25th April 2016[/editline]

never mind im dumb i needed to do net.Send(self.Owner) & thank you so much this helped me alot.