Here is the new one:
http://unrealsoftware.de/forum_posts.php?post=416012&l#jl
edited 5×, last 22.08.17 04:46:42 pm
removeitemwhich I'm actually not sure about the name at functions.lua. Find it and see how it works, then you're done.
if removeitem(id, itemid, amount) then
removeitemfunction make sure to add them back if not all conditions are met.
msg2(id,"You leveled up!"), change it to
msg(player(id, "name").." leveled up!")
function addexp(id, exp) 	PLAYERS[id].Experience = PLAYERS[id].Experience + exp 	local prevlevel = PLAYERS[id].Level 	while PLAYERS[id].Experience >= EXPTABLE[PLAYERS[id].Level+1] do 		PLAYERS[id].Level = PLAYERS[id].Level + 1 	end 	if prevlevel ~= PLAYERS[id].Level then 		parse('effect "colorsmoke" ' .. player(id, 'x') .. ' ' .. player(id, 'y') .. ' 0 64 0 128 255') 		message(id, "You have leveled up to level " .. PLAYERS[id].Level .. "!") 		parse("sv_sound2 " .. id .. " fun/Victory_Fanfare.ogg") 	end 	updateHUD(id) 	return true end
if prevlevel ~= PLAYERS[id].Level then 	parse('effect "colorsmoke" ' .. player(id, 'x') .. ' ' .. player(id, 'y') .. ' 0 64 0 128 255') 	message(id, "You have leveled up to level " .. PLAYERS[id].Level .. "!") 	parse("sv_sound2 " .. id .. " fun/Victory_Fanfare.ogg") end
message(id, "You have leveled up to level " .. PLAYERS[id].Level .. "!")
msg("You have leveled up to level " .. PLAYERS[id].Level .. "!")
if prevlevel ~= PLAYERS[id].Level then 		parse('effect "colorsmoke" ' .. player(id, 'x') .. ' ' .. player(id, 'y') .. ' 0 64 0 128 255') 		msg("You have leveled up to level " .. PLAYERS[id].Level .. "!") 		parse("sv_sound2 " .. id .. " fun/Victory_Fanfare.ogg") 	end 	updateHUD(id) 	return true end
parse('hudtxt 49 "'..player(id,name)..' has leveled up to '..PLAYERS[id].Level..'!" 320 60 2')
parse("mp_hudscale 2")
function addexp(id, exp) PLAYERS[id].Experience = PLAYERS[id].Experience + exp local prevlevel = PLAYERS[id].Level while PLAYERS[id].Experience >= EXPTABLE[PLAYERS[id].Level+1] do PLAYERS[id].Level = PLAYERS[id].Level + 1 end if prevlevel ~= PLAYERS[id].Level then parse('effect "colorsmoke" ' .. player(id, 'x') .. ' ' .. player(id, 'y') .. ' 0 64 0 128 255') msg(""..player(id,"name").." reached Level "..PLAYERS[id].Level.. "!@C") parse("sv_sound2 " .. id .. " fun/Victory_Fanfare.ogg") end updateHUD(id) return true end