Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 05/09/16 in all areas

  1. Hey, I wonder what this button does... <presses the button> huh? delete all forum users? oh sna- Hi there, the MTA Team is happy to present you with the result of what we have been up to recently - the redesigned and refreshed MTA Forum! This is something that we have wanted to do for a long time, and for several reasons. The forum software we have used until now (phpBB) has served us well through the years, there is no doubt about that. However, as time went by, our needs were changing too. It was becoming less and less feasible for us to use and maintain the forums in their present state, so we decided it was time to try something that is more suited to our current needs. We were recently presented with an opportunity to switch the forum software on attractive terms and we took it. Lo and behold, here are the new forums! Highlights of new features that were not present on the previous forum: forum now runs on a proprietary, secure, well tested and widely used software solution - the IPS Community Suite a completely new, mobile-friendly forum theme a fully fledged rich text editor for posting or editing your content on the forums (instead of the previous plain text box with BBCode buttons) an improved user profile system for greater personalisation of your presence on our forums a new, customizable real-time notifications system also a new, simplified Private Messaging system improvements to the quotation system (quotes link to the original post, and are fully collapsible) and replying in general (the multiquote feature) an ability to 'like' and rate topics and posts, awarding reputation points to their authors topic authors can now assign tags to their topics, making it easier for users to find the content they are looking for several new enhancements and customization features to improve your browsing experience (eg. topic previews; the ability to hide forums you are not interested in) moderators now have an ability to promote your topic on the forum (similar to stickied topics, but separate to them) several new features for us administrators too, which will make forum maintenance easier and possibly allow us to implement new forum features without a hassle ... and more! List of features that were present in the previous forum but are missing or are less functional now: no topic icons Private Messaging system is less pleasant to scroll through. Getting used to it might take some time too it is no longer possible to view the source code of posts. If you really need that functionality, you can check the page's HTML source code directly, then use a third party converter to obtain the BBCode code boxes are no longer integrated with the MTA wiki URLs FAQ: Q: Are my posts still in place? What about my private messages? A: They are both fine. You can find them in the same place you left them before. Q: Will the old forum URLs still work? A bunch of places on the web link to your forum using old URLs... A: Yes, they will work. We have a on-the-fly converter in place for such URLs, so they will still link to where they should. Q: I have found an issue with the new forum. Can I report it? A: Sure. Send a PM to one of the forum administrators (darkdreamingdan, jhxp or Jusonex) and describe the problem you have found. Make sure you provide all the details or steps to reproduce your issue, where applicable. We would like to thank Audifire and the mta-sa.org team for donating the forum software license to us. And naturally, you can not forget about darkdreamingdan and Jusonex, our team members who had both put a tremendous amount of effort in preparing and performing the forum maintenance and migration. Awesome job, guys. Did you like the change? Please let us know in the comments! See you next time. --MTA Team
    10 points
  2. The old theme is not obligatory, but something less bright, it is necessary. The eyes of many scripters are used to do to a black background. In fact, only need to add the exact same theme or more, but with different color styles.
    4 points
  3. السلام عليكم ورحمة الله وبركاته بتصميم وخاصيات جديدة IPB إلى phpBB اليوم تم تجديد المنتدى ونقله من ...نسعى لتقديم الأفضل دائماً !شاركونا بآرائكم حول التجديد ملاحظة: لم يتم اكتمال تجديد المنتدى كلياً حتى الآن فإذا تواجهكم بعض المشاكل, فسوف يتم حلها في أقرب وقت بإذن الله يا عيال نبي مشرفين جدد بعد
    3 points
  4. addEvent("Drugs:showDrugsGUI", true) function setStats ( player, god, speed, lsd, heroin, weed, steroids, mescaline ) if ( source == GUIEditor_Grid[1] ) then local row, col = guiGridListGetSelectedItem ( GUIEditor_Grid[1] ) if ( row ~= -1 and col ~= -1 ) then local playername = guiGridListGetItemText ( GUIEditor_Grid[1], row, col ) local thePlayer = isElement(playername) and getPlayerFromName ( playername ) if ( thePlayer ) then guiSetText(lblGod, " God "..(tostring(god) or 0)) guiSetText(lblLSD, " LSD ".. (tostring(lsd) or 0)) guiSetText(lblHeroin, " Heroin ".. (tostring(heroin) or 0)) guiSetText(lblWeed, " Weed ".. (tostring(weed) or 0)) guiSetText(lblSteroids," Steroids"..(tostring(steroids) or 0)) guiSetText(lblMescaline, " Mescaline "..(tostring(mescaline) or 0 )) end end end end addEventHandler("Drugs:showDrugsGUI", root, setStats) addEventHandler ( "onClientGUIDoubleClick", root, setStats ) جرب الكلنت وبالنسبة لكلام الاخ نكست بعض الاحيان تضبط وبعض الاحيان لا وصارت معي جلست ساعه افكر وش المشكلة واخر شي اكتشفت ان المشكلة من المتغير سورس حق الحدث فالافضل انك تخليها ع اسم القريد ليست وخلاص
    3 points
  5. 3 points
  6. 2 points
  7. I'm sorry but this is just pathetic. It's lacking lots of features original panel has and it's compiled . Why on earth you compile login panel? Don't you think that people who will try to actually use it will need source code to make db connections and adjustments? Though I higly doubt anyone will ever want to use fake panel from another server. The whole idea is just plain stupid.
    2 points
  8. G&T Mapping & Loki present: Cinema Experience Beta 2.0.2 Description We're happy to finally release the first beta version of our Cinema Experience! Check out its features down below... Video Screenshots Download Now Beta Ver. 2.0.2 [ October 7, 2019 ] Changelog Authors: Tails - Follow his group G&T Mapping on Facebook: http://fb.com/gtmapping Check out their other resources as well: http://gtmapping.blogspot.com Loki - Check out his original Cinema script here: https://community.multitheftauto.com/in ... s&id=11993 and his profile here: https://forum.multitheftauto.com/memberlist.php? ... le&u=79989 Please note that this resource is not 100% complete yet. Some features are disabled and there may still be some bugs. To get started, scroll down the page and read "How to install". The Features - YouTube TV browser - Fully automated playlist - VIP manager - Add/remove VIPs who can manage the Cinema. - Synced playback - Vote to skip video - Real-time Ambilight - Open/close the cinema - Kick players from the cinema - And a lot more! Commands Global Cmds: - F2 - Toggle the Cinema Panel (You have to be inside) - M - Mute the playback [This is currently bugged] - /play url - Adds a video to the playlist - /playlist - Shows the playlist in the chat - /geturl - Gives you the URL to the current video - /proper - Adjusts the width of the screen making it more normal VIP/Admin Cmds: - /replay - Replays the current video - /skipvideo - Force skip the current video - /stopplay - Stops all playback and clears the playlist - /remove nr - Removes a video from the playlist. E.x.: /remove 2 How to install Step 1 (Unpack resource) First update your server to the latest version! You need atleast version 1.5.2 anything lower is not supported! Type 'ver' without quotes into the server console (F8) to see what version you're running. Unpack the zip file to your server resources folder: Multi Theft Auto\server\mods\deathmatch\resources\ in a new folder called CinemaExperience Make sure you're an admin on your server if you don't know how to do that go and read the MTA wiki. Step 2 (grant resource admin access) Press P on your keyboard to open your admin panel and add the resource to the Admin ACL group To do that go to the Resources tab and click on the 'Manage ACL' button in the top right corner then double click 'Admin' under 'Groups' and press 'Add Object'. Type in resource.CinemaExperience and click on OK. Step 3 (start resource) Now start the resource. Open the in-game console (F8) and type in refresh and press enter, then type in start CinemaExperience and hit enter again. Step 4 (add yourself as VIP) Finally, you need to add yourself as VIP in the cinema panel. In order to do that, enter the cinema and press F2 to open up the cinema panel. Now open the Settings tab, then open the Visitors tab (on the right side of the panel) and select your name. Click on 'Add/remove VIP'. That's it! You have now access to all the settings so you can enjoy our Cinema Experience to the fullest How to change binds You can change the bind for toggling the panel in the s-binds.Lua file. Known issues / FAQ Installation: - I can't connect to API? Make sure the resource has admin privileges and server is up to date (1.5.2). Also try extracting the resource. - I can't add videos? If you can't control the settings after you've added yourself as VIP, unpack the resource and delete the config files in the cfg folder. Still need help? Leave us a message below or contact me through the G&T Mapping Facebook page (link at the bottom or top) Panel: - There's ads covering the screen! Sometimes there may be ads covering the video on the screen. You can click on the Skip Ads button to refresh the video, usually this will remove any ads on the video. Sorry for the inconvenience. There is no other solution at the moment. In the future - Add option to limit how many videos can be added per user - Add option to set the max length of a video - Add option to change the screens width and height and position This list isn't finished yet Bug reports / Questions / Feedback If you encounter any bugs, glitches, have any suggestions, feature requests, or simply just like to ask a question, please don't hesitate to post them Thanks!
    1 point
  9. Hello there, Around four years ago, I uploaded my first version of the SQL based gang system, and today, I'm releasing my completely remade resource, with new features and options. In this new system, you can choose to use MySQL or SQLite as storage method in connection.lua. [-] Features: Creating gangs - Custom color - Custom tag (currently useless, up to you to do something with it) - Bank - Message of the day (motd) - Logs Member system - Inviting - Kicking - Ranks - Shouts - Give leadership Bank system - Deposit - Withdraw Rank system - Creating ranks - Custom privileges per rank - Renaming/changing privileges of existing ranks [-] Exported functions: addGang ( name, leader, color (table), tag ) removeGang ( name ) doesGangExist ( name ) getGangList ( SQL: true/false ) getGangData ( gangName, dataName (leader, bank, motd, color, tag, members, createdOn, logs (table), ranks(table)) ) setGangData ( gangname, dataName (Can be a table), dataValue (Can be a table) ) getGangMembers ( gangName ) addGangMember ( gangName, accountName, rank, addedBy ) removeGangMember ( gangName, accountName, kickerName ) getMemberData ( gangName, accountName, dataName (gangName, account, rank, nick, lastAction, addedBy, joinedOn) ) setMemberData ( gangName, accountName, dataName (Can be a table), dataValue (Can be a table) ) getAccountGang ( accountName ) getPlayerGangInvitation ( player ) getPlayersByGang ( gangName ) getPlayerGang ( player ) getPlayerGangRank ( player ) addGangLogMessage ( gangName, message ) clearGangLogMessages ( gangName ) addGangRank ( gangName, rankName, privileges (table) ) removeGangRank ( gangName, rankName ) doesRankExist ( gangName, rankName ) isRankAllowedTo ( gangName, rankName, action (kick, invite, log, setrank, motd, tag, color, bank_withdraw, clearlog, createrank, editrank, delrank, shout) ) [-] How to use it: U (default bind) - Gang Control Panel. /gangs (default cmd) - Shows a list of all gangs. /creategang (default cmd) -- To create a gang /gc (default cmd) -- Gang chat /gshout (default cmd) -- Global gang shout /accept (default cmd) -- To accept gang invitations Example: /creategang Test The resource comes with plenty of settings, so you can customize it at will. DOWNLOAD: HERE
    1 point
  10. الـسلام عليكم ورحمهـ الله وبركآآآتهـ بعد اعتزآل دام قرآبهـ السنتين عن العبهـ والبرمجهـ الحمدلله اليوم رجعتـ لكم وبدايات تعلمي للبرمجه في سنه الـ2011 وحبيت المجال البرمجهـ ليس فقط ف العبهـ ولاكن اصبح لي معرفهـ لبرمجه البرآمج للكمبيوتر وكمان القليل من برمجه مواقع الويب وبفضل الله اليوم ابتديت في مشروع جديد سـيرفر من الـ0 برمجهـ حديثهـ كليـآ وشغـل جديد على سيرفرآت العرب وان شاء الله رح تشوفوهـ في عودهـ لسيرفر محترفين جرآند واخر برمجهـ لي كان قيم مود السيرفر من حوالي سنتين صوره بالتوقيع [GTA-PRO] احب اشــكر كل الي سألو عني في غيـآبي تحيـآتي لكم والي بيحتاج مسـآعدهـ رح اكون بالخدمهـ ..
    1 point
  11. Hello guys, today finally I finished my Login Panel Really It was a hard thing to do, but I never gave up, anyway I hope you love it Download : https://community.multitheftauto.com/in ... s&id=13655 FFS Logo Font : REMOVED - Moderators (proof required that it's not stolen) Bye
    1 point
  12. السلام عليكم ورحمة الله وبركاتة انا لسا اليوم مسوي شوب اسلحة يفتح بزر اف 7 بعد ما انتهيت لقيت الشوب لا يفتح ارجوا من الخبراء يحلو المشكلة ويشوفو الخطأ الكلنت GUIEditor = { button = {}, window = {}, staticimage = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(109, 38, 568, 512, "Wepson Shop | Arabs-Pro | V.1", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 0.72) GUIEditor.staticimage[1] = guiCreateStaticImage(10, 19, 548, 483, ":Weapson-ShopV1/images/1.png", false, GUIEditor.window[1]) GUIEditor.staticimage[2] = guiCreateStaticImage(10, 10, 91, 89, ":Weapson-ShopV1/images/16.png", false, GUIEditor.staticimage[1]) GUIEditor.button[1] = guiCreateButton(7, 109, 94, 45, "500000$", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.button[1], "default-bold-small") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFE10000") GUIEditor.staticimage[3] = guiCreateStaticImage(217, 10, 107, 89, ":Weapson-ShopV1/images/22.png", false, GUIEditor.staticimage[1]) GUIEditor.button[2] = guiCreateButton(217, 109, 107, 45, "3000$", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.button[2], "default-bold-small") guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFE10000") GUIEditor.staticimage[4] = guiCreateStaticImage(435, 11, 93, 88, ":Weapson-ShopV1/images/23.png", false, GUIEditor.staticimage[1]) GUIEditor.button[3] = guiCreateButton(431, 109, 97, 45, "1000$", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.button[3], "default-bold-small") guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFE10000") GUIEditor.staticimage[5] = guiCreateStaticImage(10, 170, 92, 88, ":Weapson-ShopV1/images/25.png", false, GUIEditor.staticimage[1]) GUIEditor.button[4] = guiCreateButton(8, 268, 94, 45, "25000$", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.button[4], "default-bold-small") guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFE10000") GUIEditor.staticimage[6] = guiCreateStaticImage(212, 170, 102, 88, ":Weapson-ShopV1/images/26.png", false, GUIEditor.staticimage[1]) GUIEditor.button[5] = guiCreateButton(212, 268, 102, 45, "25000$", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.button[5], "default-bold-small") guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFE10000") GUIEditor.staticimage[7] = guiCreateStaticImage(425, 170, 102, 91, ":Weapson-ShopV1/images/28.png", false, GUIEditor.staticimage[1]) GUIEditor.button[6] = guiCreateButton(425, 268, 102, 45, "5000$", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.button[6], "default-bold-small") guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFE10000") GUIEditor.staticimage[8] = guiCreateStaticImage(8, 323, 93, 94, ":Weapson-ShopV1/images/29.png", false, GUIEditor.staticimage[1]) GUIEditor.button[7] = guiCreateButton(7, 428, 94, 45, "30000$", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.button[7], "default-bold-small") guiSetProperty(GUIEditor.button[7], "NormalTextColour", "FFE10000") GUIEditor.staticimage[9] = guiCreateStaticImage(211, 329, 103, 93, ":Weapson-ShopV1/images/31.png", false, GUIEditor.staticimage[1]) GUIEditor.button[8] = guiCreateButton(211, 428, 102, 45, "40000$", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.button[8], "default-bold-small") guiSetProperty(GUIEditor.button[8], "NormalTextColour", "FFE10000") GUIEditor.staticimage[10] = guiCreateStaticImage(420, 331, 107, 91, ":Weapson-ShopV1/images/32.png", false, GUIEditor.staticimage[1]) GUIEditor.button[9] = guiCreateButton(420, 428, 107, 45, "3000$", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.button[9], "default-bold-small") guiSetProperty(GUIEditor.button[9], "NormalTextColour", "FFE10000") end ) function OpenWin() لجعل النافذة تفتح بزر if guiGetVisible ( GUIEditor.window[1] ) then guiSetVisible ( GUIEditor.window[1], false ) للتحقق ان النافذة تكون مغلقة showCursor(false) مؤشر الموس غير موجود guiSetInputEnabled(false) else guiSetVisible ( GUIEditor.window[1], true ) يجعل النافذة تظهر ( موجودة) showCursor(true) يجعل المؤثر يظهر guiSetInputEnabled(true) end الاند هذي من اجل الفنكشن end الاند هذي من اجل ال اف bindKey("F7", "down", OpenWin) هنا زر اللوحة addEventHandler('onClientGUIClick', root, function ( ) if ( source == GUIEditor.button[1] ) then triggerServerEvent('Grenade', localPlayer) elseif ( source == GUIEditor.button[2] ) then triggerServerEvent('Colt 45', localPlayer) elseif ( source == GUIEditor.button[3] ) triggerServerEvent('Silenced', localPlayer) elseif ( source == GUIEditor.button[4] ) triggerServerEvent('Combat SG', localPlayer) elseif ( source == GUIEditor.button[5] ) triggerServerEvent('Sawed-off', localPlayer) elseif ( source == GUIEditor.button[6] ) triggerServerEvent('Tec-9', localPlayer) elseif ( source == GUIEditor.button[7] ) triggerServerEvent('MP5', localPlayer) elseif ( source == GUIEditor.button[8] ) triggerServerEvent('M4', localPlayer) elseif ( source == GUIEditor.button[9] ) triggerServerEvent('Uzi', localPlayer) end end ) السيرفر ) addEvent('Grenade', true) addEventHandler('Grenade', root, function ( ) -- فتح وظيفة local PlayerMoney = getPlayerMoney(source) if ( PlayerMoney >= 50000) then-------للتحقق انو فلوس الاعب انو 200 او اكتر takePlayerMoney(source,50000) يسحب من الاعب 50000 giveWeapon( source, 16, 3 ) -- اعطاء سلاح رشاش ب200 طلق للاعب اللي ضغط الزر outputChatBox('تم شراء سلاح Grenade', source, 255, 0 ,0 ) --- رسالة عند اخذ سلاح else----- اذا ما كان مع الاعب 50000 يطلع له كلام في الشات outputChatBox("فلوسك لا تكفي", source, 255, 0, 0, true) end ) addEvent('Colt 45', true) --- الوظيفة Colt 45 addEventHandler('Colt 45', root, -- الوظيفة Colt 45 function ( ) -- فتح وظيفة local PlayerMoney = getPlayerMoney(source) if ( PlayerMoney >= 3000) then-------للتحقق انو فلوس الاعب انو 200 او اكتر takePlayerMoney(source,3000) يسحب من الاعب 2000 giveWeapon( source, 22, 99999 ) -- اعطاء سلاح رشاش ب200 طلق للاعب اللي ضغط الزر outputChatBox('تم شراء مسدس Colt 45', source, 255, 0 ,0 ) --- رسالة عند اخذ سلاح else----- اذا ما كان مع الاعب 2000 يطلع له كلام في الشات outputChatBox("فلوسك لا تكفي", source, 255, 0, 0, true) end ) addEvent('Silenced', true) --- الوظيفة sniper addEventHandler('Silenced', root, -- الوظيفة sniper function ( ) -- فتح وظيفة local PlayerMoney = getPlayerMoney(source) if ( PlayerMoney >= 1000) then-------للتحقق انو فلوس الاعب انو 200 او اكتر takePlayerMoney(source,1000) يسحب من الاعب 2000 giveWeapon( source, 23, 9999 ) -- اعطاء سلاح رشاش ب200 طلق للاعب اللي ضغط الزر outputChatBox('تم شراء مسدس Silenced', source, 255, 0 ,0 ) --- رسالة عند اخذ سلاح else----- اذا ما كان مع الاعب 2000 يطلع له كلام في الشات outputChatBox("فلوسك لا تكفي", source, 255, 0, 0, true) end ) addEvent('Combat Shotgun', true) --- الوظيفة Combat Shotgun addEventHandler('Combat Shotgun', root, -- الوظيفة Combat Shotgun function ( ) -- فتح وظيفة local PlayerMoney = getPlayerMoney(source) if ( PlayerMoney >= 25000) then-------للتحقق انو فلوس الاعب انو 200 او اكتر takePlayerMoney(source,25000) يسحب من الاعب 2000 giveWeapon( source, 27, 99999 ) -- اعطاء سلاح رشاش ب200 طلق للاعب اللي ضغط الزر outputChatBox('تم شراء Combat Shotgun', source, 255, 0 ,0 ) --- رسالة عند اخذ سلاح else----- اذا ما كان مع الاعب 2000 يطلع له كلام في الشات outputChatBox("فلوسك لا تكفي", source, 255, 0, 0, true) end ) addEvent('Sawed-off', true) --- الوظيفة uzi addEventHandler('Sawed-off', root, -- الوظيفة uzi function ( ) -- فتح وظيفة local PlayerMoney = getPlayerMoney(source) if ( PlayerMoney >=25000) then-------للتحقق انو فلوس الاعب انو 200 او اكتر takePlayerMoney(source,25000) يسحب من الاعب 2000 giveWeapon( source, 26, 9999 ) -- اعطاء سلاح رشاش ب200 طلق للاعب اللي ضغط الزر outputChatBox('تم شراء Sawed-off', source, 255, 0 ,0 ) --- رسالة عند اخذ سلاح else----- اذا ما كان مع الاعب 2000 يطلع له كلام في الشات outputChatBox("فلوسك لا تكفي", source, 255, 0, 0, true) end ) addEvent('Tec-9', true) --- الوظيفة m4 addEventHandler('Tec-9', root, -- الوظيفة m4 function ( ) -- فتح وظيفة local PlayerMoney = getPlayerMoney(source) if ( PlayerMoney >= 3000) يسحب من الاعب 2000 giveWeapon( source, 32, 9999 ) -- اعطاء سلاح رشاش ب200 طلق للاعب اللي ضغط الزر outputChatBox('تم شراء Tec-9', source, 255, 0 ,0 ) --- رسالة عند اخذ سلاح else----- اذا ما كان مع الاعب 2000 يطلع له كلام في الشات outputChatBox("فلوسك لا تكفي", source, 255, 0, 0, true) end ) addEvent('MP5', true) --- الوظيفة m4 addEventHandler('MP5', root, -- الوظيفة m4 function ( ) -- فتح وظيفة local PlayerMoney = getPlayerMoney(source) if ( PlayerMoney >= 30000) then-------للتحقق انو فلوس الاعب انو 200 او اكتر takePlayerMoney(source,30000) يسحب من الاعب 2000 giveWeapon( source, 27, 9999 ) -- اعطاء سلاح رشاش ب200 طلق للاعب اللي ضغط الزر outputChatBox('تم شراء MP5', source, 255, 0 ,0 ) --- رسالة عند اخذ سلاح else----- اذا ما كان مع الاعب 2000 يطلع له كلام في الشات outputChatBox("فلوسك لا تكفي", source, 255, 0, 0, true) end ) addEvent('M4', true) --- الوظيفة m4 addEventHandler('M4', root, -- الوظيفة m4 function ( ) -- فتح وظيفة local PlayerMoney = getPlayerMoney(source) if ( PlayerMoney >= 40000) then-------للتحقق انو فلوس الاعب انو 200 او اكتر takePlayerMoney(source,40000) يسحب من الاعب 2000 giveWeapon( source, 31, 9999 ) -- اعطاء سلاح رشاش ب200 طلق للاعب اللي ضغط الزر outputChatBox('تم شراء M4', source, 255, 0 ,0 ) --- رسالة عند اخذ سلاح else----- اذا ما كان مع الاعب 2000 يطلع له كلام في الشات outputChatBox("فلوسك لا تكفي", source, 255, 0, 0, true) end ) addEvent('Uzi', true) --- الوظيفة sniper addEventHandler('Uzi', root, -- الوظيفة sniper function ( ) -- فتح وظيفة local PlayerMoney = getPlayerMoney(source) if ( PlayerMoney >= 3000) then-------للتحقق انو فلوس الاعب انو 200 او اكتر takePlayerMoney(source,3000) يسحب من الاعب 2000 giveWeapon( source, 28, 9999 ) -- اعطاء سلاح رشاش ب200 طلق للاعب اللي ضغط الزر outputChatBox(تم شراء رشاش Uzi', source, 255, 0 ,0 ) --- رسالة عند اخذ سلاح else----- اذا ما كان مع الاعب 2000 يطلع له كلام في الشات outputChatBox("فلوسك لا تكفي", source, 255, 0, 0, true) end ) الميتا <meta> <info author="mazzika" version="V1" type="script" /> <script src="s_m.lua" type="server" /> <script src="c_m.lua" type="client" /> <file src="images/1.png"/> <file src="images/16.png"/> <file src="images/22.png"/> <file src="images/23.png"/> <file src="images/25.png"/> <file src="images/26.png"/> <file src="images/28.png"/> <file src="images/29.png"/> <file src="images/31.png"/> <file src="images/32.png"/> </meta>
    1 point
  13. شكرا لك تم الافاده ..
    1 point
  14. Entonces, usa getElementsByType, los metes mediante el name y pillas los seleccionados con GuiGridListGetSelectedItem y GuiGridListGetItemText para pillar el nombre del jugador. Cuando lo tengas usas un triggerServerEvent o mismo en 'cliente' (no sé si funcionaría correctamente), con la función que te di para tpearlos a la dimensión que quieres.
    1 point
  15. الناس الي تقول اللون الأبيض مهو عاجبهم,ستتم إضافة تصميمات جديدة اختيارية ان شاء الله حسب خطتنا المجدولة
    1 point
  16. سلام عليكم تقدم لكم شركة | USQL قواعد بيانات من نوع MYSQL يمكنك أنشاء قاعدة بيانات وتحكم بها عبر PHPMYADMIN ويمكنك ربط سيرفرك بكل سهولة مع قاعدة البيانات قم بالحصول عليها الأن من هنا أضغط هنا يمكنك تعلم دروس من هنا أضغط هنا هل تريد المساعدة مجانا أضفني على سكايب fpsserver شكرا لكم
    1 point
  17. انت تقول كذا , لاكن غيرك يشك وله الحق انه يشك مفروض تسأل عنه بالمنتدى وتشوف ماضيه وهل هو ثقه ام لا وبالتوفيق ان شاء الله
    1 point
  18. It is only necessary to use event handlers with function variables if you plan to use removeEventHandler on that event later on. This will not actually remove the event: -- Add an event addEventHandler("onPlayerJoin", root, function() outputChatBox("Player joined!") end ) -- Now to remove the event (WILL NOT ACTUALLY REMOVE THE EVENT) removeEventHandler("onPlayerJoin", root, function() outputChatBox("Player joined!") end ) It does not work because even though both functions contain the same code, they are technically different functions. This will remove the event, however: function announceJoin() outputChatBox("Player joined!") end -- Add an event addEventHandler("onPlayerJoin", root, announceJoin) -- Now to remove the event removeEventHandler("onPlayerJoin", root, announceJoin)
    1 point
  19. sounds great. itll be the first resource i add on the update. thanks
    1 point
  20. How about this code? Instead of looping through the "mapSpawns" table to find the spawn that has the correct key, you can directly access the table. See line 3 below. for _, player in ipairs (getElementsByType ("player")) do local spawnIndex = math.random (1, #mapSpawns) local spawn = mapSpawns[spawnIndex] local veh = createVehicle (spawn.id, spawn.x, spawn.y, spawn.z) if veh then outputDebugString ("created veh") end warpPedIntoVehicle (player, veh) setCameraTarget (player, player) fadeCamera (player, true) end It's also a good idea to name variables something more informative, so I have made this change for you too. Depending on how many items you have in `mapSpawns`, and how many players you have, this could have been the source of your issue. It's unlikely this was the actual cause of the network trouble, but nevertheless, give it a go and get back to us.
    1 point
  21. What A Nice Script Keep it Up Bro ! Regards , coNolel
    1 point
  22. ياخي ليه ما تساعدوني
    1 point
  23. ما ظبط للاسف الاكواد addEvent("Drugs:showDrugsGUI", true) function setStats1 ( player, god, speed, lsd, heroin, weed, steroids, mescaline ) if ( source == GUIEditor_Grid[1] ) then row, col = guiGridListGetSelectedItem ( GUIEditor_Grid[1] ) if ( row and col and row ~= -1 and col ~= -1 ) then local playername = guiGridListGetItemText ( GUIEditor_Grid[1], row, col ) local thePlayer = getPlayerFromName ( playername ) if ( thePlayer ) then guiSetText(lblGod, " God "..(tostring(god))) guiSetText(lblLSD, " LSD ".. (tostring(lsd) or 0)) guiSetText(lblHeroin, " Heroin ".. (tostring(heroin) or 0)) guiSetText(lblWeed, " Weed ".. (tostring(weed) or 0)) guiSetText(lblSteroids," Steroids "..(tostring(steroids) or 0)) guiSetText(lblMescaline, " Mescaline "..(tostring(mescaline) or 0 )) end end end end addEventHandler("Drugs:showDrugsGUI", localPlayer, setStats1) addEventHandler ( "onClientGUIDoubleClick", root, setStats1 )
    1 point
  24. جرب شيل or 0 + اذا زبط وش يطلع لك في الدي بوق
    1 point
  25. جربت ما صار يجي نفس الكلام يجي مكان العدد في اللابل nil
    1 point
  26. Bueno, en esta ocasión vengo a aportar un script, bastante sencillo pero útil a la hora de manejar nuestro archivo acl.xml, en cuanto a refrescar, guardar o añadir nuevos elementos a un grupo ACL. Esta versión cuenta también con un panel DX personalizado el cual podremos modificar sin ningún problema, así también con animaciones de 'hover' y agrandamiento de texto cuando el ratón esté por encima de los botones. El comando para abrir el panel se puede modificar en el archivo meta.xml, así también tenemos la posibilidad de ver quién ha usado el comando y para qué, teniendo un almacenamiento interno en una tabla, que podremos ver su contenido con el comando /viewTasks Clickea aquí para ir a la descarga directa del archivo, con las imágenes y todo lo necesario para iniciarlo correctamente Código meta.xml <meta> <script src="server.lua" type="server"/> <script src="client.lua" type="client"/> <file src="files/logo.png"/> <settings> <setting name="command" value="acleditor"/> </settings> <!-- Dont touch this. Are the permissions to use this script. We need specific permissions to reload and set permissions to acl --> <aclrequest> <right name="general.ModifyOtherObjects" access="true" /> <right name="function.aclReload" access="true" /> <right name="function.aclSetRight" access="true" /> <right name="function.aclGroupAddObject" access="true" /> <right name="function.aclGroupRemoveObject" access="true" /> <right name="function.aclGetGroup" access="true" /> <right name="function.aclSave" access="true" /> </aclrequest> </meta> Código client.lua local sx, sy = guiGetScreenSize( ) local sourceX, sourceY = 1366, 768 local open function isMouseInPosition ( x, y, width, height ) if ( not isCursorShowing ( ) ) then return false end local sx, sy = guiGetScreenSize ( ) local cx, cy = getCursorPosition ( ) local cx, cy = ( cx * sx ), ( cy * sy ) if ( cx >= x and cx <= x + width ) and ( cy >= y and cy <= y + height ) then return true else return false end end function drawEdits ( ) playerAccount = guiCreateEdit((626/sourceX)*sx, (495/sourceY)*sy, (225/sourceX)*sx, (24/sourceY)*sy, "", false) playerPermission = guiCreateEdit((626/sourceX)*sx, (529/sourceY)*sy, (225/sourceX)*sx, (24/sourceY)*sy, "", false) end function drawPanel ( ) -- Principal drawing: dxDrawRectangle((616/sourceX)*sx, (230/sourceY)*sy, (398/sourceX)*sx, (380/sourceY)*sy, tocolor(249, 115, 7, 45), false) -- Main window dxDrawImage((616/sourceX)*sx, (230/sourceY)*sy, (98/sourceX)*sx, (90/sourceY)*sy, ":acleditor/files/logo.png", 0, 0, 0, tocolor(255, 255, 255, 128), false) -- Script logo.png dxDrawText("ACL Editor | ACL manager tool\nEdit here your acl.xml file without\ncommands", (712/sourceX)*sx, (236/sourceY)*sy, (1014/sourceX)*sx, (320/sourceY)*sy, tocolor(255, 255, 255, 255), (sy/sourceY) * 0.39, "bankgothic", "center", "center", false, false, false, false, false) -- Button: reloadAcl if isMouseInPosition( (621/sourceX)*sx, (330/sourceY)*sy, (91/sourceX)*sx, (40/sourceY)*sy ) then dxDrawRectangle((621/sourceX)*sx, (330/sourceY)*sy, (91/sourceX)*sx, (40/sourceY)*sy, tocolor(249, 115, 70, 111), false) dxDrawText("Reload ACL", (621/sourceX)*sx, (331/sourceY)*sy, (712/sourceX)*sx, (370/sourceY)*sy, tocolor(255, 255, 255, 255), (sy/sourceY) * 0.32, "bankgothic", "center", "center", false, false, false, false, false) else dxDrawRectangle((621/sourceX)*sx, (330/sourceY)*sy, (91/sourceX)*sx, (40/sourceY)*sy, tocolor(249, 115, 7, 111), false) dxDrawText("Reload ACL", (621/sourceX)*sx, (331/sourceY)*sy, (712/sourceX)*sx, (370/sourceY)*sy, tocolor(255, 255, 255, 255), (sy/sourceY) * 0.29, "bankgothic", "center", "center", false, false, false, false, false) end -- Button: saveACL if isMouseInPosition( (621/sourceX)*sx, (389/sourceY)*sy, (91/sourceX)*sx, (40/sourceY)*sy ) then dxDrawRectangle((621/sourceX)*sx, (389/sourceY)*sy, (91/sourceX)*sx, (40/sourceY)*sy, tocolor(249, 115, 70, 111), false) dxDrawText("Save ACL", (621/sourceX)*sx, (390/sourceY)*sy, (712/sourceX)*sx, (429/sourceY)*sy, tocolor(255, 255, 255, 255), (sy/sourceY) * 0.32, "bankgothic", "center", "center", false, false, false, false, false) else dxDrawRectangle((621/sourceX)*sx, (389/sourceY)*sy, (91/sourceX)*sx, (40/sourceY)*sy, tocolor(249, 115, 7, 111), false) dxDrawText("Save ACL", (621/sourceX)*sx, (390/sourceY)*sy, (712/sourceX)*sx, (429/sourceY)*sy, tocolor(255, 255, 255, 255), (sy/sourceY) * 0.29, "bankgothic", "center", "center", false, false, false, false, false) end -- Button: addaclpermission if isMouseInPosition( (850/sourceX)*sx, (450/sourceY)*sy, (159/sourceX)*sx, (39/sourceY)*sy ) then dxDrawRectangle((850/sourceX)*sx, (450/sourceY)*sy, (159/sourceX)*sx, (39/sourceY)*sy, tocolor(249, 115, 70, 111), false) dxDrawText("Add acl group", (882/sourceX)*sx, (450/sourceY)*sy, (973/sourceX)*sx, (489/sourceY)*sy, tocolor(255, 255, 255, 255), (sy/sourceY) * 0.32, "bankgothic", "center", "center", false, false, false, false, false) else dxDrawRectangle((850/sourceX)*sx, (450/sourceY)*sy, (159/sourceX)*sx, (39/sourceY)*sy, tocolor(249, 115, 7, 111), false) dxDrawText("Add acl group", (882/sourceX)*sx, (450/sourceY)*sy, (973/sourceX)*sx, (489/sourceY)*sy, tocolor(255, 255, 255, 255), (sy/sourceY) * 0.29, "bankgothic", "center", "center", false, false, false, false, false) end -- Button: removeaclpermission if isMouseInPosition( (626/sourceX)*sx, (450/sourceY)*sy, (159/sourceX)*sx, (39/sourceY)*sy ) then dxDrawRectangle((626/sourceX)*sx, (450/sourceY)*sy, (159/sourceX)*sx, (39/sourceY)*sy, tocolor(249, 115, 70, 111), false) dxDrawText("Remove acl group", (660/sourceX)*sx, (450/sourceY)*sy, (751/sourceX)*sx, (489/sourceY)*sy, tocolor(255, 255, 255, 255), (sy/sourceY) * 0.32, "bankgothic", "center", "center", false, false, false, false, false) else dxDrawRectangle((626/sourceX)*sx, (450/sourceY)*sy, (159/sourceX)*sx, (39/sourceY)*sy, tocolor(249, 115, 7, 111), false) dxDrawText("Remove acl group", (660/sourceX)*sx, (450/sourceY)*sy, (751/sourceX)*sx, (489/sourceY)*sy, tocolor(255, 255, 255, 255), (sy/sourceY) * 0.29, "bankgothic", "center", "center", false, false, false, false, false) end -- Button: close panel if isMouseInPosition( (765/sourceX)*sx, (559/sourceY)*sy, (91/sourceX)*sx, (40/sourceY)*sy ) then dxDrawRectangle((765/sourceX)*sx, (559/sourceY)*sy, (91/sourceX)*sx, (40/sourceY)*sy, tocolor(249, 115, 70, 111), false) dxDrawText("Close panel", (907/sourceX)*sx, (730/sourceY)*sy, (712/sourceX)*sx, (432/sourceY)*sy, tocolor(255, 255, 255, 255), (sy/sourceY) * 0.35, "bankgothic", "center", "center", false, false, false, false, false) else dxDrawRectangle((765/sourceX)*sx, (559/sourceY)*sy, (91/sourceX)*sx, (40/sourceY)*sy, tocolor(249, 115, 7, 111), false) dxDrawText("Close panel", (907/sourceX)*sx, (730/sourceY)*sy, (712/sourceX)*sx, (432/sourceY)*sy, tocolor(255, 255, 255, 255), (sy/sourceY) * 0.35, "bankgothic", "center", "center", false, false, false, false, false) end -- Info dxDrawText("Account", (856/sourceX)*sx, (495/sourceY)*sy, (1009/sourceX)*sx, (516/sourceY)*sy, tocolor(255, 255, 255, 255), (sy/sourceY) * 0.59, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText("ACL Group", (856/sourceX)*sx, (529/sourceY)*sy, (1009/sourceX)*sx, (550/sourceY)*sy, tocolor(255, 255, 255, 255), (sy/sourceY) * 0.59, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText("Using this button you can reload your acl\nto add the new permissions inside the file", (715/sourceX)*sx, (330/sourceY)*sy, (1014/sourceX)*sx, (370/sourceY)*sy, tocolor(255, 255, 255, 255), (sy/sourceY) * 0.29, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText("Using this button you can save your acl\nfile ingame", (715/sourceX)*sx, (389/sourceY)*sy, (1014/sourceX)*sx, (429/sourceY)*sy, tocolor(255, 255, 255, 255), (sy/sourceY) * 0.29, "bankgothic", "center", "center", false, false, false, false, false) end function closeAll( ) if isElement(playerAccount) then destroyElement( playerAccount ) end if isElement(playerPermission) then destroyElement( playerPermission ) end removeEventHandler( "onClientRender", getRootElement( ), drawPanel ) open = nil showCursor( false ) end addEventHandler( "onClientClick", getRootElement( ), function( button, state ) if button == "left" and state == "down" and open == true then local boton_reloadACL = isMouseInPosition( (621/sourceX)*sx, (330/sourceY)*sy, (91/sourceX)*sx, (40/sourceY)*sy ) local boton_saveACL = isMouseInPosition( (621/sourceX)*sx, (389/sourceY)*sy, (91/sourceX)*sx, (40/sourceY)*sy ) local boton_close = isMouseInPosition( (765/sourceX)*sx, (559/sourceY)*sy, (91/sourceX)*sx, (40/sourceY)*sy ) local boton_addAcl = isMouseInPosition( (850/sourceX)*sx, (450/sourceY)*sy, (159/sourceX)*sx, (39/sourceY)*sy ) local boton_removeAcl = isMouseInPosition( (626/sourceX)*sx, (450/sourceY)*sy, (159/sourceX)*sx, (39/sourceY)*sy ) -- Edits local account_name = guiGetText( playerAccount ) local group_name = guiGetText( playerPermission ) if boton_reloadACL then triggerServerEvent( "acleditor:reloadACL", getLocalPlayer( ), getLocalPlayer( ) ) elseif boton_saveACL then triggerServerEvent( "acleditor:saveACL", getLocalPlayer( ), getLocalPlayer( ) ) elseif boton_addAcl then if #account_name > 1 then if #group_name > 0 then triggerServerEvent( "acleditor:givePermission", getLocalPlayer( ), getLocalPlayer( ), account_name, group_name ) else outputChatBox( "You need to add the name of the group you wanna add", 255, 145, 0 ) end else outputChatBox( "Add the account name you need to set", 255, 145, 0 ) end elseif boton_removeAcl then if #account_name > 1 then if #group_name > 0 then triggerServerEvent( "acleditor:removePermission", getLocalPlayer( ), getLocalPlayer( ), account_name, group_name ) else outputChatBox( "You need to add the name of the group you wanna remove from", 255, 145, 0 ) end else outputChatBox( "Add the account name you need to remove", 255, 145, 0 ) end elseif boton_close then closeAll( ) end end end ) addEvent( "acleditor:openPanel", true ) addEventHandler( "acleditor:openPanel", getRootElement( ), function( ) if open == nil then drawEdits( ) addEventHandler( "onClientRender", getRootElement( ), drawPanel ) open = true showCursor( true ) end end ) bindKey( "m", "down", function( ) if isCursorShowing( ) then showCursor( false ) else showCursor( true ) end end ) Código server.lua local _aclRequestTimer = { } local _aclTasks = { } local commandName = get( "command" ) -- This gets the commandName setting from meta.xml addCommandHandler( commandName, function( player ) local account = getPlayerAccount( player ) local permission = isObjectInACLGroup( "user."..getAccountName(account), aclGetGroup( "Admin" ) ) if account then if permission then triggerClientEvent( player, "acleditor:openPanel", player ) table.insert( _aclTasks, { task = "ACLOpen", name = getPlayerName( player ) } ) end else outputChatBox( "Fatal error, you dont have an account on this server.", player, 255, 145, 0 ) end end ) addCommandHandler( "viewTasks", function( player ) local tasks = _aclTasks local havePermissions = hasObjectPermissionTo( player, "command.viewTasks" ) or isObjectInACLGroup( "user."..getAccountName( player ), aclGetGroup( "Admin" ) ) if havePermissions then outputChatBox( "Tasks: ", player, 255, 255, 255 ) for i=1, #tasks do local data = tasks[i] outputChatBox( "• Task: "..data.task.." | Player: "..data.name, player, 255, 145, 0 ) end end end ) addEvent( "acleditor:givePermission", true ) addEventHandler( "acleditor:givePermission", getRootElement( ), function( player, accountName, groupName ) local accountName = table.concat( { accountName }, " " ) local groupName = table.concat( { groupName }, " " ) if accountName and groupName then local exists = aclGetGroup( groupName ) if exists then local is_in_group = isObjectInACLGroup( "user."..accountName, exists ) if is_in_group then outputChatBox( "• The account is currently in the ACL", player, 0, 255, 0 ) else outputChatBox( "• Added user."..accountName.." to group "..groupName.." succefully.", player, 0, 255, 0 ) aclGroupAddObject( exists, "user."..accountName ) table.insert( _aclTasks, { task = "ACLAdd", name = getPlayerName( player ) } ) end else outputChatBox( "• The specified group dont exists in your acl.xml", player, 255, 145, 0 ) end end end ) addEvent( "acleditor:removePermission", true ) addEventHandler( "acleditor:removePermission", getRootElement( ), function( player, accountName, groupName ) local accountName = table.concat( { accountName }, " " ) local groupName = table.concat( { groupName }, " " ) if accountName and groupName then local exists = aclGetGroup( groupName ) if exists then local is_in_group = isObjectInACLGroup( "user."..accountName, exists ) if is_in_group then aclGroupRemoveObject( exists, "user."..accountName ) outputChatBox( "• Removed user."..accountName.." from group "..groupName.." succefully.", player, 0, 255, 0 ) table.insert( _aclTasks, { task = "ACLRemove", name = getPlayerName( player ) } ) else outputChatBox( "• The account user."..accountName.." is not in the specified group.", player, 255, 145, 0 ) end else outputChatBox( "• The specified group dont exists in your acl.xml", player, 255, 145, 0 ) end end end ) addEvent( "acleditor:reloadACL", true ) addEventHandler( "acleditor:reloadACL", getRootElement( ), function( player ) local name = getPlayerName( player ) local success = aclReload( ) if success then if _aclRequestTimer[ player ] == nil then outputChatBox( "Reloaded acl.xml file succefully.", player, 255, 145, 0 ) _aclRequestTimer[ player ] = setTimer( function( ) _aclRequestTimer[ player ] = nil end, 2000, 1 ) table.insert( _aclTasks, { task = "Reload", name = name } ) else outputChatBox( "Do not flood the button, please. Wait "..math.floor(getTimerDetails( _aclRequestTimer[ player ] )/1000).." seconds.", player, 255, 145, 0 ) end else outputChatBox( "An error ocurred. Check if the acl.xml file exists", player, 255, 145, 0 ) end end ) addEvent( "acleditor:saveACL", true ) addEventHandler( "acleditor:saveACL", getRootElement( ), function( player ) local name = getPlayerName( player ) local success = aclSave() if success then if _aclRequestTimer[ player ] == nil then outputChatBox( "Saved acl.xml file succefully.", player, 255, 145, 0 ) _aclRequestTimer[ player ] = setTimer( function( ) _aclRequestTimer[ player ] = nil end, 2000, 1 ) table.insert( _aclTasks, { task = "Save", name = name } ) else outputChatBox( "Do not flood the button, please. Wait "..math.floor(getTimerDetails( _aclRequestTimer[ player ] )/1000).." seconds.", player, 255, 145, 0 ) end else outputChatBox( "An error ocurred. Check if the acl.xml file exists", player, 255, 145, 0 ) end end )
    1 point
  27. طيب الحين ليه ماتسوي يوم يضغط على القريد ليست مرتين يرسل ترايقر للسيرفر وفي السيرفر سايد فيه ترايقر يرسل للكلينت انت استقبل ترايقر الكلينت وعرف الي ارسلته بالترايقر وحطه في الليبل يعني تاخذ من سطر 8 الى سطر 13
    1 point
  28. Es que si no explicas qué es la maldita lista no entendemos for i = 1, #guiGridListGetRowCount(grid) do local player = getPlayerFromName(guiGridListGetItemText(grid, i, 1)) if ( player) then setElementDimension(player, 69) end end Vas a tener que cambiar la columna en la que está el nombre de los jugadores o de lo contrario no funcionará.
    1 point
  29. طيب بجربها شكرا لكم اخوي .. جربتها طيب بس الحين يجي باللابل اسم المخدرات بعدها nil لما اضغط ع اللاعب الاكواد .. [lua] function setStats ( player, god, speed, lsd, heroin, weed, steroids, mescaline ) if ( source == GUIEditor_Grid[1] ) then row, col = guiGridListGetSelectedItem ( GUIEditor_Grid[1] ) if ( row ~= -1 and col ~= -1 ) then local playername = guiGridListGetItemText ( GUIEditor_Grid[1], row, col ) local thePlayer = getPlayerFromName ( playername ) if ( thePlayer ) then guiSetText(lblGod, " God "..(tostring(god) or 0)) guiSetText(lblLSD, " LSD ".. (tostring(lsd) or 0)) guiSetText(lblHeroin, " Heroin ".. (tostring(heroin) or 0)) guiSetText(lblWeed, " Weed ".. (tostring(weed) or 0)) guiSetText(lblSteroids," Steroids"..(tostring(steroids) or 0)) guiSetText(lblMescaline, " Mescaline "..(tostring(mescaline) or 0 )) end end end end addEvent("Drugs:showDrugsGUI", true) addEventHandler("Drugs:showDrugsGUI", localPlayer, setStats) addEventHandler ( "onClientGUIDoubleClick", root, setStats ) [/lua]
    1 point
  30. وعليكم السلام انا اتفق معك بالفكرة + لكن ايش يضمن ان الادارة ماتسرق السكربت ؟
    1 point
  31. والله الستايل كويس نوعا ما , وفيه مميزات افضل من القديم ولكن مع الوقت بنتعود عليه مثل ماقال شويكي , وحاب اقول للي اكتشف مشكلة بالستايل يقدر يكلم واحد من ذول ويشرح المشكلةبالتفصيل (darkdreamingdan, jhxp or Jusonex)
    1 point
  32. No, it is not possible to use the old forum theme anymore. We have switched the whole forum software so it is no longer compatible with it. We may or may not make adjustments to the current theme though. All messages should have been transferred correctly. The reason you are having over a thousand of messages is due to the Private Messages system being different in IPS. Folders are no longer used so it dumped messages from all your folders into a single place, including ones from the Sent folder. I will look into increasing the PM box sizes for certain user groups, but you should really remove some of your older Private Messages... Edit: box sizes increased. Thanks for reporting the problem with signatures. As for the button for showing your own content, you can move your mouse over your profile avatar, then click the Find content link. Yes, it was set that way on purpose, due to users abusing the editing right and changing the topic contents after a longer while. If you need to edit your older posts, you can send a PM to moderator with the link to your post and your desired changes. This is most likely the correct amount. As stated in the Forum Rules, there are sections where post counts are not incremented when users post in them. We have applied that setting to more sections where users were posting solely to bump their post counts, mainly Offtopic subforums in the Other Languages section. Changing that setting did not affect user post counts retroactively. So if you posted in such a subforum before we applied the change, the posts you have made in there were still counting towards your post count. During the forum maintenance, we have recalculated all user post counts so that is why you have a different posts number now. Thanks for reporting the problem. We are already working hard to find the cause. Apparently you do not need to re-login, you can simply visit any subforum once that happens and you will be logged in again. And if the problem happens again, try visiting another subforum.
    1 point
  33. ^ مو مشكلة لو حط سورس لان السورس بالحدث الي انظغط عليه دبل كلك وهو مسوي تحقق if ( source === .... ) then
    1 point
  34. بالكلنت انت حاط القريد ليست سورس جرب عدلها لاسم القريد ليست
    1 point
  35. جرب انك تشيل or 0 From Client /
    1 point
  36. ^ +1 على الاقل خلوا الوضع اختياري الي يبي القديم يروح له والي يبي الجديد يروح له
    1 point
  37. IPB تقصد نقله المنتدى تغير تماما لكن اواجه مشاكل في تسجيل الدخول
    1 point
  38. عندك اخطاء , صححتها واختصرت لك الكود Client : GUIEditor = { button = {}, window = {}, staticimage = {} } GUIEditor.window[1] = guiCreateWindow(109, 38, 568, 512, "Wepson Shop | Arabs-Pro | V.1", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 0.72) GUIEditor.staticimage[1] = guiCreateStaticImage(10, 19, 548, 483, ":Weapson-ShopV1/images/1.png", false, GUIEditor.window[1]) GUIEditor.staticimage[2] = guiCreateStaticImage(10, 10, 91, 89, ":Weapson-ShopV1/images/16.png", false, GUIEditor.staticimage[1]) GUIEditor.button[1] = guiCreateButton(7, 109, 94, 45, "500000$", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.button[1], "default-bold-small") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFE10000") GUIEditor.staticimage[3] = guiCreateStaticImage(217, 10, 107, 89, ":Weapson-ShopV1/images/22.png", false, GUIEditor.staticimage[1]) GUIEditor.button[2] = guiCreateButton(217, 109, 107, 45, "3000$", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.button[2], "default-bold-small") guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFE10000") GUIEditor.staticimage[4] = guiCreateStaticImage(435, 11, 93, 88, ":Weapson-ShopV1/images/23.png", false, GUIEditor.staticimage[1]) GUIEditor.button[3] = guiCreateButton(431, 109, 97, 45, "1000$", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.button[3], "default-bold-small") guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFE10000") GUIEditor.staticimage[5] = guiCreateStaticImage(10, 170, 92, 88, ":Weapson-ShopV1/images/25.png", false, GUIEditor.staticimage[1]) GUIEditor.button[4] = guiCreateButton(8, 268, 94, 45, "25000$", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.button[4], "default-bold-small") guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFE10000") GUIEditor.staticimage[6] = guiCreateStaticImage(212, 170, 102, 88, ":Weapson-ShopV1/images/26.png", false, GUIEditor.staticimage[1]) GUIEditor.button[5] = guiCreateButton(212, 268, 102, 45, "25000$", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.button[5], "default-bold-small") guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFE10000") GUIEditor.staticimage[7] = guiCreateStaticImage(425, 170, 102, 91, ":Weapson-ShopV1/images/28.png", false, GUIEditor.staticimage[1]) GUIEditor.button[6] = guiCreateButton(425, 268, 102, 45, "5000$", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.button[6], "default-bold-small") guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFE10000") GUIEditor.staticimage[8] = guiCreateStaticImage(8, 323, 93, 94, ":Weapson-ShopV1/images/29.png", false, GUIEditor.staticimage[1]) GUIEditor.button[7] = guiCreateButton(7, 428, 94, 45, "30000$", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.button[7], "default-bold-small") guiSetProperty(GUIEditor.button[7], "NormalTextColour", "FFE10000") GUIEditor.staticimage[9] = guiCreateStaticImage(211, 329, 103, 93, ":Weapson-ShopV1/images/31.png", false, GUIEditor.staticimage[1]) GUIEditor.button[8] = guiCreateButton(211, 428, 102, 45, "40000$", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.button[8], "default-bold-small") guiSetProperty(GUIEditor.button[8], "NormalTextColour", "FFE10000") GUIEditor.staticimage[10] = guiCreateStaticImage(420, 331, 107, 91, ":Weapson-ShopV1/images/32.png", false, GUIEditor.staticimage[1]) GUIEditor.button[9] = guiCreateButton(420, 428, 107, 45, "3000$", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.button[9], "default-bold-small") guiSetProperty(GUIEditor.button[9], "NormalTextColour", "FFE10000") function OpenWin() if guiGetVisible ( GUIEditor.window[1] ) then guiSetVisible ( GUIEditor.window[1], false ) showCursor(false) guiSetInputEnabled(false) else guiSetVisible ( GUIEditor.window[1], true ) showCursor(true) guiSetInputEnabled(true) end end bindKey("F7", "down", OpenWin) addEventHandler('onClientGUIClick', root, function ( ) if ( source == GUIEditor.button[1] ) then triggerServerEvent('giveWeapon_', localPlayer , 50000 , 16, 3 , "Grenade " ) elseif ( source == GUIEditor.button[2] ) then triggerServerEvent('giveWeapon_', localPlayer , 3000 , 22, 99999 , "Colt 45" ) elseif ( source == GUIEditor.button[3] ) then triggerServerEvent('giveWeapon_', localPlayer , 1000 , 1000 , 23, 9999 , "Silenced" ) elseif ( source == GUIEditor.button[4] ) then triggerServerEvent('giveWeapon_', localPlayer , 25000 , 27, 99999 , "Combat SG" ) elseif ( source == GUIEditor.button[5] ) then triggerServerEvent('giveWeapon_', localPlayer , 25000 , 26, 9999 , "Sawed-off" ) elseif ( source == GUIEditor.button[6] ) then triggerServerEvent('giveWeapon_', localPlayer , 3000 , 32, 9999 , "Tec-9" ) elseif ( source == GUIEditor.button[7] ) then triggerServerEvent('giveWeapon_', localPlayer , 30000 , 27, 9999 , "MP5" ) elseif ( source == GUIEditor.button[8] ) then triggerServerEvent('giveWeapon_', localPlayer , 40000 , 31, 9999 , "M4") elseif ( source == GUIEditor.button[9] ) then triggerServerEvent('giveWeapon_', localPlayer , 3000 , 28, 9999 , "Uzi") end end ) ; Server : addEvent('giveWeapon_', true) addEventHandler('giveWeapon_', root, function ( arg1 , arg2 , arg3 , arg4 ) local PlayerMoney = getPlayerMoney ( source ) if ( PlayerMoney >= arg1 ) then takePlayerMoney ( source , arg1 ) giveWeapon( source, arg2 , arg3 ) outputChatBox('تم شراء سلاح '..arg4, source, 255, 0 ,0 , true ) else outputChatBox("فلوسك لا تكفي", source, 255, 0, 0, true) end end ) اذا ماشتغل اكتب باف8 debugscript 3 وصور الاخطاء الي تطلع لك بالتوفيق
    1 point
  39. عليكم السلام يعني لو تضغط على اسم لاعب بالقريد ليست يظهر لك كم معه من مخدرات ي مروج
    1 point
  40. Only one problem what i founded. Old mta forum had a links in functions to wiki.multitheftauto.com in code-paste window. Now it's lost. Also maybe increase a messages limit? I can't send a message to anyone, because " Your inbox is full. You must delete some messages before you can send any more. " (But i can do this before)
    1 point
  41. Do you there are his way to return to Theme old ?
    1 point
  42. https://wiki.multitheftauto.com/wiki/GuiCreateEdit wiki #2 example read it
    1 point
  43. https://github.com/multitheftauto/mtasa-blue/pull/63
    1 point
  44. Congratulations. Now go and script something actual good rather than copying other people.
    1 point
  45. The money will not be synchronized with the server side, it will be only set to the client. -- Client-side function panel() w = guiCreateWindow(x,y,w,h,"money",false) b = guiCreateButton(x,y,w,h,"moneyb", false, w) showCursor(true) addEventHandler("onClientGUIClick", b, function() triggerServerEvent("moneyhere", localPlayer) destroyElement(w) showCursor(false) end, false) end -- Server-side function givemoney() if source == client then givePlayerMoney(source, 10000) end end addEvent("moneyhere",true) addEventHandler("moneyhere", root, givemoney)
    1 point
  46. There won't be any updates etc. As I said I'm out of MTA. I just thought it might be more useful to put it somewhere in the community instead of just deleting it. And its not buggy at all. You just need to know how to handle such things.
    1 point
  47. Минусы не нужны, согласен. Уже много где только плюсы используются. А если у меня нет времени и я хочу помогать другим бесплатно на уровне вопроса-ответа? Взамен же ничего, даже плюсика в репу.
    1 point
×
×
  • Create New...