From 02bb9415317d4aceeb329cf18dbefb9528867c93 Mon Sep 17 00:00:00 2001 From: AlmTech Date: Thu, 3 Oct 2019 16:33:11 +0200 Subject: [PATCH] Func: GetPlayerChars, bug fix --- gamemode/engine/lib/server/sv_character.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gamemode/engine/lib/server/sv_character.lua b/gamemode/engine/lib/server/sv_character.lua index 30c6272..ddd7dcc 100644 --- a/gamemode/engine/lib/server/sv_character.lua +++ b/gamemode/engine/lib/server/sv_character.lua @@ -77,8 +77,10 @@ end function Quantum.Server.Char.GetPlayerChars( pl ) local chars = {} - for id, char in pairs( Quantum.Server.Char.Players ) do - chars[id] = char + local strtbl = {} + for id, char in pairs( Quantum.Server.Char.Players ) do + strtbl = string.Split( id, ";" ) + if( strtbl[1] == pl:SteamID() ) then chars[id] = char end end return chars end \ No newline at end of file