-
Posts
4,429 -
Joined
-
Last visited
Everything posted by #DRAGON!FIRE
-
https://wiki.multitheftauto.com/wiki/Main_Page ادخل فكنشنات وشوف وش اللي موجود بكل كود تعرف الاسأسيات .. زي : function end بدون هذول ما تقدر بـ اي شكل انك تسوي كود بدون : addEventHandler ما تقدر تسوي بـ اي شكل حدث من الاحداث . وبدون الـ ميتا ما تقدر تشغل اي سكربت .. GUI ما تقدر تسوي لوحات GUI Element وبدون الـ > > > https://wiki.multitheftauto.com/wiki/In ... ng_the_GUI . عشان تطالع اخطاء سكربتكـ debugscript والـ زي هذي الأشياء .
-
ترأ انت فـ المنتدى .. يعني اي احد يدخل الموضوع يقدر ياخذ الكود _ المنتدى مو بس لك الموضوع اللي ينطرح لأفأئتدك وافادة غيركـ !
-
wnd = guiCreateWindow(183,176,446,264,".....",false) SsSs = guiCreateButton(10,24,427,231,".....",false,wnd) guiSetVisible (wnd, false) local marker = createMarker ( ......... ) addEventHandler( "onClientMarkerHit", marker, function ( element ) if element == getLocalPlayer ( ) then if ( guiGetVisible ( wnd ) == false ) then guiSetVisible ( wnd, true) showCursor( true ) end end end ) addEventHandler("onClientGUIClick", getRootElement(), function ( ) if source == SsSs then triggerServerEvent( "createTheVehicle", getLocalPlayer()) end end ) addCommandHandler( "Hast", function () local Vehicle = getPedOccupiedVehicle( localPlayer ) if getElementData(getLocalPlayer(), "Hunt") then outputChatBox("لايمكنك اصطياد سمكة الا اذا بعته", 255, 0, 255, true ) else if isPedInVehicle(getLocalPlayer()) then if ( getElementModel ( Vehicle ) == 411 ) then outputChatBox("تم اصطياد سمكة", 0, 255, 0, true ) setElementData(getLocalPlayer(), "Hunt", true) end end end end ) addCommandHandler( "givt", function () local Vehicle = getPedOccupiedVehicle( localPlayer ) if not ( getElementModel ( Vehicle ) == 411 ) then return end if getElementData(getLocalPlayer(), "Hunt") == true then triggerServerEvent("giveMoney", getLocalPlayer()) outputChatBox("بعت السمك وحصلت على 40", 255, 255, 0, true ) setElementData(getLocalPlayer(), "Hunt", false) else outputChatBox("انت ليس لديك سمك ابدا لبيعة", 255, 0, 255, true ) end end )
-
للحين مو فاهم عليك : ! اللي فهمته لو ما كنت خأطف ما تقدر تخطف .. انت تقول ما في تيم محدد .. يعني اي احد يقدر ياخذ الوظيفة يمكن انت متحقق من داتا ولأ تيم ومو عارف .. اطرح اكوادكـ #
-
ي ريت ما تكرر ردودك وطلباتكـ .. ترأ رديت عليك ذذ
-
'onPlayerTarget' setControlState toggleAllControls getDistanceBetweenPoints3D + getElementPosition
-
# وعليكم السلأم ... setCameraMatrix: This function sets the camera's position and direction. The first three arguments are the point at which the camera lies, the last three are the point the camera faces (or the point it "looks at"). Note: Calling this function takes the camera's focus away from the player and sets the camera in a fixed position and rotation. The camera's focus can be brought back to the player using the setCameraTarget function. Client Syntax bool setCameraMatrix ( float positionX, float positionY, float positionZ [, float lookAtX, float lookAtY, float lookAtZ, float roll = 0, float fov = 70 ] ) # ببساطة فائدة الفنكشن انه يحط لك الكميرا بـ احداثيات محدةة .. كيف اقدر اجيب الاحداثيات او الارقمنات المطلوبة . x, y, z اول 3 ارقمنات معروفة getCameraMatrix الـ 3 اللي بعدها تجيبهم عن طريق فنكشن ويمديك تجيب اول 6 ارقمنات من ذا الفنكشن مثال بسيط كيف تجيب الاحداثيات : ... addCommandHandler( "GetCameraPos", function ( ) local x, y, z, xl, yl, zl = getCameraMatrix( ) if ( x == 0 or y == 0 or z == 0 ) then return end setClipboard(" "..x..", "..y..", "..z..", "..xl..", "..yl..", "..zl.." ") end ) setCameraMatrix وبتنسخ لك الاحداثيات كاملة بس عليك تحطها بـ GetCameraPos تقوم بـ كتابة الأمر
-
table for -- Loop createMarker createBlip
-
myWindow = guiCreateWindow ( 0, 0, 0.5, 0.4, "Password Checker", true ) MyBtn = guiCreateButton( 0.7, 0.1, 0.2, 0.1, "Ok!", true ) myEdit = guiCreateEdit( 0.3, 0.1, 0.4, 0.1, "", true ) guiEditSetMaxLength ( myEdit, 5 ) myMarker = createMarker(-2596.625, 579.358, 15.626, 'cylinder', 2.0, 255, 0, 0, 150) addEventHandler( "onClientMarkerHit", myMarker, function ( element ) if element == getLocalPlayer ( ) then if ( guiGetVisible ( MyWindow ) == false ) then guiSetVisible ( MyWindow, true) showCursor( true ) fadeCamera ( false ) end end end ) addEventHandler ( "onClientGUIClick", MyBtn, function ( ) if ( guiGetText ( MyEdit ) and guiGetText ( MyEdit ) == "test1" ) then guiSetVisible ( MyWindow, false ) showCursor( false ) fadeCamera ( true ) else outputChatBox ( "Wrong Pass", 255, 255, 255, true ) end end )
-
guiGetText
-
Event : "onMarkerHit" triggerClientEvent guiSetVisible guiGetText guiSetVisible -- false fadeCamera
-
#[9MoD] مود القروب سيستم 1.3 by ahmedfef هدية العيد للجميع ^
#DRAGON!FIRE replied to Al-Ha[J]aRii's topic in المساهمات
السكربت رهيب .. وباين انه متعوب عليه بالتوفيق ! -
local cols = createColRectangle ( fX, fY, 10, 10 ) addEventhandler ("onColShapeHit", cols, function ( hitElement ) if getElementType ( hitElement ) == "player" then givePlayerMoney ( hitElement, 100000 ) end end ) لازم تعوض عن الـ "fx,fy" الكودين غلط !! local cols = createColRectangle ( float fX, float fY, float fWidth, float fHeight) addEventHandler ( "onColShapeHit", cols, function ( hitElement ) if getElementType ( hitElement ) == "player" then givePlayerMoney ( hitElement, 100000 ) end end )
-
حياك الله فـ اي وقت .
-
هذي تشيل القيمة من الجدول table.remove تقدر تقول زيها زي
-
local marker = createMarker( 5518.6000976563, -1011.299987793, 74.900001525879, "arrow", 5, 24, 116, 205, 255) addEventHandler ( "onMarkerHit", marker, function ( player ) if ( getElementType ( player ) == "player" ) then local Pvehicle = getPedOccupiedVehicle( player ) if ( Pvehicle ) and ( player == getVehicleController ( Pvehicle ) ) then setElementPosition ( Pvehicle, 905.79998779297, -2594, 159.69999694824 ) setVehicleFrozen ( Pvehicle, true ) setElementRotation ( Pvehicle, 0, 0, 180 ) end end end )
-
Event "onClientGUIClick" guiGridListClear guiGridListSetItemText بالنسبة لترتيب النقاط صار شي ثاني table table.insert table.sort triggerClientEvent guiGridListSetItemText
-
# button الكود سليم ما فيه اي شي .. اقلك انت بدل اسم الزر حقك بـ الـ
-
الكود معفوس عفسة صراحة انت قولي وش تبي تسوي بالضبط ..
-
Client Side ! wnd = guiCreateWindow(183,176,446,264,".....",false) SsSs = guiCreateButton(10,24,427,231,".....",false,wnd) guiSetVisible (wnd, false) bindKey ( "F2" , "down" , function() guiSetVisible(wnd, not guiGetVisible( wnd )) showCursor( not isCursorShowing( ) ) end ) addEventHandler("onClientGUIClick", getRootElement(), function ( ) if source == SsSs then triggerServerEvent( "createTheVehicle", getLocalPlayer()) end end ) addCommandHandler( "Hast", function () local Vehicle = getPedOccupiedVehicle( localPlayer ) if getElementData(getLocalPlayer(), "Hunt") then outputChatBox("لايمكنك اصطياد سمكة الا اذا بعته", 255, 0, 255, true ) else if isPedInVehicle(getLocalPlayer()) then if ( getElementModel ( Vehicle ) == 411 ) then outputChatBox("تم اصطياد سمكة", 0, 255, 0, true ) setElementData(getLocalPlayer(), "Hunt", true) end end end end ) addCommandHandler( "givt", function () local Vehicle = getPedOccupiedVehicle( localPlayer ) if not ( getElementModel ( Vehicle ) == 411 ) then return end if getElementData(getLocalPlayer(), "Hunt") == true then triggerServerEvent("giveMoney", getLocalPlayer()) outputChatBox("بعت السمك وحصلت على 40", 255, 255, 0, true ) setElementData(getLocalPlayer(), "Hunt", false) else outputChatBox("انت ليس لديك سمك ابدا لبيعة", 255, 0, 255, true ) end end )
-
ما اشوف فيه غلط .. متاكد انك حاط متغير الزر حقك والتاب
-
الموضوع صار له فترة .. ليش ترفعه ؟ بالنسبة للأكواد .. وش مشكلتك ؟