السلام عليكم
واجهت مشكلة
ابي الي فاز من الجدول يعلن مين فاز !
function checkForWinner(cHk)
if cHk then
TopKill = {}
end
if not isTimer(standByMission) and not isTimer(startTheMission) then
if #BoxTable > 0 then
if not cHk then
exports.TopBarChat:sendClientMessage("Win In Boxing Mission", root, 255, 255, 0)
sortTop()
if sortedTopKill[1] then exports.TopBarChat:sendClientMessage(""..sortedTopKill[1][1]..": "..sortedTopKill[1][2], root, 255, 0, 255) end
exports.TopBarChat:sendClientMessage("The Boxing Mission was Draw!", root, 255, 100, 0)
end
for _, p in ipairs (BoxTable) do
textDisplayRemoveObserver(Display, p)
if not cHk then
givePlayerMoney(p, 25000)
end
end