Combreal icon

moni.lua

Combreal | PRO | 02/21/14 12:02:08 AM UTC | 0 ⭐ | 1150 👁️ | Never ⏰ | []
Lua |

1.16 KB

|

None

|

0 👍

/

0 👎

-- Monica welcome message --
-- Unlimited rockets --
-- Immune failing --
 
first_message = "Welcome into the Witch"
second_message = "Prepare to die rat"
 
function GetRequiredVersion()
    return 200
end
 
 
function OnScriptLoad(processid, game, persistent) end
 
function OnPlayerJoin(player)
    privatesay(player, first_message)
    privatesay(player, second_message)
end
 
function OnPlayerSpawnEnd(player, m_objectId)
    registertimer(1000, "InfiniteAmmo", player)
end
 
 
function InfiniteAmmo(id, count, player)
    local m_player = getplayer(player)
    if m_player then
        local objId = readdword(m_player, 0x34)
        local m_object = getobject(objId)
        if m_object then
            for i = 0,3 do
                local weapId = readdword(m_object, 0x2F8 + (i * 4))
                local m_weapon = getobject(weapId)
                if m_weapon then
                    writeword(m_weapon, 0x2B6, 9999)
                    writeword(m_weapon, 0x2B8, 9999)
                    updateammo(weapId)
                end
            end
 
            return true
        end
    end
 
    return false
end
 
function OnDamageLookup(receiving, causing, mapId, tagdata)
    local tag_name = gettaginfo(mapId)
    if tag_name == "globals\\failing damages" then
        return false
    end
    return true
end

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎