Help help me lua file edit

SANTOS

New member
Joined
Dec 10, 2024
Messages
4
Reaction score
0
can same one edit this lua script its work in free rome server but whene i join roleplay server they damag only 21 and stop help please
 

Attachments

  • ft.lua
    909 bytes · Views: 1

fsociety

Active member
Joined
Dec 6, 2016
Messages
79
Reaction score
5
can same one edit this lua script its work in free rome server but whene i join roleplay server they damag only 21 and stop help please
its probably because it sends too many packets since its in a loop with a 1ms delay, the server most likely rejects the damage (since too many packets within a short time period)

JavaScript:
local pidoras = false
local targetId = -1

function main()
    if not isSampLoaded() or not isSampfuncsLoaded() then return end
    while not isSampAvailable() do wait(100) end
    sampAddChatMessage("copyright:Sheva", -1)
    sampAddChatMessage("more cheat contacte wk1y on dc", -1)
    sampRegisterChatCommand("ft", function(id)
        if id and tonumber(id) then
            targetId = tonumber(id)
            pidoras = true
            sampAddChatMessage("u nick: " .. targetId, -1)
        else
            pidoras = false
            targetId = -1
            sampAddChatMessage("u stop nicking.", -1)
        end
    end)

    while true do
        wait(0)
        if pidoras and targetId ~= -1 then
            printStringNow("~Y~Target Player ID: ~S~" .. targetId, 1500)
            sampSendGiveDamage(targetId, 5.28, 0, 3)
            wait(250)
        end
    end
end

Don't know how well it'll work you can keep increasing the delay from 250 to 500 if its still too fast
 

SANTOS

New member
Joined
Dec 10, 2024
Messages
4
Reaction score
0
its probably because it sends too many packets since its in a loop with a 1ms delay, the server most likely rejects the damage (since too many packets within a short time period)

JavaScript:
local pidoras = false
local targetId = -1

function main()
    if not isSampLoaded() or not isSampfuncsLoaded() then return end
    while not isSampAvailable() do wait(100) end
    sampAddChatMessage("copyright:Sheva", -1)
    sampAddChatMessage("more cheat contacte wk1y on dc", -1)
    sampRegisterChatCommand("ft", function(id)
        if id and tonumber(id) then
            targetId = tonumber(id)
            pidoras = true
            sampAddChatMessage("u nick: " .. targetId, -1)
        else
            pidoras = false
            targetId = -1
            sampAddChatMessage("u stop nicking.", -1)
        end
    end)

    while true do
        wait(0)
        if pidoras and targetId ~= -1 then
            printStringNow("~Y~Target Player ID: ~S~" .. targetId, 1500)
            sampSendGiveDamage(targetId, 5.28, 0, 3)
            wait(250)
        end
    end
end

Don't know how well it'll work you can keep increasing the delay from 250 to 500 if its still too fast
yes its work whene i do 200 delay but its too slow can u you raise the damage please
 

fsociety

Active member
Joined
Dec 6, 2016
Messages
79
Reaction score
5
yes its work whene i do 200 delay but its too slow can u you raise the damage please


JavaScript:
sampSendGiveDamage(targetId, 5.28, 0, 3)

You can change the 5.28 to something else, if the server is configured properly it will reject the damage or correct it, meaning it won't work. You can try though i don't know what kind of server you're on
 

SANTOS

New member
Joined
Dec 10, 2024
Messages
4
Reaction score
0
JavaScript:
sampSendGiveDamage(targetId, 5.28, 0, 3)

You can change the 5.28 to something else, if the server is configured properly it will reject the damage or correct it, meaning it won't work. You can try though i don't know what kind of server you'reon
ok brother i will try thank u
moderator u can lock this topic now
 
Top