Jump to content

Lovinglife

Members
  • Posts

    98
  • Joined

  • Last visited

Posts posted by Lovinglife

  1. Ciao a tutti, come va?

    gioco su MTA da molti anni.

    Io ed un mio amico stiamo cercando italiani per giocare su MTA BattleGrounds, che sarebbe la versione su MTA di pubg h1z1 e gli altri battle royale. Un server dove vince chi resta vivo, dove trovare le armi giuste e l'equipaggiamento giusto è fondamentale per vincere. Con airdrop e veicoli, non manca nulla. Sicuramente vale la pena giocarci, e poi con un team di italiani sarebbe molto divertente ed adrenalinico.

    Siamo anche disposti ad insegnarvi tutto quello che c'è da sapere, comunque è anche un modo per creare una piccola comunità di MTA Italia ed un gruppo di amici online.

    Mi potete aggiungere su discord e possiamo parlare con microfono.

    Il mio ID e Tag su discord:         il_rivoluzionario#2550

    oppure fate click su questo link per entrare nel gruppo che ho creato appositamente  https://discordapp.com/invite/teVx8j7

     

    discord è totalmente gratis

     

     

    teaser del server e gameplay (non sono aggiornati alla versione attuale del server):

     

     

     

    Grazie e viva l'Italia,

    il_rivoluzionario

  2. Hello guys,

    I am wondering if you can help me with this issue please,

    I am running windows 10 with mta 1.5

     

    When I launch it I get this:

     

    9d9605755212283.png

     

    then windows asks to grant permissions, if I click No I get this:

    f26d91755212263.png

     

     

    Here, https://wiki.multitheftauto.com/wiki/Error_Codes I can read that  

    Error Code         CL01 

    Associated strings  MTA:SA could not complete the following task:\n\n '%s'\n

    Multi Theft Auto: San Andreas

    File:LineNumber Client\loader\CInstallManager.cpp:350

     

     

    How can I solve this?

     

    If I click on Yes when windows asks to grant permissions, mta launches; but I rather have a permanent fix please, i am sure there is something wrong otherwise i would not get those windows I am showing you.

  3. Hi again, i have new infos...i have played on different servers with c bug active and i have no problems, even where there are custom skins, no problems. The problem, i think, is related to the anti skin bug, which is active on the xhowx server....i cant solve this :S

  4. Hi,

    When i join a server with c-bug enabled (such as XhowX or Xh9X) when i shoot my deagle gets stucked and continues to shoot without pressing any keys, i tried to delete the gta_sa.set and MTA but it didnt work...any ideas? I never had this problem with MTA 1.0.4 (i havent played for a while).

    Thanks

    I redid the topic adding more infos

  5. Hi does everyone know if there is a way to decrease the lag in mta? i have found this tab in the admin resource by lil_today: performance priority

    memory

    auto (defaul)

    speed....and next to these there is a "refresh delay MS" (default: 50)

    i ve found nothing on the forum...btw any ideas ppl?

    Regards

  6. hi

    ive searched but i wasnt able to find something

    <!-- play is the default freeroam gamemode. Remove the following line to prevent it from starting. -->        
        <resource src="race" startup="1" protected="0"/> 
    

    i want my server to start always the map race-rcwarz, how can i do it?

    thanks 4 ur help

  7. hey, i have got the same problem...i forwarded the ports u need but i still cannot find the server in internet list. Its not the 1st time that i forward my router port, so i rly dont know how come that i cannot find my server in internet list

  8. Hey taalas, sup

    May i know what is that "Possible s0beit detect bug fixed?" in the description of 0.1.6v ?

    did u test ur latest version? may u need a tester? i could try that

    Edit: do all the anticheats are 100% working except for the ones which "say" "possible hax detected on..."?

    Regards

    Lovinglife

    And 2 more things...i suggest 1) to let ppl know who has sobeit on, not only "server:close ur sobeit" but Player got caught using sobeit etc...2)i removed the kill and blowcar string about the "possible airbreak/ecc hax on..." u may spec...its better, + pls answer to my Q above (large text)

    Regards

    Lovinglife

  9. Hey taalas, sup

    May i know what is that "Possible s0beit detect bug fixed?" in the description of 0.1.6v ?

    did u test ur latest version? may u need a tester? i could try that

    Edit: do all the anticheats are 100% working except for the ones which "say" "possible hax detected on..."?

    Regards

    Lovinglife

  10. Ok. I didn't test the previous code and I found a few "bugs".

    Here is the code which I tested and works perfectly (server-side):

    local keysList =  { "a", "b", "c", "d", "e", "f", "lshift" } -- etc., list of the keys you want to check
    local playerKeyState = { }; -- every player's key state
     
    -- bind the keys for every player online
    addEventHandler( "onResourceStart", getResourceRootElement(),
    function()
    for i, plr in ipairs( getElementsByType( "player" ) ) do
    		bindPlayerKeysList( plr );
    end
    end
    )
    addEventHandler( "onPlayerJoin", getRootElement( ),
    function( )
         bindPlayerKeysList( source );
    end
    )
     
    function bindPlayerKeysList( player )
    for j, key in ipairs( keysList ) do
    bindKey( player, key, "both", changeKeyState );
    end
    end
     
    function isKeyDown( player, key )
    return ( playerKeyState[ player ] ) and playerKeyState[ player ][ key ] or false;
    end
     
    -- This is the same function that I showed you above but added triggerEvent
    function changeKeyState( player, key, keyState )
    if not playerKeyState[ player ] then
         playerKeyState[ player ] = { }; -- remember to nil this table when player leaves the server!!!
    end
      playerKeyState[ player ][ key ] = ( keyState == "down" ) and true or false;
    triggerEvent( "onPlayerKeyStateChange", player, key, keyState );
    end
     
    -- Then you can attach handlers to the event and detect key press
    addEvent( "onPlayerKeyStateChange" );
    addEventHandler( "onPlayerKeyStateChange", getRootElement(),
    function( key, keyState )
    -- 1st way:  must hold LSHIFT and then press A
    if isKeyDown( source, "lshift" ) and ( key == "a" ) and ( keyState == "down" ) then
    outputChatBox( getPlayerName( source ) .. " just hit LSHIFT + A (order: LSHIFT, A)" );
    end
    -- 2nd way: doesn't have to hold LSHIFT before pressing A
    if isKeyDown( source, "lshift" ) and isKeyDown( source, "a" ) then
    outputChatBox( getPlayerName( source ) .. " just hit LSHIFT + A (order: doesn't matter)" );
    end
    end
    )
    

    excellent, thank you very much for your work ^^

    just bcuz im curious, why have you been thinking about the "keys order (lshift,a)"?

  11. If you want infinite number of combos then I'd suggest you make a table of all the keys and change its value when key is pressed. Basically, make your own isKeyDown function. Something like this:
    local keysList = { "a", "b", "c", "d", "e", "f", } -- etc., list of the keys you want to check
    local playerKeyState = { }; -- every player's key state
     
    local function changeKeyState( player, key, keyState )
    if not playerKeyState[ player ] then
         playerKeyState[ player ] = { }; -- remember to nil this table when player leaves the server!!!
    end
      playerKeyState[ player ][ key ] = ( keyState == "down" ) and true or false;
    end
     
    -- bind the keys for every player online
    for i, plr in ipairs( getElementByType( "player" ) do
    for j, key in ipairs( keysList ) do
    bindKey( plr, key, "both", changeKeyState );
    end
    end
     
    function isKeyDown( player, key )
    return ( playerKeyState[ player ] ) and playerKeyState[ player ][ key ] or false;
    end
    

    After you've set everything up, you can now use isKeyDown anywhere in your code to check if the specific key is down.

    -- for instance:
    if isKeyDown( player, "a" ) and isKeyDown( player, "lshift" ) then
    -- do something when left shift and a are down
    end
    

    Or you can even make an event which will be triggered when a key is down...

    -- This is the same function that I showed you above but added triggerEvent
    local function changeKeyState( player, key, keyState )
    if not playerKeyState[ player ] then
         playerKeyState[ player ] = { }; -- remember to nil this table when player leaves the server!!!
    end
      playerKeyState[ player ][ key ] = ( keyState == "down" ) and true or false;
    triggerEvent( "onPlayerKeyStateChange", player, key, keyState );
    end
     
    -- Then you can attach handlers to the event and detect key press
    addEvent( "onPlayerKeyStateChange" );
    addEventHandler( "onPlayerKeyStateChange", rootElement,
    function( key, keyState )
    -- 1st way:
    if isKeyDown( source, "lshift" ) and ( key == "a" ) and ( keyState == "down" ) then
    -- do something here...
    end
    -- 2nd way:
    if isKeyDown( source, "lshift" ) and isKeyDown( source, "a" ) then
    -- do something here...
    end
    end
    )
    

    Well, well.. I just gave you entire code for a new function and event that will make your life easier...

    thanks for you suggestions and help,

    i tried to understand ur code....i copied 1st n 2nd piece and put em togethere i get 1 error ...here...

    -- bind the keys for every player online

    for i, plr in ipairs( getElementByType( "player" ) do <-----(misses 1 ) near do, i added) attempt to call global value "getElementByType" (a nil value)

    for j, key in ipairs( keysList ) do

    bindKey( plr, key, "both", changeKeyState );

    end

    end

    ç_ç

  12. Thanks everyone

    varez script is working, ty

    1 more question, thx to varez'script i got my combo#1, what if i wanna add infinite combos? i cannot copy the code again in same sheet of work bcuz i'd get problem with the 2 or more "pressing A"

    and the "magic" that appears in chat is seen by every person on my server right?

    Regards

    Lovinglife

  13. ...Sup, is it possible to bind a combo of keys?

    I need smth like this: key1+key2+key3, server: player pressed combo#1...

    I dont need the code, i just need to know if this is possible , and if isn't a way to create it...ofc if u got free time i'll appreciate a lil' help

    Regards

    Lovinglife

×
×
  • Create New...