Jump to content

CrosRoad95

Members
  • Posts

    128
  • Joined

  • Last visited

  • Days Won

    5

Posts posted by CrosRoad95

  1. https://wiki.multitheftauto.com/wiki/Element/Shader#How_HLSL_Effect_Files_file_integrate_into_MTA:SA

    how can i use example at bottom of page named "Not so simple"

    texture display, but i want to move this texture, i use this

    function r()
    	return math.random(1,100)/13
    end
    dxSetShaderValue(shader,"Tex0",texture);
    dxSetShaderValue(shader,"gWorldViewProjection",r(),r(),r(),r(),r(),r(),r(),r(),r(),r(),r(),r(),r(),r(),r(),r());

    gWorld, Position etc values and doesnt work

  2. Mta stuff should afk scripters and people in poll what he need for servers, The best idea would be the highest priority.

    If an idea has been added, another identical poll. Now, are added things that people dont realy need, debugSleep ? who use this?

  3. I make everythink and i cant compile ml_base on 64bit ubuntu!

    i got error

    ml_base# make
    gcc -g -MD -Wall -I./ -m32 -fPIC -shared -Wl,-soname,ml_base.so.1,-R./ -m32 -o ml_base.so ./CFunctions.o ./CThread.o ./CThreadData.o ./ml_base.o -lpthread -lstdc++ -llua
    /usr/bin/ld: cannot find -llua
    collect2: error: ld returned 1 exit status
    make: *** [ml_base] Błąd 1

    i try install lualib etc but didn't working

  4. If someone make public gamemod that owners of server need to download, update resource etc. My idea is to make automated download resources from gamemode, when author of gamemod update this, and owner of server restart script then resource automatic update.

    example meta could look like this:

    <meta url="https://github.com/multitheftauto/mtasa-resources/tree/master/%5Bgameplay%5D/fastrope">
    </meta>

     

    • Like 1
  5. Yes, i know that i can install module for server, but its problematic and not all script need new functions. Cool idea would be option to make simple c++ file, compile to .so or .dll and load to only 1 script.Somethink like:

    <script src="script.so"/>

    script.so have few function like

    int test(int i){
    	return i++;
    }
    bool test_two(){
     	return false 
    }
    script=loadLib("script.so")
    script:call("functionname",arguments)
    script:functions() -- return all functions
    script.meta -- return table of information about file

    and i can call script:call("test",1) and return 2

  6. On every server function to save vehicles, players etc take a lot of code, you must loop all datas, position, handling etc.

    good idea is to make function like dump(element) which return all element possible thinks as string, and second function element=loadFromDump(string) which load element from this string

    this could be use for vehicle and players.

  7. function split should have parametr like "tryFormat" example

    result=split("mystring,123,mystring",",",true) -- true is "try format"

    result is table {"mystring",123,"mystring"} insted {"mystring","123","mystring"}

  8. is possible to select from mysql using 1 select which output like this in

    {
     ["name"]="mynickanem",
     ["other_column"]="kldsjskldjf",
     ["licenses"]={
     	   {
          	["name"]="driver",
         	["ban"]=0,
        	}
        	{
          	["name"]="gun",
          	["ban"]=0,
         	 }
        }
    }

    from 2 tables "accounts" and "licenses"

  9. Hello, i have this code:

    local env = {outputChatBox=outputChatBox}
    function run(untrusted_code)
      if untrusted_code:byte(1) == 27 then return nil, "binary bytecode prohibited" end
      local untrusted_function, message = loadstring(untrusted_code)
      if not untrusted_function then return nil, message end
      setfenv(untrusted_function, env)
      return pcall(untrusted_function)
    end

    and i want to stop execution like stopResource

    i want too limit execution function to example 10 per second, how can i do this?

  10. adding the possibility of setting physical elements that would be great

     

    i can use this example for:

    on vehicle hit fence, fence set phisic=true for 2 second and fly 20 meters forward.

    • Like 3
  11. add option to make text like

    Bold

    Italic

    Underline

    Strikethrough

    and combo like something something2 something3

    in gui text,gridlist, dxdraw, chatbox etc

    example

    outputChatBox("[b]bold[/b][i]italic[/i]")

     

    • Like 3
  12. Cool will be when in mta i can load and cell .dll or .so file, for example:

    i have file .dll, in my file is function "helloworld" and i can make code example:

    lib=loadLibrary("mylib.so") -- 'so' on linux, 'dll' on windows
    
    libraryCell(lib,"helloworld")

    and function libraryCell return string "hello world"

    in my opinion this is easier to implement than modules

    only server-side

  13. how detect who make this, on my server play around 150 players

    [2016-11-19 22:36:30] [Network] OutCommandQueue > 400000 msgs. This is due to server overload or script freeze
     

    and error

    mta-server[12061]: segfault at a ip 00000000f6a037d5 sp 00000000f51fba40 error 4 in deathmatch.so[f63c5000+937000]

  14. please update lua 5.1 to 5.4, lua and add serverside option to enable package, io and os library ( i know that require can download virus )

    and add to config option <loadstring_client>enable||disable</loadstring_client> && <loadstring_server>enable||disable</loadstring_server> ( when loadstring is used on client, player is kicked by anti cheat and loadstring not running, when used on server, only block, both should output information to log (ip,code,file,line)) 

  15. for example

    <filefolder src="folder/blips/.*" /> -- select folder and include all files using regex .*

    and can be attribute subfolders="true" then include all folder like script/folder/blips/subfolder

    it will be awasome, now i must look that

    http://screenshot.sh/oB6bqJi4YdTba

     

    yes, i can create php script, module, use bash etc to get all files in folder

    • Like 2
×
×
  • Create New...