Thanks in Advance
Ajmin
edited 1×, last 05.12.14 02:14:16 pm
PlayerLastUse = {} addhook("use","UseTwice") function UseTwice(id, event) 	if PlayerLastUse[id] and os.clock() - PlayerLastUse[id] < 0.5 then 		-- Open the menu 	end 	PlayerLastUse[id] = os.clock() end
pressInterval = 600 pPresses = {} for i = 1, 32 do pPresses[id] = 0 end function pPress(id, event) 	if event == 0 then 		pPresses[id] = pPresses[id] + 1 		 		freetimer(pressInterval, "kPresses", id) 		timer(pressInterval, "kPresses", id) 		 		if pPresses[id] >= 2 then -- You can change it for example you want penta press O.o 			-- Do da stuff 		end 	end end function kPresses(id) 	pPresses[id] = 0 end addhook("use","pPress")