-
Posts
200 -
Joined
-
Last visited
Everything posted by Mr.OppS
-
مو زرف و سرقة الولد نشر الكود و شئ عادى , الكل يزيد مشاركات ولاحد يساعدفففففف
-
ياخى ليش تستخدام كلمة مسرؤق ! عيب اخى احترم شوية , شيبك الكود مو مسروق ! الكود منشور وانا استخدآم الكًود + راجع الكلام تشوف طلب مساعدة ! لم اذكر ان هذا مود خاص بى و هذة برمجتى داخل تزيد مشاركات ,, //// ياخى ليش تستخدام كلمة مسرؤق ! عيب اخى احترم شوية , شيبك ,, الكود مو مسروق ! الكود منشور وانا استخدآم الكًود
-
شوف كود و ساعدنى , بسيطة <PC > اوك , من يتوافر معاك
-
ليش ماتقدر تساعد مامعى حساب صاحب مود ,, اذا انت معاك حساب او طريقة للتواصل معه اعطنى
-
السلام عليكم , كيف الحال ؟ مشكلة فى مود الديربى يسوى اشياء خبيـثـة والله ,, الديربى بدأ وانت واقف و تلعب تشوف يطلع فى شات لقد بدأ ديربى للدخول اكتب فى شات ديربى و انت تلعب تشوف حالك موت و الكل مات ! و يطلع فى شات لم يبدأ ديربى لعدم توافر لاعبين الكود قبل كان شغال تمام صار بة شبح ألـكـود ,, سيـرفـر spawns = {} setElementData(resourceRoot,"map","no") setElementData(resourceRoot,"winMoney","0") sfa7DerbyMarker = createMarker(1504.96985,-2930.28979,14, "arrow", 1.1, 255, 0, 0, 170 ) addEventHandler('onMarkerHit', sfa7DerbyMarker, function(element) if getElementType(element) == 'player' and checkDuel(element) == "prestart" and ( not checkExistPlrOnDuel(element) ) then online = countPlayersOnDerby() if tonumber(online) +1 < 32 then setData(element,"onCrossMap","yes") outputChatBox("المرجو الانتظار...",source,255,255,0,true) setD(element) spawnOnMap(element) else outputChatBox("لم يبق مكان لك بالديربي انتظر حتى الديربي القادم ",source,0,255,0,true) end end end) function checkDuel(p) if tostring(getElementData(resourceRoot,"map")) == "yes" then outputChatBox("انتظر ريثما ينتهي الديربي الحالي",p,255,255,0,true) elseif tostring(getElementData(resourceRoot,"map")) == "no" then outputChatBox("انتظر ريثما يبدأ الديربي",p,255,255,0,true) if _mytimer and isTimer(_mytimer) then local _r,_e,_t = getTimerDetails(_mytimer) if _r and _e and _t then total = _r / 60 / 1000 ss = math.floor( _r / 1000 ) seconds = tostring( math.fmod( ss, 60 ) ) outputChatBox(" باقـى :/ "..math.ceil(total)..":"..seconds.."",p,255,255,0,true) end end end return tostring(getElementData(resourceRoot,"map")) end function checkExistPlrOnDuel(p) per = getElementData(p,"onCrossMap") if tostring(per) == "yes" then return true else return false end end function setData(element,key,vlr) setElementData(element,key,vlr) end function setD(element) setElementDimension(element,30) end function spawnOnMap(p) count = countPlayersOnDerby() spawned = "no" for i,data in pairs(spawns)do if tonumber(data.id) == tonumber(count) then spawned = "yes" v = createVehicle(411,data.x,data.y,data.z,data.rx,data.ry,data.rz) setElementDimension(v,30) setElementFrozen(v,true) setElementData(v,"creatorDerby","yes") break end end if spawned == "no" then randomS = math.random("1","32") for i,data in pairs(spawns)do if tonumber(data.id) == tonumber(randomS) then v = createVehicle(411,data.x,data.y,data.z,data.rx,data.ry,data.rz) setElementDimension(v,30) setElementFrozen(v,true) setElementData(v,"creatorDerby","yes") break end end end toggleControl(p,"enter_exit", false ) warpPedIntoVehicle(p,v) setCameraTarget(p,p) end function countPlayersOnDerby() c = -1 for i,p in pairs(getElementsByType("player"))do if checkExistPlrOnDuel(p) then c = c+1 end end return tonumber(c) end function eventCheck () if checkExistPlrOnDuel(source) then toggleControl(source,"enter_exit",true ) setData(source,"onCrossMap","no") checkEnd() end end addEventHandler("onPlayerWasted",getRootElement(), eventCheck) addEventHandler("onPlayerQuit",getRootElement(),eventCheck) addEventHandler("onPlayerJoin",getRootElement(),function() outputChatBox("",source,255,255,0,true) setData(source,"onCrossMap","no") end) for i,p in pairs(getElementsByType("player"))do setData(p,"onCrossMap","no") end function checkEnd() c = 0 for i,p in pairs(getElementsByType("player"))do if checkExistPlrOnDuel(p) then c = c+1 winner = p end end if tonumber(c) == 1 then givePlayerMoney(winner,tonumber(getElementData(resourceRoot,"winMoney"))) n = string.gsub(getPlayerName(winner), "#%x%x%x%x%x%x", "") outputChatBox("#00FF00[" .. n .. "]#FFFF00 Won the Derby and win#00FF00[" .. tonumber(getElementData(resourceRoot,"winMoney")) .. "$]",getRootElement(),255,255,0,true) setElementData(resourceRoot,"map","no") endDerby() _mytimer = setTimer(newDuel,60*1000*5,1) end end function newDuel() for i,p in pairs(getElementsByType("player"))do setData(p,"onCrossMap","no") end setElementData(resourceRoot,"map","prestart") outputChatBox("للدخول الى الدريبي اكتب في الشات , ديربي ",getRootElement(),255,255,0,true) RMoney = math.random("25000","35000") setElementData(resourceRoot,"winMoney",tonumber(RMoney)) outputChatBox("سيحصل الفائز في الديربي على " .. RMoney .. "$",getRootElement(),0,255,0,true) setTimer(checkPlrs,55000,1) end function checkPlrs () c = 0 for i,p in pairs(getElementsByType("player"))do if checkExistPlrOnDuel(p) then c = c+1 end end if tonumber(c) > 1 then setElementData(resourceRoot,"map","yes") for i,p in pairs(getElementsByType("player"))do if checkExistPlrOnDuel(p) then setElementCollisionsEnabled(getPedOccupiedVehicle( p),true) outputChatBox("لقد بدأ الديربي , يمكنك الانطلاق",p,0,255,0,true) setElementFrozen(getPedOccupiedVehicle(p),false) end end else endDerby() setElementData(resourceRoot,"map","no") outputChatBox("! لم يبدأ الديربي لعدم توفر الاعبين",getRootElement(),255,255,0,true) _mytimer = setTimer(newDuel,60*1000*7,1) end end _mytimer = setTimer(newDuel,30000,1) function onStartLoadSpawns () file = fileOpen("map.map") localFile = fileOpen("map.xml") fileWrite(localFile,"") data = fileRead(file,999999) fileWrite(localFile,data) fileClose(localFile) xml = xmlLoadFile("map.xml") c = 0 for i,data in pairs(xmlNodeGetChildren(xml)) do if xmlNodeGetName(data) == "spawnpoint" then c = c+1 v,xx,yy,zz,rxx,ryy,rzz = xmlNodeGetAttribute(data,"vehicle"),xmlNodeGetAttribute(data,"posX"),xmlNodeGetAttribute(data,"posY"),xmlNodeGetAttribute(data,"posZ"),xmlNodeGetAttribute(data,"rotX"),xmlNodeGetAttribute(data,"rotY"),xmlNodeGetAttribute(data,"rotZ") table.insert(spawns,{id = c,model = v,x = xx,y = yy,z = zz,rx = rxx,ry = ryy,rz = rzz}) end end for i,data in pairs(xmlNodeGetChildren(xml)) do if xmlNodeGetName(data) == "object" then m,xx,yy,zz,rxx,ryy,rzz = xmlNodeGetAttribute(data,"model"),xmlNodeGetAttribute(data,"posX"),xmlNodeGetAttribute(data,"posY"),xmlNodeGetAttribute(data,"posZ"),xmlNodeGetAttribute(data,"rotX"),xmlNodeGetAttribute(data,"rotY"),xmlNodeGetAttribute(data,"rotZ") object = createObject(m,xx,yy,zz,rxx,ryy,rzz) setElementDimension(object,30) end end end setTimer(onStartLoadSpawns,3000,1) function endDerby() for i,p in pairs(getElementsByType("player"))do if checkExistPlrOnDuel(p) then killPed(p) end end for i,v in pairs(getElementsByType("vehicle"))do if getElementData(v,"creatorDerby") then destroyElement(v) end end end setTimer(function() for i,p in pairs(getElementsByType("player"))do sea(p) resetHan(p) checkVeh(p) checkModel(p) end end,1000,0) outputChatBox("",getRootElement(),255,255,0,true) function sea(p) if checkExistPlrOnDuel(p) then x,y,z = getElementPosition(p) if tonumber(z) <= 0 then killPed(p) end end end function checkVeh(p) if (tonumber(getElementDimension(p)) == 30) and not (isPedInVehicle(p))then killPed(p) end end function resetHan(p) if checkExistPlrOnDuel(p) then setVehicleHandling (getPedOccupiedVehicle(p), true ) end end function checkModel(p) if checkExistPlrOnDuel(p) and isPedInVehicle(p) then if tonumber(getElementModel(getPedOccupiedVehicle(p)) ) ~= 411 then killPed(p) end end end مساعدة شباب , رجاء واحد يصلح الكود و يعطنى ايها شكراً
-
ضض , يصير تـسـهـل القصة اكثير
-
السلام عليكم , كيـف الـحـال ؟ هذا المود اذا تسوى تشـغـيـل = يطلع كلام تحت شـات تـلـقـائـى ,, أريد أسـوى اذا تشغل المود = لا يطلع الكـلآم + الـكـلام يـطلـع من آف3 ,واذا اضغط اف3 مرة اخـرى = يخـتـفـئ الـكـود --CLient local x, y = guiGetScreenSize() local sW,sH = (x/1920),(y/1080) addEventHandler("onClientRender", root, function() local LOL = getElementData(localPlayer, "Level") or 1 local DOL = getElementData(localPlayer, "DOL") or 0 local needDOL = LOL * 1 dxDrawRectangle(25*sW, 400*sH, 300*sW, 80*sH, tocolor(0, 0, 0, 100)) dxDrawText("AS: "..LOL, -150*sW, 775*sH, 300*sW, 80*sH, tocolor(255, 255, 255, 255), 1, "default-bold", "center", "center") dxDrawText("DS: "..string.format("%d", DOL).."/"..needDOL, 250*sW, 775*sH, 300*sW, 80*sH, tocolor(255, 255, 255, 255), 1, "default-bold", "center", "center") dxDrawText(string.format("S", 100/(needDOL/DOL)).."A", 50*sW, 830*sH, 300*sW, 80*sH, tocolor(255, 255, 255, 255), 1, "default-bold", "center", "center") dxDrawRectangle(35*sW, 445*sH, 280*sW, 20*sH, tocolor(150, 150, 150, 100)) dxDrawRectangle(35*sW, 445*sH, 280*sW/needDOL*(DOL), 20*sH, tocolor(255, 255, 255, 100)) end) شكرأ
-
ماهو حقك !! أقـراء مشاركـة / راح تشـوف ماذكرت أن هذا كودى الخاص و برمجتى الخاصـة , ليش تـتـهـم ؟ اتهمات كذبة؟ ,,, لكـن أفـضـل أن اعدل على كود خاص بى ! واسـوى كود منـظم و مرتـب = الكود الخاص = الكود الذى انا ضفتة فى مشاركة ! حتى لا تسال وين كود او كذا ! ض ,,, لا عذر لك ! لان امثلك صارو يـنـقـرضـون !و من المعروف الشخص من ينقرض ,يحاول الايذاء وتخريب ! ههههه , ضض
-
انصحك بحق عقرب مرتب وكويس عدلت عليه انا بـ انه يطلع للاعب اللي ارسل بعد مشكوؤر ! و لـكـن أفـضـل أن اعدل على كود خاص بى ! واسـوى كود منـظم و مرتـب ,,, ساعدونى رجاء
-
لا أوضـح اكثـيـر ,, يـوجـود 2 مـود ( اظهار الكلام فوق الرأس)ض X اسـم الـمـود الأول Z اسـم الـمـود الـثـانـى الـمـود الأول X اذا انت تكـتـب فـى شـات السلام عليكم | هـلا | كيـف الحال ؟ 1 | 2 | 3 | يـظهـر كذا لـكـن الـمـود الـثـانـى Z اذا انت تكـتـب فـى شـات السلام عليكم | هـلا | كيـف الحال ؟ 1 | 2 | ض يـظهـر كذا الاختلاف واضح !! ان المود الاول يطلع الكلام بالـعــكـس !!! ولكـن مود الـثـانـى يطلع بالـتـرتـيـب و تـنـظيـم
-
السلام عليكم كيف الحال؟ مود الكلام يظهر فوق الرأس المود يعمل بدون مشاكل ! لكن الكلام لا يظهر بالترتـيـب المعروف صور من داخل المود ! 1 2مـود اخـر اريد اسوى مود رقم1 مثـل مود رقم 2 ض كيف !؟ الاكواد : سيرفر function outputMessage(element, text) assert(isElement(element), "outputMessage @ Bad argument: expected element at argument 1, got "..type(element).." "..tostring(element)) triggerClientEvent("onChatIncome", element, tostring(text)) end function sendMessageToClient(message,messagetype) if not wasEventCancelled() then if messagetype == 0 or messagetype == 2 then triggerClientEvent("onChatIncome", source, message, messagetype) end end end addEventHandler("onPlayerChat",getRootElement(),sendMessageToClient) كليـنــت local selfVisible = true -- Want to see your own message? local messages = {} -- {text, player, lastTick, alpha, yPos} local textures = {} local timeVisible = 13500 local distanceVisible = 50 local bubble = true -- Rounded rectangle(true) or not(false) function addBubble(text, player, tick) if (not messages[player]) then messages[player] = {} end local width = dxGetTextWidth(text:gsub("#%x%x%x%x%x%x", ""), 1, "default-bold") local _texture = dxCreateRoundedTexture(width+16,20,100) table.insert(messages[player], {["text"] = text, ["player"] = player, ["tick"] = tick, ["endTime"] = tick + 2000, ["alpha"] = 0, ["texture"] = _texture}) end function removeBubble() table.remove(messages) end addEvent("onChatIncome", true) addEventHandler("onChatIncome", root, function(message, messagetype) if source ~= localPlayer then addBubble(message, source, getTickCount()) elseif selfVisible then addBubble(message, source, getTickCount()) end end ) -- outElastic | Got from https://github.com/EmmanuelOga/easing/blob/master/lib/easing.lua local pi = math.pi function outElastic(t, b, c, d, a, p) if t == 0 then return b end t = t / d if t == 1 then return b + c end if not p then p = d * 0.3 end local s if not a or a < math.abs(c) then a = c s = p / 4 else s = p / (2 * pi) * math.asin(c/a) end return a * math.pow(2, -10 * t) * math.sin((t * d - s) * (2 * pi) / p) + c + b end addEventHandler("onClientRender", root, function() local tick = getTickCount() local x, y, z = getElementPosition(localPlayer) for _, pMessage in pairs(messages) do for i, v in ipairs(pMessage) do if isElement(v.player) then if tick-v.tick < timeVisible then local px, py, pz = getElementPosition(v.player) if getDistanceBetweenPoints3D(x, y, z, px, py, pz) < distanceVisible and isLineOfSightClear ( x, y, z, px, py, pz, true, not isPedInVehicle(v.player), false, true) then v.alpha = v.alpha < 200 and v.alpha + 5 or v.alpha local bx, by, bz = getPedBonePosition(v.player, 6) local sx, sy = getScreenFromWorldPosition(bx, by, bz) local elapsedTime = tick - v.tick local duration = v.endTime - v.tick local progress = elapsedTime / duration if sx and sy then if not v.yPos then v.yPos = sy end local width = dxGetTextWidth(v.text:gsub("#%x%x%x%x%x%x", ""), 1, "default-bold") --local yPos = interpolateBetween ( v.yPos, 0, 0, sy - 22*i, 0, 0, progress, "OutElastic") local yPos = outElastic(elapsedTime, v.yPos, ( sy - 22*i ) - v.yPos, duration, 5) if bubble then dxDrawImage ( sx-width/2-10, yPos - 16, width+16, 20, v.texture, nil, nil, tocolor(0, 0, 0, v.alpha) ) else dxDrawRectangle(sx-width/2-10, yPos - 16, width+16, 20, tocolor(0, 0, 0, v.alpha)) end dxDrawText(v.text, sx-width/2-2, yPos - 14, width, 20, tocolor( 255, 255, 255, v.alpha+50), 1, "default-bold", "left", "top", false, false, false, true) end end else table.remove(messages[v.player], i) end else table.remove(messages[v.player], i) end end end end ) كليـنـت function dxCreateRoundedTexture(text_width,text_height,radius) assert(text_width,"Missing argument 'text_width' at dxCreateRoundedTexture") assert(text_height,"Missing argument 'height' at dxCreateRoundedTexture") assert(radius,"Missing argument 'radius' at dxCreateRoundedTexture") if type(text_width) ~= "number" then outputDebugString("Bad argument @ 'dxCreateRoundedTexture' [Excepted number at argument 1, got " .. type(text_width) .. "]",2) return false end if type(text_height) ~= "number" then outputDebugString("Bad argument @ 'dxCreateRoundedTexture' [Excepted number at argument 2, got " .. type(text_height) .. "]",2) return false end if type(radius) ~= "number" then outputDebugString("Bad argument @ 'dxCreateRoundedTexture' [Excepted number at argument 3, got " .. type(radius) .. "]",2) return false end if text_width < 0 then outputDebugString("text_width can't be less than 0",1) return false end if text_height < 0 then outputDebugString("text_height can't be less than 0",1) return false end if radius < 0 or radius > 100 then outputDebugString("Parameter 'radius' can't be between 0 and 100",1) return false end local texture = DxTexture(text_width,text_height) local pix = texture:getPixels() radius = (radius * (text_height / 2)) / 100 for x=0,text_width do for y=0,text_height do if x >= radius and x <= text_width - radius then dxSetPixelColor(pix,x,y,255,255,255,255) end if y >= radius and y <= text_height - radius then dxSetPixelColor(pix,x,y,255,255,255,255) end if math.sqrt((x - radius)^2 + (y - radius)^2) < radius then dxSetPixelColor(pix,x,y,255,255,255,255) end if math.sqrt((x - (text_width - radius))^2 + (y - radius)^2) < radius then dxSetPixelColor(pix,x,y,255,255,255,255) end if math.sqrt((x - radius)^2 + (y - (text_height - radius))^2) < radius then dxSetPixelColor(pix,x,y,255,255,255,255) end if math.sqrt((x - (text_width - radius))^2 + (y - (text_height - radius))^2) < radius then dxSetPixelColor(pix,x,y,255,255,255,255) end end end texture:setPixels(pix) return texture end ----
-
ضـفـت الأكود ! بس ماضبطط الوحة تفتح لكل ! و هذا الامر مايضبط
-
-- code ما اعرف احط الكود حاولت ولكن فشلت
-
اى صح اتخبرطو ههههههههههههه , آسف تجربة ضض -سيرفر addEvent("playIT",true) addEventHandler("playIT",root,function(who,what) for k,v in ipairs ( getElementsByType("player") ) do if getPlayerTeam(v) == getPlayerTeam(who) then triggerClientEvent(v,"playITc",v,who,what) end end end ) local allowedAccountSerials = { { "9C9F3B55D9D7BB7135FF274D3BF444E4" }, { "2C9F3B55D9D7BB7135FF274D3BF444E4" }, } addEventHandler("onPlayerLogin", root, function(_, account) local playerSerial, allowedSerials = getPlayerSerial(source), allowedAccountSerials[(serial)] or "" for i = 1, #allowedSerials do if allowedSerials[i] == playerSerial then return end end outputChatBox("Not Allow",root,0,0,0, true) end ) -كلينت --======== Settings ========-- theKey = "M" -- The key will toggle radio texts = { -- the texts of the radio sounds [1] = "Go Go Go !", [2] = "Need Backup !", [3] = "Cover Me !", [4] = "Follow Me !", [5] = "In Postition !", [6] = "Need Assistance !", [7] = "Sector Clear !", [8] = "Stick Together !", [9] = "Negative !", } RadioText = "|| Radio - Press Number:" -- first label text FloodTime = 20 --- how much is flood time [ in seconds ] c11,c12,c13 = 255,255,0 -- first color [ yellow ] c21,c22,c23 = 0,255,255 -- second color [ green ] --======== Settings ========-- GUIEditor_Label = {} GUIEditor_Label[1] = guiCreateLabel(19,193-5,235,16,RadioText,false) GUIEditor_Label[2] = guiCreateLabel(19,193+20,235,16,"1 : Go GO Go",false) GUIEditor_Label[3] = guiCreateLabel(19,193+20+20,235,16,"2 : Go GO Go",false) GUIEditor_Label[4] = guiCreateLabel(19,193+20+20+20,235,16,"3 : Go GO Go",false) GUIEditor_Label[5] = guiCreateLabel(19,193+20+20+20+20,235,16,"4 : Go GO Go",false) GUIEditor_Label[6] = guiCreateLabel(19,193+20+20+20+20+20,235,16,"5 : Go GO Go",false) GUIEditor_Label[7] = guiCreateLabel(19,193+20+20+20+20+20+20,235,16,"6 : Go GO Go",false) GUIEditor_Label[8] = guiCreateLabel(19,193+20+20+20+20+20+20+20,235,16,"7 : Go GO Go",false) GUIEditor_Label[9] = guiCreateLabel(19,193+20+20+20+20+20+20+20+20,235,16,"8 : Go GO Go",false) GUIEditor_Label[10] = guiCreateLabel(19,193+20+20+20+20+20+20+20+20+20,235,16,"9 : Go GO Go",false) for k,v in ipairs (GUIEditor_Label) do guiSetFont(v,"default-bold-small") end function bind() can = true for i,v in ipairs ( GUIEditor_Label ) do for k,m in ipairs ( texts ) do if k == i then guiSetText(GUIEditor_Label[i+1],""..k.." : "..m.."") end end guiSetVisible(v,false) guiLabelSetColor(v,0,255,0) bindKey(tostring(theKey),"down",function() if guiGetVisible(v) == true then guiSetVisible(v,false) unbindKey(""..i.."","down",function() guiLabelSetColor(GUIEditor_Label[i+1],c11,c12,c13) end ) unbindKey(""..i.."","up",function() guiLabelSetColor(GUIEditor_Label[i+1],c21,c22,c23) end ) else guiSetVisible(v,true) bindKey(""..i.."","down",function() if can then can = false setTimer(function() can = true end,FloodTime * 1000 , 1 ) guiLabelSetColor(GUIEditor_Label[i+1],c11,c12,c13) triggerServerEvent("playIT",getLocalPlayer(),getLocalPlayer(),i) end end ) bindKey(""..i.."","up",function() guiLabelSetColor(GUIEditor_Label[i+1],0,255,0) end ) end end ) end end addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()),bind) addEvent("playITc",true) addEventHandler("playITc",root,function(who,what) outputChatBox("[RADIO] "..getPlayerName(who).." : "..texts[what].."",c21,c22,c23,true) playSound(""..what..".mp3") end )
-
السلام عليكم كيف الحال؟ مود الراديو حق العقرب لتشغيل المود اضغط حرف ' ة ' ض ,, المود يفتح للكل !! أريد اسوى اضافة واخلى المود فقط يظهر على 2 سريال -سيرفر --======== Settings ========-- theKey = "M" -- The key will toggle radio texts = { -- the texts of the radio sounds [1] = "Go Go Go !", [2] = "Need Backup !", [3] = "Cover Me !", [4] = "Follow Me !", [5] = "In Postition !", [6] = "Need Assistance !", [7] = "Sector Clear !", [8] = "Stick Together !", [9] = "Negative !", } RadioText = "|| Radio - Press Number:" -- first label text FloodTime = 20 --- how much is flood time [ in seconds ] c11,c12,c13 = 255,255,0 -- first color [ yellow ] c21,c22,c23 = 0,255,255 -- second color [ green ] --======== Settings ========-- GUIEditor_Label = {} GUIEditor_Label[1] = guiCreateLabel(19,193-5,235,16,RadioText,false) GUIEditor_Label[2] = guiCreateLabel(19,193+20,235,16,"1 : Go GO Go",false) GUIEditor_Label[3] = guiCreateLabel(19,193+20+20,235,16,"2 : Go GO Go",false) GUIEditor_Label[4] = guiCreateLabel(19,193+20+20+20,235,16,"3 : Go GO Go",false) GUIEditor_Label[5] = guiCreateLabel(19,193+20+20+20+20,235,16,"4 : Go GO Go",false) GUIEditor_Label[6] = guiCreateLabel(19,193+20+20+20+20+20,235,16,"5 : Go GO Go",false) GUIEditor_Label[7] = guiCreateLabel(19,193+20+20+20+20+20+20,235,16,"6 : Go GO Go",false) GUIEditor_Label[8] = guiCreateLabel(19,193+20+20+20+20+20+20+20,235,16,"7 : Go GO Go",false) GUIEditor_Label[9] = guiCreateLabel(19,193+20+20+20+20+20+20+20+20,235,16,"8 : Go GO Go",false) GUIEditor_Label[10] = guiCreateLabel(19,193+20+20+20+20+20+20+20+20+20,235,16,"9 : Go GO Go",false) for k,v in ipairs (GUIEditor_Label) do guiSetFont(v,"default-bold-small") end function bind() can = true for i,v in ipairs ( GUIEditor_Label ) do for k,m in ipairs ( texts ) do if k == i then guiSetText(GUIEditor_Label[i+1],""..k.." : "..m.."") end end guiSetVisible(v,false) guiLabelSetColor(v,0,255,0) bindKey(tostring(theKey),"down",function() if guiGetVisible(v) == true then guiSetVisible(v,false) unbindKey(""..i.."","down",function() guiLabelSetColor(GUIEditor_Label[i+1],c11,c12,c13) end ) unbindKey(""..i.."","up",function() guiLabelSetColor(GUIEditor_Label[i+1],c21,c22,c23) end ) else guiSetVisible(v,true) bindKey(""..i.."","down",function() if can then can = false setTimer(function() can = true end,FloodTime * 1000 , 1 ) guiLabelSetColor(GUIEditor_Label[i+1],c11,c12,c13) triggerServerEvent("playIT",getLocalPlayer(),getLocalPlayer(),i) end end ) bindKey(""..i.."","up",function() guiLabelSetColor(GUIEditor_Label[i+1],0,255,0) end ) end end ) end end addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()),bind) addEvent("playITc",true) addEventHandler("playITc",root,function(who,what) outputChatBox("[RADIO] "..getPlayerName(who).." : "..texts[what].."",c21,c22,c23,true) playSound(""..what..".mp3") end ) -كلينت addEvent("playIT",true) addEventHandler("playIT",root,function(who,what) for k,v in ipairs ( getElementsByType("player") ) do if getPlayerTeam(v) == getPlayerTeam(who) then triggerClientEvent(v,"playITc",v,who,what) end end end ) شكراً
-
أوك , مشكوؤر
-
ممممممممممممممممممممممممممممم ؟ ويـن ؟