- Версия MoonLoader
- .026-beta
Hey sorry for english again.
Is there any way to catch a big objects between two players? I am using this for a triggerbot. If yes, it shouldnt shoot (If the object is covering the player).
This is my attempt. It gives me other objects, and not those if are some inbetween.
Is there any way to catch a big objects between two players? I am using this for a triggerbot. If yes, it shouldnt shoot (If the object is covering the player).
This is my attempt. It gives me other objects, and not those if are some inbetween.
Код:
function TriggerBot ()
local result, target = getCharPlayerIsTargeting (playerHandle)
if result then
local result, id = sampGetPlayerIdByCharHandle (target)
if result then
local result = isCharInAnyCar (PLAYER_PED)
if not result then
local result = isPlayerDead (PLAYER_PED)
local resultvictim = isPlayerDead (target)
if not result and not resultvictim then
local object = sampGetObjectHandleBySampId (id)
print ("Objecthandle:" .. object)
local objectId = sampGetObjectSampIdByHandle (object)
print ("ObjectID:" .. objectId)
local modelId = getObjectModel (object)
print ("ModelID:" .. modelId)
local result, positionX, positionY, positionZ = getObjectCoordinates (object)
print ("Objects X / Y / Z Coordinates:" .. positionX .. "|" .. positionY .. "|" .. positionZ)
local myX, myY, myZ = getCharCoordinates (PLAYER_PED)
print ("My X / Y / Z Coordinates:" .. myX .. "|" .. myY .. "|" .. myZ)
local victimX, victimY, victimZ = getCharCoordinates (target)
print ("Victims X / Y / Z Coordinates:" .. victimX .. "|" .. victimY .. "|" .. victimZ)
print ("")
local lol = 0xB73458
lol = lol + 34
local randomCooldown = math.random (10, 50)
wait (randomCooldown)
writeMemory (lol, 4, 255, 0)
wait (100)
local int = readMemory (0xB6F3B8, 4, 0)
int = int + 0x79C
writeMemory (int, 4, 0, 0)
end
end
end
end
end
[/ CODE] [/ CODE]
Последнее редактирование: