help with the script

yoshishi

Новичок
Автор темы
14
0
Версия MoonLoader
.026-beta
Help me add this condition. "require("memory").getint8(getCharPointer(playerPed) + 0x528, false) ~= 19"

the condition is evaluated only if autovest. General.ddmode is false. I'm new to this and still learning.

Форматирование (BB-код):
if autovest. General.autovest and timer <= localClock() - _last_vest and not specstate and select(2, getSampfuncsGlobalVar("HideMe_check")) == 0 and
        select(2, getSampfuncsGlobalVar("aduty")) == 0 then
            if _you_are_not_bodyguard then
 timer = autovest. General.ddmode and 5 or 10
                for PlayerID = 0, sampGetMaxPlayerId(false) do
                    local result, playerped = sampGetCharHandleBySampPlayerId(PlayerID)
                    if result and not sampIsPlayerPaused(PlayerID) then
                        local myX, myY, myZ = getCharCoordinates(ped)
                        local playerX, playerY, playerZ = getCharCoordinates(playerped)
                        local dist, pColor = getDistanceBetweenCoords3d(myX, myY, myZ, playerX, playerY, playerZ), sampGetPlayerColor(PlayerID)
 if (autovest. General.ddmode and tostring(dist) or dist) < (autovest. General.ddmode and tostring(0.9) or 6) then
                            if pColor ~= 2507262 and pColor ~= 9276927 and pColor ~= 1865651 and pColor ~= 16745090 then
                                if sampGetPlayerArmor(PlayerID) < 48 and sampGetPlayerAnimationId(playerid) ~= 746 then
                                    if has_number(skins, getCharModel(playerped)) then
 if autovest. General.ddmode then
                                            sampSendChat('/guardnear')
                                        else
                                            sampSendChat("/guard " .. PlayerID .. " 200")
                                        end
                                        _last_vest = localClock()
                                    end
                                end
                            end
                        end
                    end
                end
            end
        end