Jump to content

Mr-M3AND

Members
  • Posts

    312
  • Joined

  • Last visited

Everything posted by Mr-M3AND

  1. مبروووووووووووووووووووووووووووووووك مبرووووووووووووووووووووووووووووك مبروووووووووووووووووووووووووك مبرووووووووووووووووووووووك مبرووووووووووووووووووك مبرووووووووووووووك مبرووووووووووك
  2. مبروك سعد الاشراف وعقبال من يستاهلها
  3. الف الف الف مبروك الله يعطيك خيرها ويكفيك شرها
  4. يمكن انت مسوي تحقق بنفس الكود if source == GUIEditor.button[1] then
  5. تحقق من قروب اللاعب قروب سيستم العقرب if getElementData (player, "Group") == "اسم القروب" then قروب سيستم احمد فيف if getElementData (player, "gang") == "اسم القروب" then
  6. ماشاءالله شخصيات ولا اروع , واصل ابداعك وبالتوفيق
  7. guiGridListGetItemText guiGridListGetSelectedItem guiSetVisible
  8. setElementDimension image = guiCreateStaticImage(...) guiCreateButton(x, y, width, height, "", false, image )
  9. r,g,b = 63,252,41 rr,gg,bb =0,0,0 num = 1 px = 0 -------------------- function getColor() return r,g,b end function getBackColor() return rr,gg,bb end function setColor(tr,tg,tb) r,g,b = tr,tg,tb end function setBackColor(r,g,b) rr,gg,bb = r,g,b end addEventHandler("onClientRender",root, function () local x,y = guiGetScreenSize() local xx,yy = x/2,y/2 dxDrawRectangle(0,yy,x,yy/13,tocolor(rr,gg,bb,120)) dxDrawText(chat[num] ,px,yy/12,x,y,tocolor(r,g,b,255),1.5,"default-bold","center","center",false,false,false,true) end ) function makeTurn() local x,y = guiGetScreenSize() local x = x + 50 if px >= x then px = -x setchat() else px = px + 6 end end function setchat() if num == #chat then num = 1 else num = num + 1 end end ---- start = setTimer(makeTurn,100,00) stop = setTimer(makeTurn,50,00)
  10. انت وين تبي تكتب بالاديت ولا وين؟؟
  11. اذا كان قصدك بنفس القريد ليست يعني بدل ماتخليه ياخذ الوظيفة تخليه يقبل مهمه محدده سوي له داتا مثلا function isPlayerOnMission (Mission) if source == TButton then local row,col = guiGridListGetSelectedItem(MGrid ) if ( row and col and row ~= -1 and col ~= -1 ) then local Mission = guiGridListGetItemText(MGrid, guiGridListGetSelectedItem(MGrid), 1) if Mission == "Mission1" then if getPlayerTeam(localPlayer) and getTeamName(getPlayerTeam(localPlayer)) == 'Police' then if getElementData(localPlayer,"Mission1") == false then guiSetText(TButton ,"Cancel") setElementData(localPlayer , "Mission1" , true) elseif getElementData(localPlayer,"Mission1") == true then guiSetText(TButton ,"Take") setElementData(localPlayer , "Mission1" , false) end end end end elseif source == CButton then guiSetVisible(Mwindow , false) showCursor(false) end end addEventHandler("onClientGUIClick", resourceRoot, isPlayerOnMission) function TakeMission() local row,col = guiGridListGetSelectedItem(MGrid ) if ( row and col and row ~= -1 and col ~= -1 ) then local Mission = guiGridListGetItemText(MGrid, guiGridListGetSelectedItem(MGrid), 1) if Mission == "Mission1" then if getPlayerTeam(localPlayer) and getTeamName(getPlayerTeam(localPlayer)) == 'Police' then if getElementData(localPlayer,"Mission1") == true then guiSetText(TButton ,"Cancel") elseif getElementData(localPlayer,"Mission1") == false then guiSetText(TButton ,"Take") end end end else guiSetText(TButton ,"Take") end end addEventHandler("onClientGUIClick" , MGrid , TakeMission)
  12. لنفترض انك لما سويت تريقر للسيرفر تدخل اللاعب بتيم الشرطه في الحاله هذي نسوي تحقق من التيم function TakeMission() local row,col = guiGridListGetSelectedItem(MGrid ) if ( row and col and row ~= -1 and col ~= -1 ) then local Mission = guiGridListGetItemText(MGrid,guiGridListGetSelectedItem(MGrid),1) if Mission == "Police" then if getPlayerTeam(localPlayer) and getTeamName(getPlayerTeam(localPlayer)) == 'Police' then guiSetText(TButton ,"Cancel") elseif getPlayerTeam(localPlayer) and getTeamName(getPlayerTeam(localPlayer)) ~= 'Police' then guiSetText(TButton ,"Take") end end else guiSetText(TButton ,"Take") end end addEventHandler("onClientGUIClick" , MGrid , TakeMission)
  13. كيف تعطية الوظيفة ؟؟ Take اول شي جاوبني على سؤالي الحين لما اللاعب يضغظ زر
  14. كيف تبيها تختفي؟؟
  15. اطرح الكود كامل عشان نضبطه
  16. طيب تأكد ان معك فلوس
  17. ضيفه لقروب ادمن
  18. المود فكرته رائعة جدا وايضاً يوفر الكثير من الوقت .., واصل ابداعك وبالتوفيق لك
  19. ترا اللي حطيته فنكشنات مو الكود كامل انت تشوفهم كود كامل ؟ الصراحة هذه المافجاة صضمتنى اول شي ياليت تقرا صح مو تسوي عم خبير وثاني شي يوم تسوي فاهم وين هذي بكودك فوق^ ؟ getElementType !!يعني الا تبي تسوي زحمة والشارع فاضي
×
×
  • Create New...