Get client XP with LUA ?


(ETdemin) #1

Hello

For example I have try on ETPub :

function et_ClientSpawn( clientNum, revived, teamChange, restoreHealth )
xpplayer = et.gentity_get(clientNum, "ps.persistant", 0)
end

I always get 0

Is there another way to get player XP ?

Thanks you


(phisherman) #2

[QUOTE=ETdemin;390750]Is there another way to get player XP ?[/QUOTE]After looking up the etpub source, this might work:

et.gentity_get(id,"ps.stats",8)