Jump to content

kashtesov

Members
  • Posts

    338
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by kashtesov

  1. We with my friend try make global mod converter, LOL, and it works.

    It read GTA:SA files, unpack .IMG, unpack. COL packages, convert .IPL to .Lua code and collect 2 resources for MTA:SA:

    - Map resource.

    - Object replace resource.

    What finally:

    - .IMG unpacker.

    - .COL unpacker.

    - Map converter.

    - Objects converter.

    What not finally:

    - Water positions converter.

    - Night time objects converter.

    - Animation objects converter.

    - Handling converter.

    - Car converter.

    - Weapons converter.

    - Skins converter.

    - Handling converter.

    - Tymecyc converter.

    Application in development, when will be released - nobody know. :)

    *For test we use not United, not Vice City 2 SA (it very easy). We use Vice City Stories PC, it very good quality mod, and manual port this will be very hard.

    *Bugs in console - disabled few objects in IDE (breakable props) and nighttime objects.

    *Collision bug on video - bug modification.

    *Water bug on video - just my error ;3

  2. :oops:

    local chatRadius = 50 
      
    local groups = { 
        {"CoOwner", "#ff0000✪#00ff70CO-OWNER#ff0000✪", "#f7fc00", chatRadius}, -- can change group chat raduis 
        --can add here your groups settings 
    } 
      
    addEventHandler("onPlayerChat", root, 
        function chatbox(text, msgtype) 
            local tab 
            local account = getPlayerAccount(source) and getAccountName(getPlayerAccount(source)) or "*" 
            local name = getPlayerName(source) 
            local color = string.format("#%02X%02X%02X", getPlayerNametagColor(source)) 
             
            for k,i in ipairs(groups) do 
                if isObjectInACLGroup("user."..account, aclGetGroup(i[1])) then 
                    tab = i 
                    break 
                end 
            end 
             
            local x, y, z = getElementPosition(source); 
            local chatSphere = createColSphere(x, y, z, tab[4] or chatRadius) 
            local nearbyPlayers = getElementsWithinColShape(chatSphere, "player") 
            destroyElement(chatSphere) 
             
            if (msgtype == 0) then 
                cancelEvent() 
            end  
             
            for index, nearbyPlayer in ipairs(nearbyPlayers) do          
                outputChatBox((tab[2] or "")..color.."".. name .. ":"..(tab[3] or "").." "..text, nearbyPlayer, 255, 255, 255, true) 
                outputServerLog("CHAT: "..(tab[2] or "").." "..name..": "..text) 
            end 
        end 
    ) 
    

  3. ...
    local positions = { 
       -- {x,y,z[,rot]}, 
    } 
      
    function randomSpawn(player) 
        local postab = positions[math.random(1,#positions)] 
        local x,y,z,rot = unpack (postab, 1, 3) 
        local rot = postab[4] or 0 
        spawnPlayer(player,x,y,z,rot) 
    end 
      
    

    You right ;) i hope both variants will be useful for topic author :roll:

  4. You can use createColPolygon to make zones for drift. But you should add checks, player inside any zone or no.

    You can create zone and add event onColShapeHit/Leave, edit player element data

    setElementData(player,"inzone",true/false) 
    

    and use it

    if getElementData(player,"inzone") then  
    --drift work  
    end 
    

    or i somewhat not understand and you wanna not this :D

  5. local positions = { 
       -- {x,y,z[,rot]}, 
    } 
      
    function randomSpawn(player) 
        local postab = positions[math.random(1,#positions)] 
        local x,y,z,rot = postab[1],postab[2],postab[3],postab[4] or 0 
        spawnPlayer(player,x,y,z,rot) 
    end 
      
    

    call random spawn from join, wasted events

  6. lol, maybe it will works

    --client 
    function triggerClientEventFromClient(sendto,event,baseelement,...) 
    triggerServerEvent("triggerClientEventFromClient",resourceRoot,baseelement,sendto,event,...) 
    end 
      
    --server 
    addEvent("triggerClientEventFromClient",true) 
    function triggerClientEventFromClient(baseelement,sendto,event,...) 
    triggerClientEvent(sendto,event,baseelement,...) 
    end 
    addEventHandler("triggerClientEventFromClient",getRootElement(),triggerClientEventFromClient) 
    

  7. KICK: ClosedElbow63 was kicked by Console [Reason: AC #4 8DA6.fe0121 [Trainer]]

    KICK: joaouchira21 was kicked by Console [Reason: AC #4 8DA6. [Trainer]]

    KICK: FlippantPad77 was kicked by Console [Reason: AC #4 8DA6.fe0121 [Trainer]]

    KICK: [GTO]San4es was kicked by Console [Reason: AC #4 TRAINER]

    https://wiki.multitheftauto.com/wiki/AntiCheat_Codes

    "Capital letters in the message are for tagging particular trainers"

    Hello, how i can know, what means 8DA6.fe0121 and 8DA6. ?

    https://wiki.multitheftauto.com/wiki/OnPlayerQuit output only reason (AC #4 8DA6.fe0121 [Trainer] .. and anothers).

    I know, at the moment available hacks from CFF Team and MTA developers try upgrade anticheat for safe fair game.

    I wanna make auto-ban on server for players who use this hack. I think, server admins should know, what means this Code's. :)

×
×
  • Create New...