Jump to content

Abdul KariM

Members
  • Posts

    2,711
  • Joined

  • Days Won

    42

Everything posted by Abdul KariM

  1. @#Soking شكلك مافهمت الاكواد راح جرب وتعال تكلم
  2. @#Soking معلومة خاطئة تزبط مع حدث
  3. @#Soking كنت اظن انك تعرف لكن خاب ظني وتفضل الطريقة local table = { } function CreatePlayerWind ( player ) table [ player ] = { } table [ player ] .Wind = guiCreateWindow ( ... ) guiSetVisible ( table [ player ] .Wind , false ) end function ControlPlayerWind ( player , aState ) local aState = aState or false if not ( table [ player ] ) then return end guiSetVisible ( table [ player ] .Wind , aState ) end
  4. @#BrosS مايحتاج كل هذا يقدر يسويها بالتيبلات
  5. تحتاج table = {} "onClientGUIClick" getPlayerFromName guiSetVisible
  6. تبي تحدد لاعب من القريد ليست وتفتح للاعب الي حددته لوحة ؟
  7. @N3xT بالكلينت مافيه بارتمر لاعب
  8. طيب اطرح كود الي يأكل فيه الهوت دوج
  9. طريقة اخذ الهوت دوج وش زر ولا امر من اف8 ولا ؟
  10. وريني كود يوم تحط اكونت داتا لاسم الحساب واكونت داتا للداتا
  11. حتى لو يسوي لوب ماراح يظهر له لانه بالكلينت مافيه ارقمنت لاعب
  12. local aTimer = { } function onPlayerChat_ ( aMsg , aType ) local isPlayerLogin = isGuestAccount ( getPlayerAccount ( source ) ) if ( isPlayerLogin ) then if ( isTimerPlayer ( source ) ) then outputChatBox("Stop spamming.",source, 255, 0, 0, true) return cancelEvent ( ) end setTimerPlayer ( source , 10000 ) outputChatBox('#666666(Downloading..) '.. getPlayerName(source) .. '#ffffff : '.. aMsg,root, r, g, b, true) return cancelEvent ( ) end end addEventHandler ( "onPlayerChat",root, onPlayerChat_ ) function isTimerPlayer ( player ) return isTimer ( aTimer [ player ] ) end function setTimerPlayer ( element , aTimer_ ) if ( getElementType( element ) ~= "player" ) then return end if ( isTimerPlayer ( element ) ) then return end aTimer [ element ] = setTimer( function ( ) end , aTimer_ , 1 ) end addEventHandler ( "onPlayerQuit" , root , function ( ) if ( aTimer [ source ] ) then aTimer [ source ] = nil end end )
  13. getRealTime استخدمها بجانب سيرفر
  14. then داخل القوس ؟
  15. هو يبي رسالة للجميع كودك راح يظهر رسالة بس للي كتب الامر
  16. الله يسلمك بعد ماتحط داتا على البيانات تسوي ريتورن بالالمنت الي سويته coNdxLibCreateButton المفروض في الفنكشن عشان تقدر تجيب الداتا الي عليه اما كودك قبل ماكنت راجع بألمنت والباقي واضح
  17. جرب المثال local screenW, screenH = guiGetScreenSize() t = coNdxLibCreateButton ( screenW * 0.2950, screenH * 0.5200, screenW * 0.3950, screenH * 0.0433 ) addEventHandler ( "onClientRender" , root , function ( ) coNdxLibDrawButton ( t ) end )
  18. function coNdxLibCreateButton(PosX,PosY,SizeX,SizeY,ButtonText,ButtonTextColor,ButtonColor,postGUI) local PosX,PosY,SizeX,SizeY = tonumber(PosX),tonumber(PosY),tonumber(SizeX),tonumber(SizeY) if PosX and PosY and SizeX and SizeY then local dxLibButtonElement = createElement("dxLibButton") if dxLibButtonElement then local dxButtonData = {} dxButtonData.PosX = PosX dxButtonData.PosY = PosY dxButtonData.SizeX = SizeX dxButtonData.SizeY = SizeY dxButtonData.ButtonText = ButtonText or "dxLibButton" dxButtonData.ButtonTextColor = ButtonTextColor or tocolor(255,255,255,240) dxButtonData.ButtonColor = ButtonColor or tocolor(220,220,220,250) dxButtonData.postGUI = postGUI or false outputDebugString( "dxLibElements , coNdxLibCreateButton Created Successfully ", 3 , 255, 150, 0 ) setElementData(dxLibButtonElement,"dxLibData",dxButtonData, false) return dxLibButtonElement end end end function coNdxLibDrawButton(dxLibButtonElement) if dxLibButtonElement then local drawData = getElementData(dxLibButtonElement,"dxLibData") if drawData and type(drawData) == "table" then PosX = drawData.PosX PosY = drawData.PosY SizeX = drawData.SizeX SizeY = drawData.SizeY ButtonText = drawData.ButtonText ButtonTextColor = drawData.ButtonTextColor ButtonColor = drawData.ButtonColor postGUI = drawData.postGUI dxDrawRectangle(PosX,PosY,SizeX,SizeY,ButtonColor,postGUI) dxDrawText(ButtonText,PosX+(SizeX/2), PosY + (SizeY/2), SizeX, SizeY, ButtonTextColor, 1.2, "default", "center", "center", true,false,postGUI,true) setElementData(dxLibButtonElement,"dxLibData",drawData,true) end end end
  19. @Deativated ماهي معرفةguiRoot اول سطر
  20. ترا انت كذا تلخبطنا وتلخبط نفسك كل شوي قيم بأسم غير ياعطنا اكوادك من البداية ي لاتفتح موضوع من الاساس addEvent("SetData",true) addEventHandler("SetData",root, function ( Table ) guiGridListClear( ScoreList ) if ( Table [ 1 ].aScore ) then guiGridListSetItemText( GirdList, 1, 1, Table[ 1 ].Name , false, false ) guiGridListSetItemText( GirdList, 1, 2, Table [ 1 ].aScore , false, false ) end end )
×
×
  • Create New...