D3stats/lua/d3stats/sv_network.lua
David Vogel a50c3e0359 Fixes and cleanup
- use Set/GetNWInt()
- put everything ZS related in its own file
- Added team to permissions
- Added font setting
2016-10-07 09:31:59 +02:00

12 lines
295 B
Lua

util.AddNetworkString( "D3Stats_UpdateXP" )
local meta = FindMetaTable( "Player" )
if not meta then return end
-- Send the XP of this (self) player to itself
function meta:D3Stats_Net_UpdateXP()
net.Start( "D3Stats_UpdateXP" )
net.WriteUInt( self:D3Stats_GetXP(), 32 )
net.Send( self )
end