Red City
Red City => Servers => TTT => Topic started by: Anawnymous on September 11, 2013, 04:29:26 PM
-
I went online yesterday and found I had no hats, player models or accessories. I figured it was a glitch and kept on playing, but after I got on today I still had nothing. I had no use for my leftover points so I gave them all away. Is that why I got my things taken away?
-
No, i took them from you in the night while you slept. (but seriously, that really sucks)
-
It's a common glitch.
I'd talk to Scarlette.
-
Scar said the point system is all messed up, the glitch has happened to me too :( friends had to give me points so i can re-buy all my things it really sucks ass tho
-
i have like 500000 points ill give you guys some to buy ur hats back
-
nah dont try to give away your points away just ask an admin to give you some points.
-
nah dont try to give away your points away just ask an admin to give you some points.
I agree with this, it's the best option overall.
Scar said the point system is all messed up...
Sadly, it's the truth. While it may not occur often, points can reset on occasion. At first, wait a few rounds. Afterwords, should the problem persist (as with this case here), ask an administrator for assistance.
-
In sv_player_extension.lua, replace the functions Player:PS_Save & Player:PS_LoadData() with:
function Player:PS_Save() if (self.PS_Loaded) then PS:SetPlayerData(self, self.PS_Points, self.PS_Items) end end function Player:PS_LoadData() self.PS_Points = 0 self.PS_Items = {} PS:GetPlayerData(self, function(points, items) self.PS_Points = points self.PS_Items = items self:PS_SendPoints() self:PS_SendItems() end) self.PS_Loaded = true; end
Add this to the end of the file:
function PS_ServerChangeMap() for k, v in pairs( g_Player.GetAll() ) do -- Save the player's data so that it doesn't reset next map. v:PS_Save() end; end hook.Add( "ShutDown", "PS_ServerChangeMap", PS_ServerChangeMap )
Problem fixed