
Mr.king
Members-
Posts
113 -
Joined
-
Last visited
Everything posted by Mr.king
-
بس هذا اخر طلب في الموضوع انا ابيك تعطيني كود الجنوط يعني احملها عشان انا مني مركب جنوط يعني استبدلها بالاصلية
-
الله يعطيك العفيةمستر برستيج كودك شغال100%
-
شباب تكفى حد يعطني الكود كامل متكامل حق كلنت وسيرفر عشان انا مو محترف في البرمجة
-
وابيكم يا شباب تحددون لي الاحداثيات حقت الماركر وشكرا وابيكم تضيفون لما حد يتري شيء بففلوس كل شيء ب350 وكمان لو سمحتم ابي الجنوط نفسها عشانها مهي مركبة عندي
-
شباب اكيد الكل يعرف كود مود اسمة حق الجنوط F7 بس انا ابي اخيليه مايفتح باف 7 انا ابيه يفتح لو كنت في سيارة ولمست ماركر بس لوكنت في السيارة يعني ابي احد يمسح الكود الي يفتح النافذة باف 7 ويحط لو لمست الماركر وانت بالسيارة server-side function resourceStart () outputChatBox ("#999900===[ #ff3300Panel Wheels V.1 By ===|OSAMA|=== #000000| #ff3300To Open It Pess #ffff00[#ff0000F7#ffff00] #999900]===",getRootElement(),255,255,255, true) end addEventHandler ( "onResourceStart", getResourceRootElement ( ), resourceStart ) function join () outputChatBox ("#999900===[ #ff3300Panel Wheels V.1 By ===|OSAMA|=== #000000| #ff3300To Open It Pess #ffff00[#ff0000F7#ffff00] #999900]===",source,255,255,255, true) end addEventHandler ( "onPlayerJoin", root, join ) --determine whether color change can be made with a command cmd = true --the command to use thecmd = "neon" function neon(plr,cmd,r,g,b,a) if not r then openGui(plr) return true end if tonumber(tostring(r)) == nil then r,g,b,a = getColorFromString(r) end if not a then a = 200 end veh = getPedOccupiedVehicle(plr) if veh and r and g and b then model = getElementModel(veh) if canHaveNeon(veh) then if haveNeon(veh) then setNeonColor(veh,tonumber(r),tonumber(g),tonumber(b)) end end end end if cmd then addCommandHandler(thecmd,neon) end function setNeonColor(vehicle,r,g,b) setElementData(vehicle,"neonlight",tostring(r)..","..tostring(g)..","..tostring(b)..","..tostring(a)) for i,mark in ipairs(getElementsByType("marker")) do local type = getMarkerType(mark) if type == "corona" then local data1 = getElementData(vehicle,"neonMarker1") local data2 = getElementData(vehicle,"neonMarker2") if data1 == mark or data2 == mark then setMarkerColor(mark,r,g,b,80) end end end return true end function haveNeon(vehicle) local data = getElementData(vehicle,"haveneon") if data then return true else return false end end function addNeon(vehicle,state) if getElementType(vehicle) == "vehicle" then if state then setElementData(vehicle,"haveneon",true) x,y,z = getElementPosition(vehicle) -- local exist = nil for i,mark in ipairs(getElementsByType("marker")) do data = getElementData(vehicle,"neonMarker1") if data == mark then local exist = mark end end if not exist then local marker1 = createMarker(x,y,z,"corona",2,0,0,0,0) attachElements(marker1,vehicle,0,-1,-1.2) setElementData(vehicle,"neonMarker1",marker1) local marker2 = createMarker(x,y,z,"corona",2,0,0,0,0) attachElements(marker2,vehicle,0,1,-1.2) setElementData(vehicle,"neonMarker2",marker2) end -- return true else setElementData(vehicle,"haveneon",false) setElementData(veh,"neonlight","off!!!") -- for i,mark in ipairs(getElementsByType("marker")) do local type = getMarkerType(mark) if type == "corona" then local data1 = getElementData(vehicle,"neonMarker1") local data2 = getElementData(vehicle,"neonMarker2") if data1 == mark or data2 == mark then setMarkerColor(mark,0,0,0,0) end end end -- return true end else return false end end function canHaveNeon(veh) model = getElementModel(veh) if veh and getElementType(veh) == "vehicle" then x = mayHaveNeon(model) return x else return false end end function mayHaveNeon(model) if model ~= 592 and model ~= 511 and model ~= 584 and model ~= 512 and model ~= 593 and model ~= 417 and model ~= 487 and model ~= 553 and model ~= 488 and model ~= 563 and model ~= 476 and model ~= 519 and model ~= 460 and model ~= 469 and model ~= 513 and model ~= 472 and model ~= 473 and model ~= 493 and model ~= 595 and model ~= 484 and model ~= 430 and model ~= 453 and model ~= 452 and model ~= 446 and model ~= 454 and model ~= 403 and model ~= 514 and model ~= 443 and model ~= 515 and model ~= 455 and model ~= 406 and model ~= 486 and model ~= 578 and model ~= 532 and model ~= 524 and model ~= 498 and model ~= 609 and model ~= 568 and model ~= 457 and model ~= 508 and model ~= 571 and model ~= 539 and model ~= 606 and model ~= 607 and model ~= 485 and model and model ~= 581 and model ~= 509 and model ~= 481 and model ~= 462 and model ~= 521 and model ~= 463 and model ~= 510 and model ~= 522 and model ~= 461 and model ~= 448 and model ~= 468 and model ~= 586 and model ~= 485 and model ~= 552 and model ~= 431 and model ~= 438 and model ~= 437 and model ~= 574 and model ~= 525 and model ~= 408 and model ~= 416 and model ~= 433 and model ~= 427 and model ~= 490 and model ~= 528 and model ~= 407 and model ~= 544 and model ~= 523 and model ~= 470 and model ~= 596 and model ~= 597 and model ~= 598 and model ~= 599 and model ~= 432 and model ~= 601 and model ~= 428 and model ~= 499 and model ~= 449 and model ~= 537 and model ~= 538 and model ~= 570 and model ~= 569 and model ~= 590 and model ~= 441 and model ~= 464 and model ~= 501 and model ~= 465 and model ~= 564 and model ~= 594 then return true else return false end end function deactivateNeon(vehicle) if getElementType(vehicle) == "vehicle" then setElementData(vehicle,"neonlight","off!!!") for i,mark in ipairs(getElementsByType("marker")) do local type = getMarkerType(mark) if type == "corona" then local data1 = getElementData(vehicle,"neonMarker1") local data2 = getElementData(vehicle,"neonMarker2") if data1 == mark or data2 == mark then setMarkerColor(mark,0,0,0,0) end end end return true else return false end end function openGui(plr) local veh = getPedOccupiedVehicle(plr) if haveNeon(veh) then triggerClientEvent(plr,"openNeonGui",root) end end addEventHandler("onPlayerJoin",root,function() for i,veh in ipairs(getElementsByType("vehicle")) do data = getElementData(veh,"neonlight") setElementData(veh,"neonlight",data) end end) for i,veh in ipairs(getElementsByType("vehicle")) do deactivateNeon(veh) end addEvent("closeNeonGui",true) addEventHandler("closeNeonGui",root,function(r,g,b) local veh = getPedOccupiedVehicle(source) setNeonColor(veh,r,g,b) end) addEvent("n1", true) addEventHandler("n1", getRootElement(), function() if isPedInVehicle(source) then addVehicleUpgrade(getPedOccupiedVehicle(source), 1008) outputChatBox("Ctrl تمت اضافة النتيرو لتشغيله اضغط ", source, 145, 255, 170, true) else outputChatBox("انت لست بسيارتك ", source, 255, 0, 0, true) end end) addEvent("n2", true) addEventHandler("n2", getRootElement(), function() if isPedInVehicle(source) then addVehicleUpgrade(getPedOccupiedVehicle(source), 1009) outputChatBox("Ctrl تمت اضافة النتيرو لتشغيله اضغط ", source, 145, 255, 170, true) else outputChatBox("انت لست بسيارتك ", source, 255, 0, 0, true) end end) addEvent("n3", true) addEventHandler("n3", getRootElement(), function() if isPedInVehicle(source) then addVehicleUpgrade(getPedOccupiedVehicle(source), 1010) outputChatBox("Ctrl تمت اضافة النتيرو لتشغيله اضغط ", source, 255, 150, 0, true) else outputChatBox("انت لست بسيارتك ", source, 255, 0, 0, true) end end) addEvent("h", true) addEventHandler("h", getRootElement(), function() if isPedInVehicle(source) then addVehicleUpgrade(getPedOccupiedVehicle(source), 1087) outputChatBox("H تمت اضافة الهيدروليك اضغط ", source, 0, 137, 255, true) else outputChatBox("انت لست بسيارتك ", source, 255, 0, 0, true) end end) addEvent("1", true) addEventHandler("1", getRootElement(), function() if isPedInVehicle(source) then addVehicleUpgrade(getPedOccupiedVehicle(source), 1078) outputChatBox("تم تغيير الجنوط", source, 0, 255, 0, true) else outputChatBox("انت لست بسيارتك ", source, 255, 0, 0, true) end end) addEvent("2", true) addEventHandler("2", getRootElement(), function() if isPedInVehicle(source) then addVehicleUpgrade(getPedOccupiedVehicle(source), 1084) outputChatBox("تم تغيير الجنوط", source, 0, 255, 0, true) else outputChatBox("انت لست بسيارتك ", source, 255, 0, 0, true) end end) addEvent("3", true) addEventHandler("3", getRootElement(), function() if isPedInVehicle(source) then addVehicleUpgrade(getPedOccupiedVehicle(source), 1073) outputChatBox("تم تغيير الجنوط", source, 0, 255, 0, true) else outputChatBox("انت لست بسيارتك ", source, 255, 0, 0, true) end end) addEvent("4", true) addEventHandler("4", getRootElement(), function() if isPedInVehicle(source) then addVehicleUpgrade(getPedOccupiedVehicle(source), 1079) outputChatBox("تم تغيير الجنوط", source, 0, 255, 0, true) else outputChatBox("انت لست بسيارتك ", source, 255, 0, 0, true) end end) addEvent("5", true) addEventHandler("5", getRootElement(), function() if isPedInVehicle(source) then addVehicleUpgrade(getPedOccupiedVehicle(source), 1085) outputChatBox("تم تغيير الجنوط", source, 0, 255, 0, true) else
-
انا عندي فكرة ياتابل هذا كود مود السجن الخاص بعقرب ضيف عليه امر لما الاعب يخرج من السجن يعني بعد انتهاء الوقت تروح منه كل النجوم --***********************************-- --***********************************-- -- Jail System -- -- By Al3grab -- -- Server Side -- --***********************************-- --***********************************-- Command = get("command") -- getTheCommand rRoot = getResourceRootElement(getThisResource()) ------ function getData(to) local file = xmlLoadFile("data.xml") jTable = {} tTable = {} if file then for k,v in ipairs (xmlNodeGetChildren(xmlFindChild(file,"Jails",0)))do local name = xmlNodeGetAttribute(v,"name") local posX,posY,posZ = xmlNodeGetAttribute(v,"posX"),xmlNodeGetAttribute(v,"posY"),xmlNodeGetAttribute(v,"posZ") local int = xmlNodeGetAttribute(v,"int") local dim = xmlNodeGetAttribute(v,"dim") table.insert(jTable, {name,posX,posY,posZ,int,dim}) end for k,v in ipairs (xmlNodeGetChildren(xmlFindChild(file,"time",0)))do local times = xmlNodeGetAttribute(v,"times") for i =1,50 do local iTime = gettok ( times, i, string.byte(',') ) if iTime then -- if tonumber(iTime) > 59.5 then iTime = math.floor(iTime / 60) iTimeDes = "Minutes" if iTime > 59.5 then iTime = math.floor(iTime / 60) iTimeDes = "Hours" end else iTimeDes = "Seconds" end table.insert(tTable,{iTime,iTimeDes}) end end end end triggerClientEvent(to,"sendDataz",to,jTable,tTable) -- sending to client event end addEvent("getDataz",true) addEventHandler("getDataz",root,getData) addCommandHandler ( Command, -- Adding The Command Handler function ( player, cmd ) if hasObjectPermissionTo ( player, "function.banPlayer" ) then triggerClientEvent(player,"jailShow",player) else outputChatBox(" Access Denied ",player,255,0,0) end end ) anims = { "F_smklean_loop", "M_smklean_loop", "M_smkstnd_loop", "M_smk_drag", "M_smk_in", "M_smk_loop", "M_smk_out", "M_smk_tap" , } function removeVehicle(thePlayer) if isPedInVehicle(thePlayer) then destroyElement(getPedOccupiedVehicle(thePlayer)) end end function JailHim(jailed,theJails,time,timeDes,showWho,timeReady) thePlayer = getPlayerFromName(jailed) if not thePlayer then outputChatBox("** #FFFF00Please Select a Player !",source,255,0,0,true) return end removePedFromVehicle(thePlayer) for k,v in ipairs ( jTable ) do if theJails == v[1] then theJail = v end end if theJail then if tostring(time) then if timeReady == true then theTimex = tonumber(time) else theTimex = gettok ( time, 1, string.byte(timeDes) ) end if timeDes == "Hours" then theTimex = math.floor(theTimex*60*60*1000) elseif timeDes == "Minutes" then theTimex = math.floor(theTimex*60*1000) elseif timeDes == "Seconds" then theTimex = math.floor(theTimex*1000) end startJailTimer ( thePlayer , theTimex ) local x,y,z = theJail[2],theJail[3],theJail[4] local int = theJail[5] local dim = theJail[6] setElementInterior ( thePlayer, int ) setElementDimension ( thePlayer, dim ) setElementPosition (thePlayer,x,y,z ) setElementData(thePlayer,"jailed",true) setElementData(rRoot,""..getPlayerSerial(thePlayer).."-j",true) toggleControl(thePlayer,"fire",false) if showWho ~= true then outputChatBox("** #FFFF00You Jailed [ "..getPlayerName(thePlayer).." #FFFF00] at "..theJail[1].." For "..time,source,255,0,0,true) outputChatBox("** #FFFF00You Have Been Jailed By [ "..getPlayerName(source).." #FFFF00] at "..theJail[1].." For "..time,thePlayer,255,0,0,true) end outputChatBox("** #FFFF00[ "..getPlayerName(thePlayer).." #FFFF00] Has Been Jailed For "..time,root,255,0,0,true) local randomAnim setPedAnimation(thePlayer,"SMOKING",anims[math.random(#anims)],theTimex/2) else outputChatBox("** #FFFF00Please Select Time !",source,255,0,0,true) end else outputChatBox("** #FFFF00Please Select a Jail !",source,255,0,0,true) end end addEvent("JailHimx",true) addEventHandler("JailHimx",root,JailHim) function unJailHim(jailed,showWho) thePlayer = getPlayerFromName(jailed) if not thePlayer then outputChatBox("** #FFFF00Please Select a Player !",source,255,0,0,true) return end --if getElementData(thePlayer,"jailed") == true then setElementInterior ( thePlayer, 0) setElementDimension ( thePlayer, 0 ) setElementPosition ( thePlayer, 1552.9108886719, -1675.5844726563, 16.1953125) setElementData(thePlayer,"jailed",false) setElementData(rRoot,""..getPlayerSerial(thePlayer).."-j",false) if showWho ~= true then outputChatBox("** #FFFF00You Released [ "..getPlayerName(thePlayer).." #FFFF00]",source,255,0,0,true) outputChatBox("** #FFFF00You Have Been Released by [ "..getPlayerName(source).." #FFFF00]",thePlayer,255,0,0,true) end outputChatBox("** #FFFF00[ "..getPlayerName(thePlayer).." #FFFF00] Has Been Released ",root,255,0,0,true) setPedAnimation(thePlayer) stopJailTimer(Player) toggleControl(thePlayer,"fire",true) -- setTimer(killPed,1500,1,thePlayer) --else -- outputChatBox("The Player is Not Jailed !",source,255,0,0,true) --end end addEvent("unJailHim",true)-- unJail addEventHandler("unJailHim",root,unJailHim) addEvent("onJailEnd",true) addEventHandler("onJailEnd",root,function(player) unJailHim(getPlayerName(player),true) end ) addEventHandler("onPlayerSpawn",root, -- Check If He Is Jailed [ OnSpawn ] function() if getElementData(source,"jailed") == true then randomJail = jTable[math.random(#jTable)] if randomJail then x,y,z = randomJail[2],randomJail[3],randomJail[4] int = randomJail[5] dim = randomJail[6] setElementInterior ( source, int ) setElementDimension(source,dim) setElementPosition (source,x,y,z ) end end end) addEventHandler("onPlayerJoin",root, -- Check If He Is Jailed - By Serial [ OnJoin ] function() if getElementData(rRoot,""..getPlayerSerial(source).."-j") == true then randomJail = jTable[math.random(#jTable)] if randomJail then x,y,z = randomJail[2],randomJail[3],randomJail[4] int = randomJail[5] dim = randomJail[6] setElementInterior ( source, int ) setElementDimension(source,dim) setElementPosition (source,x,y,z ) -- time = getElementData(rRoot,""..getPlayerSerial(source).."-t",time) or 5 * 1000 startJailTimer(source,time) setElementData(source,"jailed",true) end end end ) ---- function startJailTimer(Player,theTime) -- to start mission timer .. if Player then TimerDisplay = textCreateDisplay() m,s,cs = msToTimeStr(theTime) fullTime = m..":"..s TimerText = textCreateTextItem ( "Time Left : "..tostring(fullTime).."", 0.39, 0.7 ,"medium",0,255,0,255,2.0,"left","center",255) textDisplayAddText ( TimerDisplay, TimerText ) textDisplayAddObserver ( TimerDisplay, Player ) sortTimerShit(Player,TimerText,theTime) end end --Robbed from JailTimerr resource , and it was robbed from arc_ function msToTimeStr(ms) if not ms then return '' end if ms < 0 then return "0","00","00" end local centiseconds = tostring(math.floor(math.fmod(ms, 1000)/10)) if #centiseconds == 1 then centiseconds = '0' .. centiseconds end local s = math.floor(ms / 1000) local seconds = tostring(math.fmod(s, 60)) if #seconds == 1 then seconds = '0' .. seconds end local minutes = tostring(math.floor(s / 60)) return minutes, seconds, centiseconds end function sortTimerShit(plr,timer,time) -- to sort timer's shit .. if timer and time then if isTimer(timerShitTimer) then killTimer(timerShitTimer) end timerShitTimer = setTimer(function(plr) time = time - 70 m,s,cs = msToTimeStr(time) fullTime = m..":"..s textItemSetText(timer,"Time Left : "..tostring(fullTime).."") if plr then setElementData(rRoot,""..getPlayerSerial(plr).."-t",time) end if ( tonumber(m) <= 0 and tonumber(s) <= 0 and tonumber(cs) <= 0 ) then onTimerFinish(plr,timer) end end , 50 , 0 ,plr ) end end function stopJailTimer(Player) textDestroyDisplay(TimerDisplay) if TimerText then
-
طيب في مود حق نجوم الاعب في التاب انا عدلت فيه بس التعديل صح؟ call(getResourceFromName("scoreboard"), "addScoreboardColumn", "Wanted", getRootElement(), 8, 0.07) function getwan() local players = getElementsByType ( "player" ) for theKey,thePlayer in ipairs(players) do local wanted = getPlayerWantedLevel(thePlayer) local zero = "" local one = "*" local two = "**" local three = "***" local four = "****" local five = "*****" local six = "******" if wanted == 0 then setElementData ( thePlayer, "Wanted", zero ) else if wanted == 1 then setElementData ( thePlayer, "Wanted", one ) setTimer(getwan, 30000) else if wanted == 2 then setElementData ( thePlayer, "Wanted", two ) setTimer(getwan, 30000) else if wanted == 3 then setElementData ( thePlayer, "Wanted", three ) setTimer(getwan, 120000) else if wanted == 4 then setElementData ( thePlayer, "Wanted", four ) setTimer(getwan, 120000) else if wanted == 5 then setElementData ( thePlayer, "Wanted", five ) setTimer(getwan, 300000) else if wanted == 6 then setElementData ( thePlayer, "Wanted", six ) setTimer(getwan, 300000) end end end end end end end end end setTimer(getwan,3000,0) addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), getwan )
-
شباب هلا كيف حالكم انا اليوم ابي مود عبارة عن لو جت احد نجمة او نجمتين تروح من نفسها بعد نص دقيقة وثلا واربع نجوم تروح بعد دقيقتين اما خمس وستة تروح بعد خمس دقائق وذا هو مافي حد يسوي لي اياه وذا محد يقدر عطوني مود يمسح النجوم مثلا لوحة تجيك فيها الاعبين وانت مداك تمسح النجوم منه
-
مشكوووووووووووووووووووووورين والله يعطيكم العافية وخاصة تابل ومستر بريستج والله محد قصر شكرا والله يعطيكم العافية
-
تابل حط الكود كامل تكفى عشان ماكس كوده ماشتغل
-
تابل شكرا على الكود الشغال بس انا ضفت كود عشان لو ضغط زر تظهر الصورة الاولى واذا ضغط الزر الثاني تختفي الاولى وتظهر الثانية واذا ضغت من جديد الزر الاول تختفي الصورة الثانية وتظهر الاولى يعني كل زر خاص بصورة بس اول ماتفتح النافذة تكون الصورتين مهي في يعني مخفيات الثنتين GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(114,90,558,418,"؟",false) GUIEditor_TabPanel[1] = guiCreateTabPanel(12,27,537,382,false,GUIEditor_Window[1]) GUIEditor_Tab[1] = guiCreateTab("؟",GUIEditor_TabPanel[1]) GUIEditor_Button[1] = guiCreateButton(15,74,86,44,"الزر1",false,GUIEditor_Tab[1]) GUIEditor_Button[2] = guiCreateButton(15,134,86,44,"الزر2",false,GUIEditor_Tab[1]) GUIEditor_Image[1] = guiCreateStaticImage(122,14,401,324,"images/1.png",false,GUIEditor_Tab[1]) GUIEditor_Image[2] = guiCreateStaticImage(122,14,401,324,"images/2.png",false,GUIEditor_Tab[1]) GUIEditor_Tab[2] = guiCreateTab("؟",GUIEditor_TabPanel[1]) GUIEditor_Label[1] = guiCreateLabel(204,111,315,130,"؟ ",false,GUIEditor_Tab[2]) GUIEditor_Label[2] = guiCreateLabel(198,182,237,42,"؟",false,GUIEditor_Tab[2]) closeButton = guiCreateButton(27,297,40,29,"~[x]~",false,GUIEditor_Tab[1]) closeButton2 = guiCreateButton(27,297,40,29,"~[x]~",false,GUIEditor_Tab[2]) guiSetVisible(GUIEditor_Window[1],false) guiSetVisible(GUIEditor_Image[1],false) guiSetVisible(GUIEditor_Image[2],false) -------------------------------------------- for i,lal in ipairs(GUIEditor_Label) do guiSetFont(lal,"default-bold-small") guiLabelSetColor(lal,255,255,0) ------------------------------------------ addEventHandler ( "onClientGUIClick", root, function ( ) if source == closeButton then guiSetVisible( GUIEditor_Window[1], false ) showCursor( false ) guiSetInputEnabled( false ) elseif source == closeButton2 then guiSetVisible( GUIEditor_Window[1], false ) showCursor( false ) guiSetInputEnabled( false ) elseif source == GUIEditor_Button[1] then guiSetVisible( GUIEditor_Image[1], true ) guiSetVisible( GUIEditor_Image[2], false ) elseif source == GUIEditor_Button[2] then guiSetVisible( GUIEditor_Image[1], false ) guiSetVisible( GUIEditor_Image[2], true ) end end ) --------------------------------------- addEvent ( "wnd", true ) addEventHandler ( "wnd", root, function ( ) guiSetVisible ( GUIEditor_Window[1], not guiGetVisible ( GUIEditor_Window[1] ) ) showCursor ( guiGetVisible ( GUIEditor_Window[1] ) ) guiSetInputEnabled ( guiGetVisible ( GUIEditor_Window[1] ) ) end )
-
-- Server Side addEventHandler ( "onResourceStart", resourceRoot, function ( ) for _, v in ipairs ( getElementsByType ( "player" ) ) do bindKey ( v, "F2", "down", givePermissions ) end end ) addEventHandler ( "onPlayerJoin", root, function ( ) bindKey ( source, "F2", "down", givePermissions ) end ) function givePermissions ( source ) local playerAccount = getAccountName ( getPlayerAccount ( source ) ) if playerAccount and not isGuestAccount ( playerAccount ) then if isObjectInACLGroup ( "user." .. playerAccount , aclGetGroup ("Police") ) then triggerClientEvent ( source, "wnd", source ) end end end مشكووووووووووووووور تابل كودك مزبوط 100% الله يعطيك العافية
-
يجيني كلام في اف8 ان المود مو شغال \server.lua:16: Bad argument @ 'getPlayerAccount' [Expected element at argument 1, got nil]
-
السلام عليكم ورحمة الله وبركاته كلنت [lua]outputChatBox("#F44434لفتح اللوحة اضغط F2", 255, 100, 0, true) GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(135,127,542,374,"؟",false) GUIEditor_TabPanel[3] = guiCreateTabPanel(9,24,524,341,false,GUIEditor_Window[1]) GUIEditor_Tab[3] = guiCreateTab("؟",GUIEditor_TabPanel[3]) GUIEditor_TabPanel[4] = guiCreateTabPanel(135,151,5,5,false,GUIEditor_Tab[3]) GUIEditor_Tab[5] = guiCreateTab("؟",GUIEditor_TabPanel[3]) closeButton = guiCreateButton(480,5,36,23,"~[x]~",false,GUIEditor_Tab[3]) bindKey( "F2", "down", function ( ) if isPlayerGroupName("POLICE") then guiSetVisible ( GUIEditor_Window[1], not guiGetVisible ( GUIEditor_Window[1] ) ) showCursor ( guiGetVisible ( GUIEditor_Window[1] ) ) guiSetInputEnabled( guiGetVisible ( GUIEditor_Window[1] ) ) end end ) function isPlayerGroupName(grp) if grp == true or grp == false then return grp else triggerServerEvent ( "onServer", getLocalPlayer(),getLocalPlayer(), grp) end end addEvent( "onClient", true ) addEventHandler( "onClient", getRootElement(), isPlayerGroupName ) سيرفر function OSF (pla, grp ) if isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(pla)), aclGetGroup ( tostring(grp) ) ) then triggerClientEvent ( pla, "onClient", getRootElement(), true) else triggerClientEvent ( pla, "onClient", getRootElement(), false) end end addEvent( "onServer", true ) addEventHandler( "onServer", getRootElement(), OSF ) لما اشغل المود تنفتح النافذة وانا مني في القروب حق الشرطة ليش اظن كودك فيه خطأ انت جربه هي تفتح لاي قروب مو لقروب الشرطة لكل القروبات وحتى ماتتسكر الرجاء الرد بسرعة
-
طيب كذا صح ؟؟ client-side outputChatBox("#F44434لفتح اللوحة اضغط F2", 255, 100, 0, true) GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(135,127,542,374,"؟",false) GUIEditor_TabPanel[3] = guiCreateTabPanel(9,24,524,341,false,GUIEditor_Window[1]) GUIEditor_Tab[3] = guiCreateTab("؟",GUIEditor_TabPanel[3]) GUIEditor_TabPanel[4] = guiCreateTabPanel(135,151,5,5,false,GUIEditor_Tab[3]) GUIEditor_Tab[5] = guiCreateTab("؟",GUIEditor_TabPanel[3]) closeButton = guiCreateButton(480,5,36,23,"~[x]~",false,GUIEditor_Tab[3]) function open() triggerServerEvent("wnad",localPlayer) end bindKey( "F2", "down",open) addEvent("wnd",true) addEventHandler("wnd",root, function ( ) guiSetVisible ( GUIEditor_Window[1], not guiGetVisible ( GUIEditor_Window[1] ) ) showCursor ( guiGetVisible ( GUIEditor_Window[1] ) ) guiSetInputEnabled( guiGetVisible ( GUIEditor_Window[1] ) ) end ) server-side addEvent("wnad",true) addEventHandler("wnad",root, function () if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Police")) then triggerClientEvent(source,"wnd",source) end end ) اتمنى المساعدة
-
شباب انا ابي تعدلو الكود ذا الملخص الكود ذا نافذة ابيها تقتح لقروب معين outputChatBox("#F44434لفتح اللوحة اضغط F2", 255, 100, 0, true) GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(135,127,542,374,"؟",false) GUIEditor_TabPanel[3] = guiCreateTabPanel(9,24,524,341,false,GUIEditor_Window[1]) GUIEditor_Tab[3] = guiCreateTab("؟",GUIEditor_TabPanel[3]) GUIEditor_TabPanel[4] = guiCreateTabPanel(135,151,5,5,false,GUIEditor_Tab[3]) GUIEditor_Tab[5] = guiCreateTab("؟",GUIEditor_TabPanel[3]) closeButton = guiCreateButton(480,5,36,23,"~[x]~",false,GUIEditor_Tab[3]) ---------------------------------------- if isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(player)), aclGetGroup ( "POLICE" ) ) then bindKey( "F2", "down", function ( ) guiSetVisible ( GUIEditor_Window[1], not guiGetVisible ( GUIEditor_Window[1] ) ) showCursor ( guiGetVisible ( GUIEditor_Window[1] ) ) guiSetInputEnabled( guiGetVisible ( GUIEditor_Window[1] ) ) end )
-
مشكوووووووووووووووووووووووووووووووووووووووووووور اسامة واما قصرت بس ياريت لو طعطيني الكود حق ثمانية صور عشان انا عندي ثمانية يعني انا ابي الصور الثمانية تطلع صوت
-
كلامي واضح انا ابغى اول مايبدى المود تكون اللوحة مقفلة ولو انا ضغط الصورة معد يسير مدان اضغط الزر حق اغلاق النافذة الي يعرف يرد والي مايعرف لايرد وكمان انت حطيت نفس كود اسامة وانا عندي اكثر من صورة وابيها كلها تطلع الصوت هي ثمان صور
-
حبيبي لما اضغط الصورة بعدين مامداني اقفل اللوحة بالزر ياخي عدلي تكفى
-
انا حاط الصوت وكل شيء بس انا ابغاك تعدل الملف ومشكووور بس ممكن تخلي اول مايبدأ المود تكون مقفلة
-
شباب الكود ابيه لما اضغط على الصورة يطلع صوت اوك بس المود موراضي يشتغل كود: GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(135,127,542,374,"?",false) GUIEditor_TabPanel[3] = guiCreateTabPanel(9,24,524,341,false,GUIEditor_Window[1]) GUIEditor_Tab[3] = guiCreateTab("?",GUIEditor_TabPanel[3]) GUIEditor_Image[1] = guiCreateStaticImage(351,149,30,34,"sor/1.png",false,GUIEditor_Tab[3]) closeButton = guiCreateButton(365,23,36,23,"~[x]~",false,GUIEditor_Window[1]) ---------------------------------------- bindKey ( "F2" , "down" , function() if ( guiGetVisible ( GUIEditor_Window[1] ) == true ) then guiSetVisible ( GUIEditor_Window[1] ,false ) showCursor (false ) guiSetInputEnabled(false) elseif ( guiGetVisible ( GUIEditor_Window[1] ) == false ) then guiSetVisible ( GUIEditor_Window[1] ,true ) showCursor (true ) guiSetInputEnabled(true) end end function close() if guiGetVisible(GUIEditor_Window[1]) then guiSetVisible ( GUIEditor_Window[1] ,false ) showCursor (false ) guiSetInputEnabled(false) end end addEventHandler ("onClientGUIClick", closeButton, close) function b1() playSound("sot/1.mp3") end end addEventHandler ("onClientGUIClick", GUIEditor_Image[1], b1) end ) تكفى ساعدوني