Jump to content

' A F .

Members
  • Posts

    2,156
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by ' A F .

  1. @NssoR ليت سوا فريز للاعب سوا للماركر
  2. وضح زياده م فهمتك !
  3. https://wiki.multitheftauto.com/wiki/DxDrawLoading
  4. يب او ضيف على الداتا القديمة
  5. يب بس تغير الداتا تسويه كذا setElementData ( source , "Skin" , id )
  6. كيف مافهمت والله م شفت اكوادك بس سويتها لك بطريقتي ..
  7. لمم تتم التجربة -- Client local Table = { { "البدايه" , -3414.95605,-2990.36646,15.06875 }, { "النخيل" , 2122.06396 , 1410.29590 , 10.82031 }, } for index,value in ipairs ( Table ) do local row = guiGridListAddRow ( GUIEditor.gridlist[1] ) guiGridListSetItemText ( GUIEditor.gridlist[1] , row , 1 , value[1] , false , false ) guiGridListSetItemData ( GUIEditor.gridlist[1] , row , 1 , {value[2],value[3],value[4]} ) end addEventHandler ( "onClientGUIClick" , root, function ( ) if ( source == GUIEditor.button[22] ) then local Selector = guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) if ( Selector ~= -1 ) then local PositonX,PositionY,PositionZ = unpack ( guiGridListGetItemData ( GUIEditor.gridlist[1] , Selector , 1 ) ) triggerServerEvent ( "onSelectSpawn" , localPlayer , PositonX,PositionY,PositionZ ) end end end ); ------ Server addEvent ( "onSelectSpawn" , true ) addEventHandler ( "onSelectSpawn" , root , function ( PositonX,PositionY,PositionZ ) setElementData ( source , "SpawnPositions" , {PositonX,PositionY,PositionZ} ) spawnPlayer ( source , PositonX,PositionY,PositionZ , 0 , 0 , 0 ) setCameraTarget ( source , source ) end ); addEventHandler ( "onPlayerWasted" , root , function ( ) local x,y,z = unpack ( getElementData ( source , "SpawnPositions" ) ) if ( x and y and z ) then setTimer( spawnPlayer , 2000, 1, source, x,y, z ) setCameraTarget ( source , source ) end end );
  8. العفو حياك الله , اذا م ظبط معاك اطرح مشكلتك ونصلحها لك ان شاء الله
  9. سوي جدول وحط فيه اسم المكان والاحداثيات .. مثال local Palces = { { "Place (1)",X,Y,Z}, } والشخصيات نفس الشيء . ثم سوي لوب واستخدم الوظائف هاذي guiGridListAddRow guiGridListSetItemText guiGridListSetItemData ثم سوي يوم يظغط الزر guiGridListGetSelectedItem guiGridListGetItemData triggerServerEvent setElementData spwnPlayer --- Server : onPlayerWasted getElementData spawnPlayer setCameraTarget اعذرني م ادري وش فيه البوست !!
  10. لول بالشوب فيه لوقو مكتوب فيها GTA-IS
  11. ^ هو يبي قارب مايبي اوبجكت لاكن لو يبي يسوي اوبجكت ويلصق فيه القارب صح يستخدم moveObject
  12. بأمكانك انك تستخدم interpolateBetween أو المتغيرات
  13. ماجربته .. local Markers = { }; addCommandHandler ( "nuke" , function ( player ) if ( isElement ( Markers [ player ] ) ) then destroyElement ( Markers [ player ] ) end local Pos = { getElementPosition ( player ) }; Markers [ player ] = createMarker (Pos[1],Pos[2],Pos[3]-1,"cylinder",255,255,0,255) for index,values in ipairs ( getElementsByType ( "player" ) ) do if ( isElementWithinMarker ( values , Markers [ player ] ) ) then killPed ( values ) end end end ); addEventHandler ( "onPlayerQuit" , root , function ( ) if ( isElement ( Markers [ source ] ) ) then destroyElement ( Markers [ source ] ) Markers [ source ] = nil end end );
  14. تنبية بسم الله الرحمان الرحيم تكتب هاكذا بسم الله الرحمن الرحيم وبالتوفيق ..
  15. local Blip = createBlip ( 1367, -1279, 13 , 6 ) setElementDimension ( Blip , 3 )
  16. تفضل ^ .. 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 addEventHandler("onClientRender",root, function ( ) dxDrawRectangle(206, 241, 367, 26,(isMouseInPosition (206,241,367,26) and tocolor ( 0,153 , 255 , 255 ) or tocolor(0, 0, 0, 140)) , false) end ); addEventHandler ( "onClientClick" , root , function ( Button , State ) if ( Button == "left" and state == "up" ) then if ( isMouseInPosition (206,241,367,26) ) then outputChatBox ( "Your Name is : "..getPlayerName(localPlayer) ) end end end );
  17. ألي انت مسويه فوق خطا . onClientGUIClick = GUI Elements .. + dxDrawRectangle اذا تبي اذا ظغط على المستطيل يسوي شيء تستخدم onClientClick isMouseInPosition
  18. والله الكود عجبني , لهيك عطيتك لايك .. / أستمر ي صديقي ..
×
×
  • Create New...