Hello friends, help me.
The essence of my problem is.
That generating these values all works, but it is synchronized in sv.db
How do I make it so that the values are stored in the folder data
Thank you in advance;)
if SERVER then
function pmeta:MakeDoom()
local DOOM_t = {"D","O","O","M"}
for _,name in pairs ( DOOM_t ) do
if self:GetPData(name,0) == 0 then
self:SetPData(name,math.random(3,10)) self:SetNetworkedString(name,self:GetPData(name,"error!"))
else
self:SetNetworkedString(name,self:GetPData(name,"error!"))
end
end
for _,k in pairs ( self:GetDOOM() ) do
timer.Create("DoomTimer_Spawn".._,0.1,1, k.func )
end
end
hook.Add("PlayerInitialSpawn","Pepboy_Doom_Spawn",function(ply)
ply:MakeDoom()
end)
hook.Add("PlayerSpawn","Doom",function(ply)
if IsValid( ply ) then
ply:MakeDoom()
end
end)
end
My Steam Profile - [url]http://steamcommunity.com/id/kr4mpus/[/url]
[editline]25th April 2017[/editline]
this code is here [url]https://pastebin.com/Sz0gjTug[/url]
Sorry, you need to Log In to post a reply to this thread.