help me

Runbu73

Участник
Автор темы
123
5
I have this esp skeleton code, it works, but it ignores some players.. I want esp to work on all players

Ícone Verificada pela comunidade

Код:
if aim.CheckBox.teste139[0] then
        for i = 0, sampGetMaxPlayerId() do
            if sampIsPlayerConnected(i) then
                local result, cped = sampGetCharHandleBySampPlayerId(i)
                local color = sampGetPlayerColor(i)
                local aa, rr, gg, bb = explode_argb(color)
                local color = join_argb(255, rr, gg, bb)
                if result then
                    if doesCharExist(cped) and isCharOnScreen(cped) then
                        local t = {3, 4, 5, 51, 52, 41, 42, 31, 32, 33, 21, 22, 23, 2}
                        for v = 1, #t do
                            pos1X, pos1Y, pos1Z = getBodyPartCoordinates(t[v], cped)
                            pos2X, pos2Y, pos2Z = getBodyPartCoordinates(t[v] + 1, cped)
                            pos1, pos2 = convert3DCoordsToScreen(pos1X, pos1Y, pos1Z)
                            pos3, pos4 = convert3DCoordsToScreen(pos2X, pos2Y, pos2Z)
                            renderDrawLine(pos1, pos2, pos3, pos4, 1, color)
                        end
                        for v = 4, 5 do
                            pos2X, pos2Y, pos2Z = getBodyPartCoordinates(v * 10 + 1, cped)
                            pos3, pos4 = convert3DCoordsToScreen(pos2X, pos2Y, pos2Z)
                            renderDrawLine(pos1, pos2, pos3, pos4, 1, color)
                        end
                        local t = {53, 43, 24, 34, 6}
                        for v = 1, #t do
                            posX, posY, posZ = getBodyPartCoordinates(t[v], cped)
                            pos1, pos2 = convert3DCoordsToScreen(posX, posY, posZ)
                        end
                    end
                end
            end
        end
    end
 

MLycoris

На вид оружие массового семяизвержения
Проверенный
1,993
2,185