• darkrp deaths console
    2 replies, posted
i have a bit of a problem with darkrp, whenever anybody is killed it doesnt print it like usually on the console "test1 was killed by test2 with weapon_test" and basically i have no idea what causes this as this just started happening recently, i will post any info needed if asked. its quite the problem as i havent see anybody else with this problem, i have tried adding this lua code to autorun ([url]http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/indexbdc5.html[/url]) but it was of no use... and there was some else that i tried but i dont remember it anymore. [highlight](User was banned for this post ("darkrp thread" - garry))[/highlight]
it's outdated code. Replace victim:GetName() with victim:Name().
[QUOTE=jack10685;40317512]it's outdated code. Replace victim:GetName() with victim:Name().[/QUOTE] i tried to change the code but it was of no use, it might be that im putting the lua code in a place where its not called everytime a player dies(i have tried putting it in lua/autorun and lua/autorun/server) but that didnt work, i have a feeling that it has something to do with darkrp as theres a code that i think is somehow related to this in gamemode_functions [QUOTE]local KillerName = (killer:IsPlayer() and killer:Nick()) or tostring(killer) local WeaponName = IsValid(weapon) and ((weapon:IsPlayer() and IsValid(weapon:GetActiveWeapon()) and weapon:GetActiveWeapon():GetClass()) or weapon:GetClass()) or "unknown" if IsValid(weapon) and weapon:GetClass() == "prop_physics" then WeaponName = weapon:GetClass() .. " (" .. (weapon:GetModel() or "unknown") .. ")" end if killer == ply then KillerName = "Himself" WeaponName = "suicide trick" end DB.Log(ply:SteamName() .. " was killed by " .. KillerName .. " with a " .. WeaponName, nil, Color(255, 190, 0)) end[/QUOTE] and im not sure if that is not called or it just doesnt work anymore, i can post the entire gamemode_functions if needed [editline]18th April 2013[/editline] oh and i should propably mention that the server console does say that someone was killed by someone with something but it doesnt show on the client [editline]18th April 2013[/editline] this is what it says [QUOTE]ServerLog: jyrki5000 (STEAM_0:0:28079983) Got killed by jyrki5000 with a player[/QUOTE]
Sorry, you need to Log In to post a reply to this thread.