• GEtting "stripped" after dying three times. darkRP
    0 replies, posted
Here's the problem: I die once = respawn normally I die twice = respawn normally I die three times = spawn with no phys gun, grav gun, anything. It's like i'm being "Stripped" (ULX command to remove players items) after every three deaths. Where could i change this in my darkrp server? I must have changed a file somewhere that is causing it. Also, there's no errors in server console or ingame console. Please help me, i really need it. EDIT: Also, it could be compared to being arrested every time. The same effect but you're aren't actually arrested. There's no hint that says "NAME has been arrested" or anything like that. Also he is not recognized by the server as arrested because i cannot unarrrest him. EDIT: I've figured out, it's ULX. I've got through every last LUA file and this is the closest thing i found to something that could fix it. [CODE]function ULib.getSpawnInfo( player ) local result = {} local t = {} player.ULibSpawnInfo = t t.health = player:Health() t.armor = player:Armor() if player:GetActiveWeapon():IsValid() then t.curweapon = player:GetActiveWeapon():GetClass() end local weapons = player:GetWeapons() local data = {} for _, weapon in ipairs( weapons ) do printname = weapon:GetClass() data[ printname ] = {} data[ printname ].clip1 = weapon:Clip1() data[ printname ].clip2 = weapon:Clip2() data[ printname ].ammo1 = player:GetAmmoCount( weapon:GetPrimaryAmmoType() ) data[ printname ].ammo2 = player:GetAmmoCount( weapon:GetSecondaryAmmoType() ) end t.data = data end -- Helper function for ULib.spawn() local function doWeapons( player, t ) if not player:IsValid() then return end -- Drat, missed 'em. player:StripAmmo() player:StripWeapons() for printname, data in pairs( t.data ) do player:Give( printname ) local weapon = player:GetWeapon( printname ) weapon:SetClip1( data.clip1 ) weapon:SetClip2( data.clip2 ) player:SetAmmo( data.ammo1, weapon:GetPrimaryAmmoType() ) player:SetAmmo( data.ammo2, weapon:GetSecondaryAmmoType() ) end if t.curweapon then player:SelectWeapon( t.curweapon ) end end --[[ Function: spawn Enhanced spawn player. Can spawn player and return health/armor to status before the spawn. (Only IF ULib.getSpawnInfo was used previously.) Clears previously set values that were stored from ULib.getSpawnInfo. Parameters: ply - The player to grab information for. bool - If true, spawn will set player information to values stored using ULib.SpawnInfo Returns: Spawns player. Sets health/armor to stored defaults if ULib.getSpawnInfo was used previously. Clears SpawnInfo table afterwards. ]] function ULib.spawn( player, bool ) player:Spawn() if bool and player.ULibSpawnInfo then local t = player.ULibSpawnInfo player:SetHealth( t.health ) player:SetArmor( t.armor ) timer.Simple( 0.1, function() doWeapons( player, t ) end ) player.ULibSpawnInfo = nil end end [/CODE] I've tried changing everything there. What you see above is the default version of the code. I honestly don't know what to do. EDIT: It is ULIB in ULX. I've tried updating, didn't work. Tried using the SVN version, didn't work. Tried downgrading, didn't work. I'm about to find another admin addon.
Sorry, you need to Log In to post a reply to this thread.