AHMED MOSTAFA
Members-
Posts
1,367 -
Joined
-
Last visited
-
Days Won
27
Everything posted by AHMED MOSTAFA
-
اول شي كان فيه خطأ في كلمة nocc كان ناقص حرف الالف المهم اطلع لردي مرة ثانية عدلته وثاني شي اكيد مارح اعطيك كود كامل وش رح تستفاد اذا اعتيتك كود كامل ؟
-
-- server function كمل () for id, كمل in ipairs(getElementsByType("player")) do if ( getPlayerAccount ( كمل ) ) and not isGuestAccount ( ( getPlayerAccount ( player ) ) ) then if isObjectInACLGroup ("user."..getAccountName ( getPlayerAccount ( player ) ), aclGetGroup ( "كمل" ) ) then setElementData ( player, "كمل", getAccountName ( getPlayerAccount ( كمل ) ) ) كمل setElementData ( player, "accname", "noacc" ) end else setElementData ( كمل, "accname", "noacc" ) end كمل end test1 () -- client accNameList = guiCreateGridList column = guiGridListAddColumn( accNameList, "Player", 0.85 ) function test2 () if ( column ) then for id, player in ipairs(getElementsByType("كمل")) do local row = guiGridListAddRow ( كمل ) if not ( getElementData ( كمل, "accname" ) == "noacc" ) then guiGridListSetItemText ( كمل, row, column, getElementData ( كمل, "accname" ) or "noacc", false, false ) end end end end كمل () جرب
-
ما ادري يمكن المفروض تحاول تجرب و تعرف ؟ يب بتجيب اسماء اللاعبين
-
؟؟ addEventHandler("onClientGUIClick", root, function() if source == GUIEditor.button[1] then local userName = guiGetText(GUIEditor.edit[1]) local passWord = guiGetText(GUIEditor.edit[2]) if userName ~= "" and passWord ~= "" then triggerServerEvent("Login-Register", localPlayer, "Login", userName, passWord) guiSetEnabled(GUIEditor.button[1], false) setTimer(function() guiSetEnabled(GUIEditor.button[1], true) end, 3000, 1) end elseif source == GUIEditor.button[2] then local userName = guiGetText(GUIEditor.edit[3]) local passWord1 = guiGetText(GUIEditor.edit[4]) local passWord2 = guiGetText(GUIEditor.edit[5]) if userName ~= "" and passWord1 ~= "" and passWord2 ~= "" then if #passWord1 < 4 then outputChatBox("The Password should be at least 4 characters long.", 255, 100, 0) elseif passWord1 ~= passWord2 then outputChatBox("The password does not match.", 255, 0, 0) else guiSetEnabled(GUIEditor.button[2], false) setTimer(function() guiSetEnabled(GUIEditor.button[2], true) end, 3000, 1) triggerServerEvent("Login-Register", localPlayer, "Register", userName, passWord1) end end elseif source == GUIEditor.button[3] guiSetVisible(GUIEditor.window[2],true) showCursor(true) end end )
-
وش المشكلة ؟
-
really guiGridListClear(gridlist2) local row = guiGridListAddRow(gridlist2) guiGridListSetItemText(gridlist2,row,1,accName,false,false) وش تسوي بالسيرفر ؟ وحتى اذا كان الملف كلينت وش ذا accName = getAccountName(account) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Console" ) ) then
-
المثال جاهز بالويكي guiCreateGridlist
-
function dxDrawCircle( posX, posY, radius, width, angleAmount, startAngle, stopAngle, color, postGUI ) if ( type( posX ) ~= "number" ) or ( type( posY ) ~= "number" ) then return false end local function clamp( val, lower, upper ) if ( lower > upper ) then lower, upper = upper, lower end return math.max( lower, math.min( upper, val ) ) end radius = type( radius ) == "number" and radius or 50 width = type( width ) == "number" and width or 5 angleAmount = type( angleAmount ) == "number" and angleAmount or 1 startAngle = clamp( type( startAngle ) == "number" and startAngle or 0, 0, 360 ) stopAngle = clamp( type( stopAngle ) == "number" and stopAngle or 360, 0, 360 ) color = color or tocolor( 255, 255, 255, 200 ) postGUI = type( postGUI ) == "boolean" and postGUI or false if ( stopAngle < startAngle ) then local tempAngle = stopAngle stopAngle = startAngle startAngle = tempAngle end for i = startAngle, stopAngle, angleAmount do local startX = math.cos( math.rad( i ) ) * ( radius - width ) local startY = math.sin( math.rad( i ) ) * ( radius - width ) local endX = math.cos( math.rad( i ) ) * ( radius + width ) local endY = math.sin( math.rad( i ) ) * ( radius + width ) dxDrawLine( startX + posX, startY + posY, endX + posX, endY + posY, color, width, postGUI ) end return true end addEventHandler( "onClientRender", root, function( ) -- bool dxDrawCircle ( int posX, int posY [, int radius = 50, int, width = 5, int angleAmount = 1, int startAngle = 0, int stopAngle = 360, int color = white, bool postGUI = false ] ) dxDrawCircle( 200, 200, 50, 5, 1, 0, 90 ) end ) bool dxDrawCircle ( int posX, int posY [, int radius = 50, int, width = 5, int angleAmount = 1, int startAngle = 0, int stopAngle = 360, int color = white, bool postGUI = false ] ) Required Arguments An example of how dxDrawCircle function works in practice. posX: An integer representing the absolute X position of the circle center, represented by pixels on the screen. posY: An integer representing the absolute Y position of the circle center, represented by pixels on the screen. Optional Arguments NOTE: When using optional arguments, you might need to supply all arguments before the one you wish to use. For more information on optional arguments, see optional arguments. radius: An integer representing the radius scale of the circle that is being drawn. width: An integer representing the width of the line that is being drawn. angleAmount: An integer representing the tightness of the circle. Lower amount makes it smoother, higher amount makes it more of a clock looking circle. startAngle: An integer representing the angle of the first point of the circle. stopAngle: An integer representing the angle of the last point of the circle. color: An integer of the hex color, produced using tocolor or 0xAARRGGBB (AA = alpha, RR = red, GG = green, BB = blue). postGUI: A bool representing whether the line should be drawn on top of or behind any ingame GUI (rendered by CEGUI).
-
افهمها بالمستوى الذي يناسب عمرك +1
-
interpolateBetween
-
دي اكس ولا جيو ؟
-
@3laa33 هو يبي يسوي شريط تقدم بالدائرة صح ؟ يعني مثلاً هو يبي يجيب دم اللاعب على اساس الدائرة .. يقدر يستعملها لأن مثلاً اذا دم اللاعب النص يقدر يخلي الدائرة نصف دائرة فقط اذا لا ... حاول تفيده انت @KariiiM u can use this Useful Function code https://wiki.multitheftauto.com/wiki/DxDrawCircle
-
dxDrawCircle ??
-
تعلم البرمجة
- 8 replies
-
- حماية من الاسلحة
- مود
-
(and 3 more)
Tagged with:
-
createColRectangle -- or createRadarArea "onClientRender" isElementWithinColShape -- ColRectangle isInsideRadarArea -- RadarArea setPlayerWeaponSlot
- 8 replies
-
- 1
-
- حماية من الاسلحة
- مود
-
(and 3 more)
Tagged with:
-
لأني فكرتك شارب حشيش ولا شي ولكن فهمت اللي صار فحبيت اقول بس
-
test it function onBan ( _, Player ) for _, ban in ipairs( getBans() )do if isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(source)),aclGetGroup("Admin")) then if getPlayerName ( source ) == getBanNick( ban ) then if ( removeBan ( ban ) ) then outputChatBox("This is a bad idea. :)",Player , 255, 255, 255, true) end end end end end addEventHandler ( "onPlayerBan", root, onBan )
-
u can not use ( cancelEvent with onPlayerBan ) but u can use removeBan test it function onBan ( _, Player ) if isObjectInACLGroup ( "user."..getAccountName ( getPlayerAccount ( source ) ), aclGetGroup ( "Admin" ) ) then removeBan ( source ) outputChatBox("This is a bad idea. :)",Player , 255, 255, 255, true) end end addEventHandler ( "onPlayerBan", root, onBan )
-
بالتوفيق .. دعوة جميلة
-
هذا اللي قلت لك عليه ( دمج ) يعني ان الرسالة الثانية راحت لحالها للرسالة الاولى
-
outputChatBox("This is a bad idea. :)", responsibleElement, 255, 255, 255, true)
-
سبحان الله انت اكيد كنت تبي حل للمشكلة وسويت الموضوع ونشرت لكن بعد ما حليت المشكلة رديت على نفسك بهذي الرسالة و التعليق طلع من الموضوع بالدمج فسوو رد واحد متل مارح يحصل في ردي الحين اللي هو مكون من ردين