Jump to content

AJXB

Members
  • Posts

    367
  • Joined

  • Last visited

Posts posted by AJXB

  1. 57 minutes ago, SSKE said:

    If you can give an example I'll be grateful, because I don't know how to add if the player got damage from less then 20 second...

    Look for it in the Wiki, I think you'll find your way around.

  2. 29 minutes ago, SSKE said:

    No problem I fix it, what I mean, I create this script, but the DENdxmsg script is from a old friend who got that script and he gave me it. Anyway Thanks for you're help!

    If you actually created this script you would know that changing line 23 will solve your problem. but I highly doubt you know what you're doing here.

  3. 1 hour ago, DeadthStrock said:

    ;)  ;)  ;)  ;)  ;)  ;)

    Client Side :-

    
    GUIEditor = {
        button = {},
        window = {},
        memo = {}
    }
    addEventHandler("onClientResourceStart", resourceRoot,
        function()
            GUIEditor.window[1] = guiCreateWindow(563, 204, 519, 491, "Rules and Regulation", false)
            guiWindowSetSizable(GUIEditor.window[1], false)
    
            GUIEditor.memo[1] = guiCreateMemo(9, 29, 500, 418, "", false, GUIEditor.window[1])
            button1 = guiCreateButton(18, 449, 491, 32, "I agree", false, GUIEditor.window[1])  
        end
    )
    
    function closeButton()
        if source == button1 then
            outputChatBox("Hey")
        end
    end
    addEventHandler("onClientGUIClick", resourceRoot, closeButton)
    

    Or ,

    Client Side :-

    
    GUIEditor = {
        button = {},
        window = {},
        memo = {}
    }
    addEventHandler("onClientResourceStart", resourceRoot,
        function()
            GUIEditor.window[1] = guiCreateWindow(563, 204, 519, 491, "Rules and Regulation", false)
            guiWindowSetSizable(GUIEditor.window[1], false)
    
            GUIEditor.memo[1] = guiCreateMemo(9, 29, 500, 418, "", false, GUIEditor.window[1])
            button1 = guiCreateButton(18, 449, 491, 32, "I agree", false, GUIEditor.window[1])  
    		addEventHandler("onClientGUIClick", button1, closeButton)
        end
    )
    
    function closeButton()
        outputChatBox("Hey")
    end
    

     

    No, your first option is correct, not the second.

  4. 4 hours ago, HunT said:

    Someone is already doing the fortnite gamemode?
    or does anyone intend to create the gamemode?

    If anyone needs help creating this gamemode, I can help with 3D models like this.

     

    kDmU0Ek.png

     

    Still up for this?

  5. 14 hours ago, Epozide said:

    Thank you calling me retarded in every topic, that illustrates a lot. Webroot is so stable tho.

     

    I've made an exception and it worked! Thank you, @Dutchman101

     

     

     

    You're a magician :o

     

    /pissoff

  6. You're retarded for using that Antivirus.

    Add an exception in the AV, Google how.

    MTA doesn't have any malicious files, maybe you can use a proper AV and find out.

  7. 13 hours ago, Simple01 said:

    People got wrong my words. I'm talking about the mentality of programmers and scripters, because there are all kind of ways to do things but there's always a best way to choose and there's where we start to discuss about loops. The amount of loops and their type represent a scripter's way to structurize his code, and in my opinion Ipairs and Pairs can be avoided and limited just to necessary cases and these cases are very hard to be found while you're scripting from scratch so stop putting Ipairs and Pairs each 10 lines of written code.

     

    umad?

  8. 3 hours ago, John Smith said:

    Numerical looping is 2 times faster than pairs, while pairs is slightly faster than ipairs.

    He isn't talking about speed, he's generally saying that numerical loops are what an "expert" coder should be using.. 

    The correct answer to this is "It depends on your table, and what data do you need", you can't talk in general about this.

  9. "Look
    There's 3 kind of loops
    Ipairs - Pairs - Numerical
    If you're smart guy and you can think off a good structre.
    You will use rarely Pairs.
    And never or almost never Ipairs.
    If you're a medium guy on scripting.
    You will use Pairs most of the times, making use of numerical some times and ipairs also some times.
    And in my opinion the worst one, using Ipairs most of the times, pairs some times and numerical almost never."

    Some ignorant who's acting like a professional coder is saying this. please, give me your opinion on what he's saying.

  10. 13 hours ago, CodyL said:

    Did not notice that,

    
    Open = false
    
    function toggleFRWindow(thePlayer)
    local accName = getAccountName ( getPlayerAccount ( thePlayer ) )
    if isObjectinACL("user."..accName, "Admin") then
        if Open then
    	Open = false
            showCursor(thePlayer,false)
            triggerClientEvent ( thePlayer, "OpenOrClose", thePlayer,false)
            colorPicker.closeSelect()
            else
    	Open = true
            showCursor(thePlayer,true)
            triggerClientEvent ( thePlayer, "OpenOrClose", thePlayer,true)
        end
    end
    end
    addCommandHandler('fr', toggleFRWindow)
    

    Client -

    
    function OpenOrCloseClient(Open)
    if Open then 
    showAllWindows()
    else
    hideAllWindows()
    colorPicker.closeSelect()
    end
    end
    
    addEvent( "OpenOrClose", true )
    addEventHandler( "OpenOrClose", localPlayer, OpenOrCloseClient )
    

     

    Not tested, was just a quick thing I made.

     
     
     

     

    Mother of indentation.. press "Tab" once a while.

     

    http://pastebin.com/Y9ri2wxi

     

    • Like 2
  11. Bloody hell..

    Alright, as far as I remember (I don't have the source code for this), I didn't use guiGridListGetItemText, but I used guiGridListGetSeleceted, I didn't use GetItemText because I used an index for the selected row, that's what I remember, unfortunately, there is not way to decompile the code to find out exactly what I've done.

    • Like 1
×
×
  • Create New...