-- TheSilencerPL - To make it better, faster and less aggravating
-- for the game, store the XP locally and reuse it
function et_ClientSpawn(clientNum, revived, teamChange, restoreHealth)
local valXP = getXP(clientNum)
if valXP >= lvl1xp and valXP < lvl2xp then
setlevel(clientNum,1,lvl1xp)
elseif valXP >= lvl2xp and valXP < lvl3xp then
setlevel(clientNum,2,lvl2xp)
elseif valXP >= lvl3xp then
setlevel(clientNum,3,lvl3xp)
end
end