Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 30/09/17 in all areas

  1. math.ceilPlus < مدري لو الوظيفة موجودة من قبل ولكن على حسب بحثي مالقيتها > بسم الله الرحمن الرحيم, سلام عليكم ورحمة الله وبركاتة جبت لكم وظيفة مفيدة جداً لعمل بطولات وتيمات او اشياء من هالقبيل .. وظيفة للغة LUA يعني صالح في استعمال اي شيء يخص بلوا وليس فقط MTA علعموم نبدأ بالسورس كود | Source Code : function math.ceilPlus ( n ) if type ( n ) ~= 'number' or not tonumber ( n ) then error ( " ERROR : function ( math.ceilPlus ) bad argument 1# expected number, got "..type ( n ) ); return false; end local r; if ( n % 1 < 1 ) then r = math.floor ( n ) + 1; end return r or n; end السينتاكس | Syntax : int math.ceilPlus ( int n ) n : الرقم الذي تريد تطبيق عليه العملية الحسابية فائدة الوظيفية | Functional benefit : الوظيفة راح تحول الرقم الى الرقم الي بعده لو كان فيه كسور مثال | Example : local n = math.ceilPlus ( 5.5 ); print ( n ); -- Result : 6; local n = math.ceilPlus ( 1.5 ); print ( n ); -- Result : 2; local n = math.ceilPlus ( 5 / 2 ); -- 5 / 2 == 2.5 print ( n ); -- Result : 3; أتمنى ان الوظيفة عجبتكم وأذا عجبتكم سوو ثانكس او لايك للتعليق هذا + وبتوفيق للكل وسلام خير الختام
    4 points
  2. Scripts are relatively in very small sizes of just few kilobytes, and even if you had lots of resources with lots of scripts, it would probably never exceed 1 MB of download, and for normal users it never really exceeds 200 kb. If someone has a problem downloading this small amount of kilobytes, then they shouldn't even use the internet at all.
    3 points
  3. Hello everyone Today I've finished my new script : GCSS Details about this script : This is a system which allows you to chatting with other players on another server So when you open the panel, you will see on the left : The players on your current server On the right it's the Messages box, You will receive the messages from the players on your server and the players on the second server And in : Manage GCSS Tab which is for admins you will see a place to update admin message & Check new updates of the script Also you've a smiles in the script : Emoji window Note : Minimum MTA:SA Version to run all features is : 1.5.4 . _________________________________________________________________________________________________ Other Features : You can customize your messages color, All players will see the new color on each servers ( Default color is White ). You can press on "Do Not Disturb[ Silent Mode ]" checkBox to mute the alerts of the system and chatBox messages. _________________________________________________________________________________________________ Tutorial about how to use the script : Note : Do not edit the resource name, to avoid issues. 1- Write this code in a blank space in the ACL file for each servers : <group name="OutRPCGroup"> <acl name="OutRPC" /> <object name="resource.GCSS_Professional" /> </group> <acl name="OutRPC"> <right name="function.callRemote" access="true" /> </acl> <group name="InRPCGroup"> <acl name="InRPC" /> <object name="user.http_guest" /> </group> <acl name="InRPC"> <right name="resource.GCSS_Professional.http" access="true" /> </acl> 2- Go to "Settings.lua" file and edit the following : adminGroup_Permissions = 'Admin'; -- ***Edit this group name to your Admins group to give full permissions / leave if it's the same name. ManageGCSS_AccessTable = { 'Console', 'Admin', 'GCSS_Manager' }; -- ***Edit : This is the groups which can access "Manage GCSS" tab. local server_ip = '127.000.0.000:22005'; -- ***Put the server ip & port for each server you want to communicate with. -- Do not edit the codes below. addEvent( 'onServerSendMessage', true ) addEventHandler( 'onServerSendMessage', root, function( message ) local name = getPlayerName( source ) local data = getElementData( source, 'GCSS:MessageColor' ) local message = '[onPort:'..getServerPort( )..'][ '..name..' ] : '..message callRemote( server_ip, 'default', 10, 10000, getResourceName( getThisResource( ) ), 'SendGlobalMessage', callBack, message, data[1], data[2], data[3] ) triggerClientEvent( root, 'onClientReceiveMessage', source, message, data[1], data[2], data[3] ) end ) Note : You need to install the resource on each servers by use the following : On the first server : Write the ip & port of the second server & Run the resource On the second server : Write the ip & port of the first server & Run the resource _________________________________________________________________________________________________ Note : You can found the key to open the script in : "OpenKey.lua" file. _________________________________________________________________________________________________ Some pictures : Main panel & Customize panel & Emoji panel __________ Manage GCSS Tab _________________________________________________________________________________________________ Note : All shared GCSS Scripts are Demo, To Purchase full open source script or get a special edits : Contact the programmer[Me] on E-mail : [email protected] or [email protected] . *Purchase Price : $5 *Current version is : 1.0.0 *Download : Press on me :). Note : If you have any issues, please write a comment. If you have a new ideas to develop the script, please write a comment on the topic Do not forget to rate the script by percentage% in a comment Thanks.
    2 points
  4. Updated translations after feedback from : تم تحديث الترجمة الموجوده في اللوحة بعد اخذ الاراء من : @xX_Ma[D]arA_xX, @Rakan#, @Mr.OppS, @#,+( _xiRoc[K]; >, @#_iMr.[E]coo, @Talis نسخة جديدة
    2 points
  5. العكس لازم يحول الصيغة UTF-8 كأفضل خيار .. بس الأفضل تنسخ كل شيء بالملف ثم تحول الصيغة وتلصقه عشان ماتضيعه + القسم غلط القسم الصحيح هو : https://forum.multitheftauto.com/forum/134-البرمجة/
    2 points
  6. مرحبا لقد قمت بإطلاق الاصدار الجديد من لوحة الادمنية العربية بعد ان لاحظت ان معظم الاعضاء يقومون بإستخدام لوحات الادمنية العربية القديمة التي مر عليها الدهر من دون اي تحديثات او حماية وكما انها غير مؤمنه كـ اي لوحة ادمنية حديثة الإنشاء,( وبالمناسبة انني هولندي ولا اتحدث اللغة العربية ) وكما انني بذلت الكثير من جهدي حتي اقوم بنقل الترجمة العربية من اللوحات العربية القديمة الي هذه اللوحة حديثة الصنع وكل ما اريده هو ان اقوم بإفادة اصحاب السيرفرات الذين يستخدمون لوحة الادمنية العربية القديمة وكما انه يمكنك ان تري اخر تحديثات لوحة الادمنية من خلال : https://github.com/multitheftauto/mtasa-resources/commits/master/[admin]/admin وإذا كان لديك صاحب سيرفر يستخدم لوحة الادمنية العربية القديمة رجاء اخبره بهذا الموضوع لكي يقوم بتحميل النسخة الحديثة من اللوحة العربية لتحميل اللوحة العربية DOWNLOAD:https://community.multitheftauto.com/?p=resources&s=details&id=14837 واذا كان هناك خطأ في ترجمة اللوحة رجاء اخبرني " لقد تمت ترجمة الموضوع من قبل نصور " ENG: I'm here releasing a new Arabic-translated admin panel from today's version (september 2017) after I noticed all community circulating AR panels were outdated as hell. As they pose serious security risks, eventhough I'm not Arabic, I felt it of such importance that I've spent a long time transferring translations from older circulating panels to this most up-to-date Admin panel. I'm helping a huge amount of server owners with this, because most will just use a Community version that is outdated because of the great time to invest in translating yourself. Ofcourse, you'll also benefit from new features and updates made to Admin recently, (look here: https://github.com/multitheftauto/mtasa-resources/commits/master/[admin]) both for this reason and security I advise you inform all server owners you know about this release and suggest they update if they're using Arab panels. If you spot any translation issues, please leave a reply. Main view example; (updated 24/09/2018)
    1 point
  7. بسم الله الرحمن الرحيم guiCreateAnimation gui-Elementالفنكشن يعمل تأثير لأي نوع من الــ يعني الألفا حقت الألمنت تزداد تدريجيا او تنقص تدريجيا _______________________________ الفنكشن معه افنت 'onClientGUIAnimationEnd' هذا الأفنت هو لما التأثير ينتهي _______________________________ Event : Event Source: guiElement - الألمنت المطبق عليه التأثير Paratmers: openState _______________________________ Function : Syntax: bool guiCreateAnimation ( element gui-element, bool openState[ , int effectSpeed = 1 ] ) _______________________________ Source Code: local guiTable = { }; addEvent ( 'onClientGUIAnimationEnd', true ) function animationRender ( guiElement, open, speed ) guiTable [ guiElement ] [ 'guiNow' ] = getTickCount ( ); local anim1, anim2 = interpolateBetween ( 0, 100, 0, 100, 0, 0, ( guiTable [ guiElement ] [ 'guiNow' ] - guiTable [ guiElement ] [ 'guiTick' ] ) / ( speed * 1000 ), 'Linear' ) if ( open ) then guiSetAlpha ( guiElement, anim1 / 100 ) else guiSetAlpha ( guiElement, anim2 / 100 ) end if ( guiTable [ guiElement ] [ 'guiNow' ] > guiTable [ guiElement ] [ 'guiTick' ] + ( speed * 1000 ) ) then removeEventHandler ( 'onClientRender', root, guiTable [ guiElement ] [ 'guiEvent' ] ) guiTable [ guiElement ] = nil triggerEvent ( 'onClientGUIAnimationEnd', guiElement, open ) if ( not open ) then guiSetVisible ( guiElement, false ) end end end function guiCreateAnimation ( guiElement, open, speed ) assert ( isElement ( guiElement ) and getElementType ( guiElement ):find ( 'gui-' ), 'guiCreateAnimation bad argument @ 1 gui-Element expected, got ' .. type ( guiElement ) ) assert ( type ( open ) == 'boolean', 'guiCreateAnimation bad argument @ 2 boolean expected, got ' .. type ( open ) ) local speed = speed or 1 assert ( type ( speed ) == 'number', 'guiCreateAnimation bad argument @ 3 number expected, got ' .. type ( speed ) ) if ( guiTable [ guiElement ] ) then return false end guiSetVisible ( guiElement, true ) guiTable [ guiElement ] = { }; guiTable [ guiElement ] [ 'guiTick' ], guiTable [ guiElement ] [ 'guiEvent' ] = getTickCount ( ), function ( ) animationRender ( guiElement, open, speed ) end addEventHandler ( 'onClientRender', root, guiTable [ guiElement ] [ 'guiEvent' ] ) return true end _______________________________ Arguments: 1 - gui-element - gui-element النافذة او الــ المراد تطبيق التأثير عليها 2 - openState - طريقة التأثير اذا كان true بينفتح تدريجيا و العكس 3 - effectSpeed - سرعة التأثير _______________________________ Example: local sPos = { guiGetScreenSize ( ) }; GUIEditor = { window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow( ( sPos [ 1 ] - 520 ) / 2, ( sPos [ 2 ] - 452 ) / 2, 520, 452, "Flashing window", false) guiWindowSetSizable(GUIEditor.window[1], false) btn = guiCreateButton(50, 50, 50, 50, '', false, GUIEditor.window[1]) guiCreateAnimation ( GUIEditor.window[1], true, 0.5 ) guiSetFlashing ( GUIEditor.window[1], true ) outputChatBox 'Start !' setTimer ( function ( ) guiSetFlashing ( GUIEditor.window[1], false ) outputChatBox 'Finish !' end, 5000, 1 ) end ) local flasherEvent = { }; function guiSetFlashing ( wnd, state ) if ( state ) then flasherEvent [ wnd ] = function ( state ) if ( source == GUIEditor.window[1] ) then guiCreateAnimation ( GUIEditor.window[1], not state, 0.5 ) end end addEventHandler ( 'onClientGUIAnimationEnd', resourceRoot, flasherEvent [ wnd ] ) else if ( flasherEvent [ wnd ] ) then removeEventHandler ( 'onClientGUIAnimationEnd', resourceRoot, flasherEvent [ wnd ] ) end end end هذا المثال بيسوي فلاش للوحة وبعد 5 ثواني بيختفي الفلاش
    1 point
  8. بسم الله الرحمن الرحيم convertTimeToSeconds function convertTimeToSeconds(y,d,h,m,s) local y,d,h,m,s,newTime=y or 0,d or 0,h or 0,m or 0,s or 0,0 local newTime=newTime+(31556926*y)+(86400*d)+(3600*h)+((3600/60)*m)+(((3600/60)/60)*s) return math.floor(newTime) end Arguments : y: السنوات d: الأيام h: الساعات m: الدقائق s: الثواني الوضيفة تقوم بتحويل الوقت الى ثواني
    1 point
  9. لقد تم إنشاء روم خاص للعرب في الديسكورد
    1 point
  10. no need that <meta> <script src="client.lua" type="client" cache="false"/> </meta
    1 point
  11. السلام عليكم ورحمة الله وبركاته وظيفة fixGuiPosition من الاسم الوظيفه تقوم بضبط الجيو المنت ليتناسب مع كل الشاشات نجي للسورس كود function fixGuiPosition(guiElement,sx,sy,relative) local relative=relative or false local x,y=guiGetPosition(guiElement,relative) local w,h=guiGetSize(guiElement,relative) if guiSetPosition(guiElement,sx*x,sy*y,relative) and guiSetSize(guiElement,sx*w,sy*h,relative) then return true end return false end الارقمنتات guiElement هي الالمنت اللي تبي تنفذ عليه الوظيفه sxهو عرض الشاشه حقتك مثلا انا 1366 sy هو طول الشاشه حقتك انا 768 relative هو الريلاتف يعني باختصار يوم انشات اللوحه انشاتها برقم عشري ولا ارقام كبيره هي في العاده تكون false نجي للساينتكس : fixGuiPosition(element guiElement,int sx,int sy, bolean relativ) نجي للامثله : function fixGuiPosition(guiElement,sx,sy,relative) local relative=relative or false local x,y=guiGetPosition(guiElement,relative) local w,h=guiGetSize(guiElement,relative) if guiSetPosition(guiElement,sx*x,sy*y,relative) and guiSetSize(guiElement,sx*w,sy*h,relative) then return true end return false end local GUIEditor={ Window={}, Button={} } GUIEditor.Window[1]=guiCreateWindow(20,50,20,50,'test',false) GUIEditor.Window[2]=guiCreateWindow(20,50,20,50,'test',false) GUIEditor.Button[1]=guiCreateButton(10,5,20,30,'test',false,GUIEditor.Window[1]) -----------------------------example 1 fixGuiPosition(GUIEditor.Window[1],1366,768) --------------------وهذا مثال لو معك اكثر من نافذه مثلا for k=1,#GUIEditor.Window do fixGuiPosition(GUIEditor.Window[k],1366,768) end وفي الختام اتمنى منكم الدعاء
    1 point
  12. السلام عليكم ورحمه الله وبركاته مود مسح الشات وتوزيع المال رابط الفديو : رابط التحميل http://adf.ly/1oGf9O توزيع المال http://adf.ly/1oGfBe مسح الشات للتواصل : سكايب : Esam Emad
    1 point
  13. ENG : Please don't speak any different language than Arabic, you can go to Scripting section or you can find your native language by clicking here. AR : رجاء اخي لايجب عليك مساعدة اي شخص يتحدث لغة غير العربية حتي لو كان اجنبي لأن لديهم قسم يختص بلغتهم او يمكنه الذهاب لقسم البرمجة الانجليزية
    1 point
  14. N++ is highly customizable, you can add your own languages with syntax highlighting and auto completion. I had some free time last night so I decided to make it. I wrote a script that retrieves a list of all the available functions then exclude the deprecated ones, then made the language file with those functions. I also made a script to retrieve all the functions, get their wiki page content (fetchRemote) and extract the function signature from the page, then parse it into the MTA-Lua.xml file which adds auto completion. I might release the scripts later. I've created a repo for it on GitHub, it has 2 files for the users: mtalua-lang-import.xml > The file to import in the user defined language page to get the syntax highlighting MTA-Lua.xml > The auto completion file The repo contains the resource used to generate the function list and the node app used to retrieve the functions' syntax from the wiki. Repo: https://github.com/JR10/mta-npp THIS IS WHAT YOU WANT: Download the user files (MTA-Lua.xml and mtalua-lang-import.xml): https://github.com/JR10/mta-npp/release ... ta-npp.zip Steps: 1. Open Notepad++ > Language > Define your language... 2. Import > Select mtalua-lang-import.xml (Make sure from now on that the MTA-Lua language is always selected for Lua files) 3. Copy MTA-Lua.xml to your Notepad++ directory "Notepad++/plugins/APIs" (Usually in C:/Program Files) For questions, bug reports, suggestions or anything, just post here. Download: https://github.com/JR10/mta-npp/archive/master.zip
    1 point
×
×
  • Create New...