Jump to content

Search the Community

Showing results for tags 'python'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • Multi Theft Auto: San Andreas 1.x
    • Support for MTA:SA 1.x
    • User Guides
    • Open Source Contributors
    • Suggestions
    • Ban appeals
  • General MTA
    • News
    • Media
    • Site/Forum/Discord/Mantis/Wiki related
    • MTA Chat
    • Other languages
  • MTA Community
    • Scripting
    • Maps
    • Resources
    • Other Creations & GTA modding
    • Competitive gameplay
    • Servers
  • Other
    • General
    • Multi Theft Auto 0.5r2
    • Third party GTA mods
  • Archive
    • Archived Items
    • Trash

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start



About Me

Member Title





Found 6 results

  1. I would to create a server core with python i start the server on localhost with udp port (34219) i recived a data from mta it was "MTA-CLIENT 1.5" but the problem how to show the server in the servers list and how to get ase port and thank you
  2. Opa, sou recente jogador de mta e, tenho uma grande dúvida sobre a linguagem .lua, eu sou especializado na linguagem Python e, não sei nada sobre a linguagem .lua que é a linguagem usada no app de vocês. A linguagem .lua é uma linguagem única ou pode colocar códigos em Python dentro da linguagem .lua? Desde já agradeço.
  3. How to call a lua script function from a site? I don’t know what POST request to send to the server to get a response! I'm trying to do it like this: [LUA] function MTACheck(user) account = getAccount(user) if account then return "OK" else return "ERROR" end end [PYTHON] import requests ipp = '4*.17*.4*.4*:3***2' # it's my IP:PORT server adress user = '6E860E******************8E0F65F2' #it's my login from server req = requests.post(f'http://{ipp}/payment/call/MTAPaymentCheck', data = {'user': f'{user}'}) print( str(req.text) ) Received from the server: Access denied, please login
  4. Hello, I present to you a simple monitoring script for your server written in Python 3. This script will be useful for your site, for example, if you are developing it using Django / AIOHTTP / Flask or for other purposes. This script provides simple server information: game (mta) port - server main port (UDP) ase_port - server All Seeing Eye port (main MTA:SA port + 123) name - server name gamemode - server mode map - server map version - mta:sa server version players - number of players on the server right now maxplayers - the maximum number of players that can join Usage: from mta.monitoring import Server # pass server address and port s = Server('', 22003) # get current server online and max players print('{}/{}'.format(s.players, s.maxplayers)) Download & Source code: github
  5. السلام عليكم ورحمة الله وبركاته انا الفترة الاخيرة هذي صرت اتعلم على لغة ال Django ولكن واجهتني مشكلة في البيئة الافتراضيه الخاصة بالخادم عند استخدام الامر py manage.py runserver يضهر لي هذا الكود مع العلم انه كان يشتغل معي قبل بشكل جيد لكن اخونا بالله حب يتفلسف ويغير ملفات المشروع وخرب كلشي وحذفت كلشي ورجعته زي م كان وحذفت البيئة ورجعتها واعدت تنصيب الغة ومو راضي وشكرا
  6. Hello everybody! I want to offer you a new language for writing scripts for MTA: SA. By the tags in the topic, you've already seen that it's Puthon 3. Many will say that Python 3 is bad for scripting, but it's not! It is similar to lua but has a wider OOP, and has the ability to connect modules. In the Internet very little material on lua, it is available but only in English, and what to do to the Russian community? The Russian segment in the MTA is very large, and lua materials are very small. Of course, the small amount of materials on the Internet for lua is not the reason for switching to Python 3. I understand that I will have to rewrite all functions from scratch, but this can prolong the life of the MTA. Python 3 is not one language that can be used as scripting under MTA: SA, there is also a wonderful language JavaScript v5. Many multiplayer use it as a language for writing scripts. This is just my opinion. I just suggested that the idea is not bad. Decide for you, dear multiplayer developers. Oh, sorry for my bad English!
  • Create New...