@fake <id>
the image is in gfx/fake.png
thanks to anyone who will help
(i also want it to play a sound on sfx/fake.wav)
fakePatch = 'gfx/fake.png' function toTable(txt,match) 	local cmd = {} 	if not match then match = '[^%s]+' end 	for word in string.gmatch(txt,match) do 		table.insert(cmd,word) 	end 	return cmd end function server(id,txt) 	msg2(id,'©000255000[SERVER]: ©255255255'..txt..'.') end function _say(id,txt) 	local p = toTable(txt) 	local cmd = string.lower(p[1]):sub(2) 	if (txt:sub(1,1) == '@' or txt:sub(1,1) == '!') and txt ~= 'rank' then 		if cmd == 'fake' then 			local pl = p[2] 			if pl then 				if player(pl,'exists') then 					-- I fuck your English 					server(id,'What the fuck are you talking about?!') 					server(pl,'What the fuck are you talking about?!') 				else 					server('Player with id '..pl..' does not exsit') 				end 			end 		else 			server('Unknown command: '..cmd) 		end 		return 1 	end end addhook('say','_say',-11)
image("path",x,y,mode,id)
fakeplayer = {} for id = 1, 32 do 	fakeplayer[id] = { 		image = 0, 		shown = false 	} end addhook("say", "sayhook") addhook("attack", "attackhook") function sayhook(id, message) 	if (message:sub(1, 5) == "@fake") then 		local toid = tonumber(message:sub(7, #message)) 		 		if (type(toid) == "number") then 			fakeplayer[toid].image = image("gfx/fake.png", 320, 240, 2, toid) 			 			parse("sv_sound2 " .. toid .. " \"fake.wav\"") 			 			fakeplayer[toid].shown = true 		end 	end end function attackhook(id) 	if (fakeplayer[id].shown) then 		freeimage(fakeplayer[id].image) 		 		fakeplayer[id].image = 0 		fakeplayer[id].shown = false 	end end
if player(id,"usgn") == 123456 then
if (player(id, "usgn") == 99153) then
end