Xp for deathrun

Does anyone know if there is any possible way to get xp on deathrun?

I’ve never played Deathrun before but if there isn’t a current XP system you can just log a players experience to a log and create a NW int for the player.

Example:




function SaveExp()

	for k,v in pairs( player.GetAll() ) do
		local experience = v:GetNWInt("Exp", 0)
		file.Append("Deathrun/experience.txt", v:SteamID().." "..experience)
	end

end

function ReadExp( ply )

	local contents = file.Read("deathrun/exp.txt", "DATA")

	for k,v in pairs( string.Explode("
", contents) ) do
		local split = string.Explode(" ", v)
		if string.Trim(split[1]) == ply:SteamID() then
			ply:SetNWInt("Exp", tonumber(split[2])
		end
	end
	
end


Sorry about that, I used adfly.

[QUOTE=
XP:
http://adf.ly/1672510/xpsystem[/QUOTE]

you can’t set an adfly link on the forums

Did my code work for you?