|
|
@ -1,6 +1,6 @@ |
|
|
|
script_name('mafia-tools') |
|
|
|
script_name('mafia-tools') |
|
|
|
script_author("Serhiy_Rubin") |
|
|
|
script_author("Serhiy_Rubin") |
|
|
|
script_version("14.02.2023") |
|
|
|
script_version("15.02.2023") |
|
|
|
|
|
|
|
|
|
|
|
sampev = require 'samp.events' |
|
|
|
sampev = require 'samp.events' |
|
|
|
inicfg = require "inicfg" |
|
|
|
inicfg = require "inicfg" |
|
|
@ -844,6 +844,7 @@ stream_checker.textfuncs = { |
|
|
|
local id, name, rank, afk = string.match(message, '%[(%d+)%] (.+) {C0C0C0}(.+ %[.+%])(.+)') |
|
|
|
local id, name, rank, afk = string.match(message, '%[(%d+)%] (.+) {C0C0C0}(.+ %[.+%])(.+)') |
|
|
|
local result, ped = sampGetCharHandleBySampPlayerId(id) |
|
|
|
local result, ped = sampGetCharHandleBySampPlayerId(id) |
|
|
|
if not result and tonumber(id) ~= getLocalPlayerId() then |
|
|
|
if not result and tonumber(id) ~= getLocalPlayerId() then |
|
|
|
|
|
|
|
name = name:gsub("{......}", "") |
|
|
|
stream_checker.members[name] = { id = id, rank = rank } |
|
|
|
stream_checker.members[name] = { id = id, rank = rank } |
|
|
|
end |
|
|
|
end |
|
|
|
return true |
|
|
|
return true |
|
|
|