D3stats/lua/d3stats/sv_network.lua

12 lines
285 B
Lua
Raw Normal View History

util.AddNetworkString("D3stats_UpdateXP")
2016-10-05 12:30:35 +00:00
local meta = FindMetaTable("Player")
2016-10-05 12:30:35 +00:00
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)
2016-10-05 12:30:35 +00:00
end