mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-16 13:23:46 +03:00
Upload
This commit is contained in:
27
addons/vyhub-gmod/lua/vyhub/client/cl_ply.lua
Normal file
27
addons/vyhub-gmod/lua/vyhub/client/cl_ply.lua
Normal file
@@ -0,0 +1,27 @@
|
||||
--[[
|
||||
| This file was obtained through the combined efforts
|
||||
| of Madbluntz & Plymouth Antiquarian Society.
|
||||
|
|
||||
| Credits: lifestorm, Gregory Wayne Rossel JR.,
|
||||
| Maloy, DrPepper10 @ RIP, Atle!
|
||||
|
|
||||
| Visit for more: https://plymouth.thetwilightzone.ru/
|
||||
--]]
|
||||
|
||||
local meta_ply = FindMetaTable("Player")
|
||||
|
||||
VyHub.user_id = VyHub.user_id or nil
|
||||
|
||||
function meta_ply:VyHubID()
|
||||
if IsValid(self) then
|
||||
if self == LocalPlayer() then
|
||||
return VyHub.user_id
|
||||
else
|
||||
MsgN("ERROR: Cannot get VyHubID of other users on the client side.")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
net.Receive("vyhub_user_id", function ()
|
||||
VyHub.user_id = net.ReadString()
|
||||
end)
|
||||
Reference in New Issue
Block a user