Jump to content

Ahmed Ly

Members
  • Posts

    1,304
  • Joined

  • Last visited

  • Days Won

    5

Ahmed Ly last won the day on November 18 2020

Ahmed Ly had the most liked content!

About Ahmed Ly

  • Birthday 27/12/1998

Details

  • Gang
    Dragon
  • Location
    Libya
  • Occupation
    DD
  • Interests
    LUA

Recent Profile Visitors

10,242 profile views

Ahmed Ly's Achievements

Lil' G

Lil' G (37/54)

185

Reputation

  1. شرح السكربت: هذا السكربت يقوم بإنشاء بوت على Discord يستخدم مكتبة discord.py للتفاعل مع اللاعبين في خادم MTA:SA (Multi Theft Auto: San Andreas). بالإضافة إلى ذلك، يتم استخدام Flask لإنشاء API لاستقبال الرسائل من خادم MTA وإرسالها إلى قناة على Discord. الوصف العام: البوت يقوم بتنفيذ أوامر مثل !players لعرض قائمة اللاعبين المتصلين، !kick و !ban لطرد اللاعبين أو حظرهم، بالإضافة إلى أوامر أخرى مثل إعطاء المال للاعبين، تحريكهم، تغيير جلدهم، وغيرها. كما يتم استخدام Flask لاستقبال رسائل من خادم MTA عبر HTTP POST وإرسالها إلى قناة محددة على Discord. كيفية استخدام السكربت: 1. إعداد البوت على Discord: يتم إعداد البوت باستخدام discord.py ويجب إضافة البوت إلى الخادم باستخدام التوكن الخاص به. يتم تحديد صلاحيات البوت باستخدام commands.has_role('Admin') للتأكد من أن الأوامر التنفيذية (مثل !kick و !ban) يمكن تنفيذها فقط بواسطة المستخدمين الذين لديهم دور "Admin". 2. استخدام أوامر البوت: !players: لعرض قائمة اللاعبين المتصلين في الخادم. !kick <player_name> <reason>: لطرد لاعب من الخادم مع تحديد السبب. !ban <player_name> <reason>: لحظر لاعب من الخادم مع تحديد السبب. !givemoney <player_name> <money>: لإعطاء لاعب مبلغ معين من المال. !setpos <player_name> <x> <y> <z>: لتحريك لاعب إلى موقع محدد. !getpos <player_name>: لعرض موقع لاعب معين. !setskin <player_name> <skin_id>: لتغيير جلد لاعب. !getskin <player_name>: لعرض جلد لاعب معين. 3. استخدام Flask لاستقبال الرسائل من MTA: يتم إعداد Flask لإنشاء API على العنوان http://127.0.0.1:5000/chat لاستقبال الرسائل من خادم MTA. يتم إرسال الرسائل إلى قناة Discord المحددة عند استلامها من MTA عبر POST. 4. تشغيل البوت والخادم: بعد إعداد الكود، يمكنك تشغيل البوت باستخدام الأمر bot.run('token')، مع استبدال token بالتوكن الخاص بالبوت. في نفس الوقت، يتم تشغيل خادم Flask في خيط منفصل. 5. متطلبات إضافية: pip install discord.py Flask requests حسابي علي ديسكورد ahmedly رابط https://github.com/Ahmed-Ly/botdiscord https://community.multitheftauto.com/index.php?p=resources&s=details&id=18961
  2. Link :- https://community.multitheftauto.com/index.php?p=resources&s=details&id=18961 https://github.com/Ahmed-Ly/botdiscord Commands These commands allow Discord admins to interact with the MTA server: !players: Returns a list of online players. !kick <player_name> <reason>: Kicks a player from the server. !ban <player_name> <reason>: Bans a player. !givemoney <player_name> <money>: Gives money to a player. !setpos <player_name> <x> <y> <z>: Teleports a player to specific coordinates. !getpos <player_name>: Retrieves a player’s current position. !getskin <player_name>: Retrieves a player’s current skin. !setskin <player_name> <skin_id>: Changes a player’s skin. !givecar <player_name> <car_id>: Gives a car to a player. !getcar <player_name>: Retrieves the car the player is in. !warpto <target_player_name> <player_name>: Warps a player to another player's position. !getweapon <player_name>: Retrieves the player's weapon ID. !gethealth <player_name>: Retrieves the player’s health. !setadmin <player_name>: Sets a player as an admin. !removeadmin <player_name>: Removes a player's admin status. !getip <player_name>: Retrieves a player’s IP address. !getserial <player_name>: Retrieves a player’s serial number. !getaccount <player_name>: Retrieves a player’s account name.
  3. new update https://community.multitheftauto.com/index.php?p=resources&s=details&id=18950
  4. تحديث جديد https://community.multitheftauto.com/index.php?p=resources&s=details&id=18950
  5. هذا المود يتيح لك تغيير شكل القنبلة مظهرًا جديدًا وأكثر واقعية أو مخصصًا رابط https://mega.nz/file/cNwyyDLB#obvNuZHGwXaMNr2wtxl4P05rfCmBcEnyfjZE2E6Oa-s https://www.mediafire.com/file/1xj2s92voziap59/gra.zip/file فيديو : https://streamable.com/ogaajx
  6. this resource work then kil someone show you message in screen you can edit resource from file config link https://community.multitheftauto.com/index.php?p=resources&s=details&id=18954 image https://f.top4top.io/p_32814ushg1.png You must have DGS dowload from here https://github.com/thisdp/dgs
  7. سلام عليكم config.lua or config_s.lua هاذا مود يظهر رساله عندما تقتل شخص و تحصل علي 30 هلت تقدر تعدل علي مود عن طريق ملفين رابط https://community.multitheftauto.com/index.php?p=resources&s=details&id=18954 صوره https://g.top4top.io/p_328105sro2.png ملاحظه : لازم يكون عندك مود DGS
  8. dancing then round Finish for gamemode tactics LINK https://community.multitheftauto.com/index.php?p=resources&s=details&id=18953
  9. رابط: https://community.multitheftauto.com/index.php?p=resources&s=details&id=18953
  10. this resource must use cbug resource to show any player use setting to use cbug to use it in f8 showSetting [name player] must have admin and thanks ! LINKS : link https://community.multitheftauto.com/index.php?p=resources&s=details&id=18952 cbug https://community.multitheftauto.com/index.php?p=resources&s=details&id=5317
  11. سلام عليكم لاستعمل مود لازم يكون عندك رتبة ادمن في اف 8 showsetting [ اسم لاعب ] رابط https://community.multitheftauto.com/index.php?p=resources&s=details&id=18952
  12. local cmd = [[ ____ ___ ______ ______ ___ _ ___ ____ ____ ____ ___ ___ | \ / \ | | | | / _]| | / _] / || \ / || | | | o )| || | | | / [_ | | / [_ | __|| D )| o || _ _ | | || O ||_| |_| |_| |_|| _]| |___ | _]| | || / | || \_/ | | O || | | | | | | [_ | || [_ | |_ || \ | _ || | | | || | | | | | | || || || || . \| | || | | |_____| \___/ |__| |__| |_____||_____||_____||___,_||__|\_||__|__||___|___| ____ __ __ ____ __ __ ___ ___ ___ ___ _ __ __ | \ | | | / || | || | | / _]| \ | | | | | | o )| | | | o || | || _ _ | / [_ | \ | | | | | | || ~ | | || _ || \_/ || _]| D | | |___ | ~ | | O ||___, | | _ || | || | || [_ | | | ||___, | | || | | | || | || | || || | | || | |_____||____/ |__|__||__|__||___|___||_____||_____| |_____||____/ ]] print('-----------------------------------------------------------------------------------------------------------') print(cmd) function showcommands () local msgs = [[ ____ ___ ______ ______ ___ _ ___ ____ ____ ____ ___ ___ | \ / \ | | | | / _]| | / _] / || \ / || | | | o )| || | | | / [_ | | / [_ | __|| D )| o || _ _ | | || O ||_| |_| |_| |_|| _]| |___ | _]| | || / | || \_/ | | O || | | | | | | [_ | || [_ | |_ || \ | _ || | | | || | | | | | | || || || || . \| | || | | |_____| \___/ |__| |__| |_____||_____||_____||___,_||__|\_||__|__||___|___| ---------------------------------------------------------------------------------------- sendMsg [Msg] - to send the message sendphoto [photo] - to send the photo sendAudio [Audio] - to send the Audio sendvideo [video] - to send the video sendDocument[Document] - to send the Document sendSticker[Sticker] - to send the Sticker sendChatAction [Action] - to change the Chat Action getme - to Get All info about the bot --------------------------------------------------------------------------------------- -]] print(msgs) end setTimer(showcommands,6000,1) function sends (playerSource,commandName,amount) if playerSource then if commandName == "sendMsg" then local texts = tostring(amount) if texts then sendMsg(texts) print("[Bot] Sending .. "..texts.."") else print("[usage] sendMsg [amount]") end else if commandName == "bothelp" then local texts = tostring(amount) if texts == "-u" then local msgs = [[ ____ ___ ______ ______ ___ _ ___ ____ ____ ____ ___ ___ | \ / \ | | | | / _]| | / _] / || \ / || | | | o )| || | | | / [_ | | / [_ | __|| D )| o || _ _ | | || O ||_| |_| |_| |_|| _]| |___ | _]| | || / | || \_/ | | O || | | | | | | [_ | || [_ | |_ || \ | _ || | | | || | | | | | | || || || || . \| | || | | |_____| \___/ |__| |__| |_____||_____||_____||___,_||__|\_||__|__||___|___| ------------------------------------------ sendMsg [Msg] - to send the message sendphoto [photo] - to send the photo sendAudio [Audio] - to send the Audio sendvideo [video] - to send the video sendDocument[Document] - to send the Document sendSticker[Sticker] - to send the Sticker sendChatAction [Action] - to change the Chat Action getme - to Get All info about the bot ------------------------------------------ ]] print(msgs) else print("[usage] bothelp -u ") end else if commandName == "sendphoto" then local texts = tostring(amount) if texts then sendphoto(texts) print("[Bot] Sending .. "..texts.."") else print("[usage] sendphoto [photo]") end else if commandName == "sendvideo" then local texts = tostring(amount) if texts then sendvideo(texts) print("[Bot] Sending .. "..texts.."") else print("[usage] sendvideo [video]") end else if commandName == "sendAudio" then local texts = tostring(amount) if texts then sendAudio(texts) print("[Bot] Sending .. "..texts.."") else print("[usage] sendAudio [Audio]") end else if commandName == "sendDocument" then local texts = tostring(amount) if texts then sendDocument(texts,"this is pdf") print("[Bot] Sending .. "..texts.."") else print("[usage] sendDocument [Document]") end else if commandName == "sendSticker" then local texts = tostring(amount) if texts then sendSticker(texts) print("[Bot] Sending .. "..texts.."") else print("[usage] sendSticker [Sticker ]") end else if commandName == "sendChatAction" then local texts = tostring(amount) if texts then sendChatAction(texts) print("[Bot] Sending .. "..texts.."") else print("[usage] sendChatAction [Action]") end else if commandName == "getme" then local id,username,is_bot,can_read_all_group_messages,supports_inline_queries,can_join_groups = getMe () print('[Bot] info = '..id,username,is_bot,can_read_all_group_messages,supports_inline_queries,can_join_groups) end end end end end end end end end end end addCommandHandler("sendMsg", sends) addCommandHandler("bothelp", sends) addCommandHandler("sendphoto", sends) addCommandHandler("sendvideo", sends) addCommandHandler("sendAudio",sends) addCommandHandler("sendSticker",sends) addCommandHandler("sendDocument",sends) addCommandHandler("sendChatAction",sends) addCommandHandler("getme",sends) function read () open = fileOpen("config.txt") reading = fileRead(open,46) fileFlush(open) fileClose(open) return reading end link = {} function readid () opentwo = fileOpen("config.txt") fileSetPos(opentwo,48) readingtow = fileRead(opentwo,10) fileFlush(opentwo) fileClose(opentwo) return readingtow end token = read() chat_id = readid() function result(sum) print(sum) end function sendMsg(Text) link[1] = "https://api.telegram.org/bot"..token.."/sendMessage".."?chat_id="..chat_id.."&text="..Text.."" print(link[1]) callRemote (link[1], result,Text) end function sendphoto(photo) link[2] = "https://api.telegram.org/bot"..token.."/sendPhoto".."?chat_id="..chat_id.."&photo="..photo.."" callRemote (link[2],result,photo) end function sendvideo(video) link[3] = "https://api.telegram.org/bot"..token.."/sendVideo".."?chat_id="..chat_id.."&video="..video.."" callRemote (link[3],result,video) end function sendAudio(Audio) link[4] = "https://api.telegram.org/bot"..token.."/sendAudio".."?chat_id="..chat_id.."&audio="..Audio.."" callRemote (link[4],result,Audio) end function sendDocument(Document,Texts) link[5] = "https://api.telegram.org/bot"..token.."/sendDocument".."?chat_id="..chat_id.."&document="..Document.."&caption="..Texts.."" callRemote (link[5],result,Document) end function sendSticker(Sticker) link[6] = "https://api.telegram.org/bot"..token.."/sendSticker".."?chat_id="..chat_id.."&sticker="..Sticker.."" callRemote (link[6],result,Sticker) end function sendChatAction(action) link[7] = "https://api.telegram.org/bot"..token.."/sendChatAction".."?chat_id="..chat_id.."&action="..action.."" print(link[7]) callRemote (link[7],result,action) end function started(wedf) link[9] = 'https://api.telegram.org/bot'..token..'/getMe' print(link[9]) fetchRemote (link[9], getalljson, "", false,wedf) end function getalljson( responseData, error,wedf) if error == 0 then local open = fileOpen('getme.txt') local reading = fileWrite(open,responseData) fileFlush(open) fileClose(open) end end function getMe () started('opened') local filetxt = fileOpen('getme.txt') local count = fileGetSize(filetxt) local reads = fileRead(filetxt,count) DATA = fromJSON ("["..reads.."]") fileFlush(filetxt) fileClose(filetxt) return DATA['result']['id'],DATA['result']['username'],DATA['result']['first_name'],DATA['result']['is_bot'],DATA['result']['can_read_all_group_messages'],DATA['result']['supports_inline_queries'],DATA['result']['can_join_groups'] end function getlinks () for i = 0,9 do if link[i] then return link[i],i end end end --local id,username,is_bot,can_read_all_group_messages,supports_inline_queries,can_join_groups = getMe () --print(id,username,is_bot,can_read_all_group_messages,supports_inline_queries,can_join_groups) --links,number = getlinks() --print(links,number) -- sendChatAction("") --sendMsg("hi") --sendChatAction("upload_photo") --sendSticker("https://www.gstatic.com/webp/gallery/1.webp") -- sendDocument("https://www.mathscinotes.com/wp-content/uploads/2016/02/Adler-Mortimer-How-To-Read-A-Book.pdf","this pdf") --sendAudio("https://g.top4top.io/m_488rkvrd2.mp3") -- sendvideo("https://p.top4top.io/m_872tuac51.mp4") -- sendphoto("https://j.top4top.io/i_1eb6c9296e1.png") new update
  13. LINK https://community.multitheftauto.com/index.php?p=resources&s=details&id=18951
  14. function read () open = fileOpen("config.txt") reading = fileRead(open,46) fileFlush(open) fileClose(open) return reading end link = {} function readid () opentwo = fileOpen("config.txt") fileSetPos(opentwo,48) readingtow = fileRead(opentwo,11) fileFlush(opentwo) fileClose(opentwo) return readingtow end token = read() chat_id = readid() print(token) print(chat_id) function result(sum) print(sum) end function sendMsg(Text) link[1] = "https://api.telegram.org/bot"..token.."/sendMessage".."?chat_id="..chat_id.."&text="..Text.."" print(link[1]) callRemote (link[1], result,Text) end function sendphoto(photo) link[2] = "https://api.telegram.org/bot"..token.."/sendPhoto".."?chat_id="..chat_id.."&photo="..photo.."" callRemote (link[2],result,photo) end function sendvideo(video) link[3] = "https://api.telegram.org/bot"..token.."/sendVideo".."?chat_id="..chat_id.."&video="..video.."" callRemote (link[3],result,video) end function sendAudio(Audio) link[4] = "https://api.telegram.org/bot"..token.."/sendAudio".."?chat_id="..chat_id.."&audio="..Audio.."" callRemote (link[4],result,Audio) end function sendDocument(Document,Texts) link[5] = "https://api.telegram.org/bot"..token.."/sendDocument".."?chat_id="..chat_id.."&document="..Document.."&caption="..Texts.."" callRemote (link[5],result,Document) end function sendSticker(Sticker) link[6] = "https://api.telegram.org/bot"..token.."/sendSticker".."?chat_id="..chat_id.."&sticker="..Sticker.."" callRemote (link[6],result,Sticker) end function sendChatAction(action) if token and chat_id and action then link[7] = "https://api.telegram.org/bot"..token.."/sendChatAction".."?chat_id="..chat_id.."&action="..action.."" callRemote (link[7],result,action) end end -- sendChatAction("") --sendMsg("hi") --sendChatAction("upload_photo") --sendSticker("https://www.gstatic.com/webp/gallery/1.webp") -- sendDocument("https://www.mathscinotes.com/wp-content/uploads/2016/02/Adler-Mortimer-How-To-Read-A-Book.pdf","this pdf") --sendAudio("https://g.top4top.io/m_488rkvrd2.mp3") -- sendvideo("https://p.top4top.io/m_872tuac51.mp4") -- sendphoto("https://j.top4top.io/i_1eb6c9296e1.png") must do file config.txt put in file put token here put id chat here
  15. some people in mta san use auto hot key to use cbug with resource cbug Anti Auto Hot Key https://community.multitheftauto.com/index.php?p=resources&s=details&id=18949 c bug https://community.multitheftauto.com/index.php?p=resources&s=details&id=5317
×
×
  • Create New...