Maybe you need to add a button to the menu which shows a player the number of kills he did that particular day.
Step 1 Goto sys/lua/autorun/Main.lua and move to the 22nd line and insert your particular button title that need to be added. In this case it should look like this:
1
daymenu="Day Menu,Pinned messages,Set reminder,Set as my B'day,Show my Kills"
This will add a new button to the UI.
Step 2 Now you will have to add the function for this specific button. Move to sys/lua/functions. Create a .lua file with any title.
Step 3 Write a function in it with this particular format.
where b (without quotes) is the button number you are adding. In our case we already had 3 buttons and we are about to add the 4th button so the function should be:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
function daymenubutton4(id)
----dayID[id] and monthID[id] are tables which will give u the particular day and month number of the button which player pressed.but for accuracy dates are always saved as 2 digits. even if a day is 7,the number returned will be "07". So inorder to get that we add this thingy:
local month = 0
local dayno = 0
	if monthID[id]-10 >= 0 then
		month=monthID[id]
	else
		month="0"..monthID[id]..""
	end
	if dayID[id]-10 >= 0 then
		dayno=dayID[id]
	else
		dayno="0"..dayID[id]..""
	end
	if exists("sys/lua/Data/"..player(id,"usgn").."/"..dayno..""..month..""..os.date('%Y')..".lua") then
		local data,err = table.load("sys/lua/Data/"..player(id,"usgn").."/"..dayno..""..month..""..os.date('%Y')..".lua") --Salt load
			if data then
				viewing[id]=1
					mymessages[id] = data
			end
					msg2(id,"\169000255000Kills "..mymessages[id][23].."") --- Message which shows the kills
					resetmymsg(id) -- A function to load back things to the default.
	end
end
Here we took mymessages[id][23] as our table. Till 22 is already utilized. Also we have two sets of table. mymessages[id] aswell as playerdata[id]. mymessages is used to create datas for a particular day. and playerdata[id] is used to save permanent datas. To make it more clear here we need to show player the kills he had done in a particular day so we use mymessages[id] if it was to show him his total kills since he joined the server we use playerdata[id].
Now we need to make a function and hook with kill hook.
1
2
3
4
5
6
7
8
9
10
11
12
addhook("kill","_kill")
function _kill(id)
if viewing[id]==0 then --- add this condition always for avoiding data reset accidently.
mymessages[id][23]=mymessages[id][23]+1
if isdir("sys/lua/Data/"..player(id,"usgn").."") then
			table.save(id,mymessages[id],"sys/lua/Data/"..player(id,"usgn").."/"..os.date('%d%m%Y')..".lua")
			else
			os.execute('mkdir "sys/lua/Data/'..player(id,"usgn")..'"')
			table.save(id,mymessages[id],"sys/lua/Data/"..player(id,"usgn").."/"..os.date('%d%m%Y')..".lua")
			end
end
end