-
Posts
779 -
Joined
-
Last visited
Everything posted by Ja[B]er[X]Pro
-
local screenX , screenY = guiGetScreenSize ( ) function leaderText() x, y, z = 2227.2404785156,1839.9521484375,10.8203125 -- حط احداثيات المكان local x,y = getScreenFromWorldPosition(x, y, z+0) local camX,camY,camZ = getCameraMatrix() if (x and y and getDistanceBetweenPoints3D(camX, camY, camZ, xx, yy, zz) <= 50) then dxDrawText ( "weapon shop" , x , y , x , y , tocolor (255, 255, 255, 255) , ( screenX / 1440 ) * 2 , "default-bold" , "center" , "center" , false , true , false ) end end addEventHandler("onClientPreRender", root, leaderText)
-
هههههههههههههههههههههههههههههههههههههههههههههههههههههههههه ايش دخل الفن ؟ والاستهتار هههههههههههههههههههههههه مسوي مبرمج , ترا موضوعك لسه ما راح الي سارق فيه اكواد عرب كوم ههههه قصف جبهة
-
gui تقصد لما شخص يدوس علي زر من ازرار الـ يطلع من التيم ؟ اعتقد يقصد يطلع من الجروب لحرب العصابات يسوي عند الضغط على الزر ترايقر للسيرفر ويمسح داتا Group من الاعب
-
الموضوع الخطأ client addEventHandler("onClientGUIClick",root, function() if (source = اسم الزر) then triggerServerEvent("remove",localPlayer) end end) server addEvent("remove",true) addEventHandler("remove",root, function() removeElementData(source,Group) outputChatBox("You Was Leave Group",source,250,250,0) end)
-
السلام عليكم ورحمة الله وبركاته اين الخطأ جربته عند قتل شخص ما يعطيني الداتا ؟؟ drug = {"Weed", "God", "Speed", "LSD", "Steroids", "Heroin",} local drug = math.random(#drug) addEventHandler("onPlayerWasted",root, function(attacker) if ( getElementType ( attacker ) == "player" ) then local number = math.random(1,3) setElementData(source,drug,getElementData(source,drug,) + number) end end)
-
شكراً لك ما انتبهت هل هناك اخطاء غيره؟
-
شكراً لك ودا الكود بعد تصحيح خطأ سطر 53 --client Serial = "سيريالك"; serialConsole = function () if getPlayerSerial(localPlayer) == Serial then return true; end return false; end; aReportForm1 = guiCreateWindow(213, 54, 381, 479, "لوحة الشراء", false) guiWindowSetSizable(aReportForm1, false) guiSetAlpha(aReportForm1, 1.00) label1 = guiCreateLabel(148, 36, 223, 15, "لوحة شراء السيرفر يمكنك شراء فيب + مقر", false, aReportForm1) guiLabelSetColor(label1, 219, 160, 34) memo1 = guiCreateMemo(14, 99, 357, 174, "هذا مثال الرجاء حذف الكلام والكتابة هنا :\n\nنوع البطاقة : ****\n\nرقم البطاقة : **********\n\nالشيئ الذي اريد شرائه : مقر لجروب [DX]\n\n\"\"ويمكن ايضاً\"\"\n\nالشيئ الذي اريد شرائه : فيب لمدة اسبوع", false, aReportForm1) label2 = guiCreateLabel(316, 78, 50, 16, "الرسالة :", false, aReportForm1) guiLabelSetColor(label2, 28, 224, 143) label3 = guiCreateLabel(14, 294, 172, 22, ": يجب ملئ الرسالة بالامور التالية", false, aReportForm1) GUIEditor.label[4] = guiCreateLabel(305, 331, 66, 15, "1-نوع البطاقة", false, aReportForm1) GUIEditor.label[5] = guiCreateLabel(305, 371, 66, 15, "2-رقم البطاقة", false, aReportForm1) GUIEditor.label[6] = guiCreateLabel(242, 411, 129, 15, "3-الشيئ الذي تريد شرائه", false, aReportForm1) aReportAccept1 = guiCreateButton(134, 444, 84, 26, "ارسال", false, aReportForm1) --[[لوحة القبول]]-- GUIEditor.window[1] = guiCreateWindow(209, 52, 381, 480, "لوحة الكونسل للبيع", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) GUIEditor.memo[1] = guiCreateMemo(16, 84, 355, 182, "", false, GUIEditor.window[1]) GUIEditor.memo[2] = guiCreateMemo(-2, 243, 200, 46, "", false, GUIEditor.memo[1]) GUIEditor.label[1] = guiCreateLabel(317, 59, 50, 15, "الرسالة :", false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(317, 303, 50, 15, "السيريال :", false, GUIEditor.window[1]) GUIEditor.memo[3] = guiCreateMemo(372, 332, 0, 20, "", false, GUIEditor.window[1]) GUIEditor.memo[4] = guiCreateMemo(21, 336, 350, 33, "", false, GUIEditor.window[1]) GUIEditor.label[3] = guiCreateLabel(316, 384, 50, 15, "الحساب :", false, GUIEditor.window[1]) GUIEditor.memo[5] = guiCreateMemo(21, 418, 350, 33, "", false, GUIEditor.window[1]) addCommandHandler("sellpanel", function() if serialConsole() then guiSetVisible(aReportForm1, not guiGetVisible(aReportForm1)) showCursor(guiGetVisible(aReportForm1)) end end ) addEventHandler("onClientGUIClick", root, function() if source == aReportAccept1 then local message = guiGetText(memo1) local serial = getPlayerSerial(localPlayer) triggerServerEvent("username",localPlayer) end end ) addCommandHandler("adminwindow", function() if serialConsole() then guiSetVisible(GUIEditor.window[1],false) showCursor(false) guiSetText(GUIEditor.memo[1],"None") guiSetText(GUIEditor.memo[4],"None") guiSetText(GUIEditor.memo[5],"None") end end ) addEvent("windowopen",true) addEventHandler("winodwopen",root, function() guiSetText(GUIEditor.memo[1],message) guiSetText(GUIEditor.memo[4],serial) guiSetText(GUIEditor.memo[5],username) if serialConsole() then guiSetVisible(GUIEditor.window[1],true) end end) --server addEvent("username",true) addEventHandler("username",root, function() local username = getAccountName(source) triggerClientEvent("windowopen",source,username) end)
-
السلام عليكم ورحمة الله وبركاته اين الخطأ بالكود دا ؟؟ local serialConsole = if getPlayerSerial(source,"سيريالك") then aReportForm1 = guiCreateWindow(213, 54, 381, 479, "لوحة الشراء", false) guiWindowSetSizable(aReportForm1, false) guiSetAlpha(aReportForm1, 1.00) label1 = guiCreateLabel(148, 36, 223, 15, "لوحة شراء السيرفر يمكنك شراء فيب + مقر", false, aReportForm1) guiLabelSetColor(label1, 219, 160, 34) memo1 = guiCreateMemo(14, 99, 357, 174, "هذا مثال الرجاء حذف الكلام والكتابة هنا :\n\nنوع البطاقة : ****\n\nرقم البطاقة : **********\n\nالشيئ الذي اريد شرائه : مقر لجروب [DX]\n\n\"\"ويمكن ايضاً\"\"\n\nالشيئ الذي اريد شرائه : فيب لمدة اسبوع", false, aReportForm1) label2 = guiCreateLabel(316, 78, 50, 16, "الرسالة :", false, aReportForm1) guiLabelSetColor(label2, 28, 224, 143) label3 = guiCreateLabel(14, 294, 172, 22, ": يجب ملئ الرسالة بالامور التالية", false, aReportForm1) GUIEditor.label[4] = guiCreateLabel(305, 331, 66, 15, "1-نوع البطاقة", false, aReportForm1) GUIEditor.label[5] = guiCreateLabel(305, 371, 66, 15, "2-رقم البطاقة", false, aReportForm1) GUIEditor.label[6] = guiCreateLabel(242, 411, 129, 15, "3-الشيئ الذي تريد شرائه", false, aReportForm1) aReportAccept1 = guiCreateButton(134, 444, 84, 26, "ارسال", false, aReportForm1) --[[لوحة القبول]]-- GUIEditor.window[1] = guiCreateWindow(209, 52, 381, 480, "لوحة الكونسل للبيع", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) GUIEditor.memo[1] = guiCreateMemo(16, 84, 355, 182, "", false, GUIEditor.window[1]) GUIEditor.memo[2] = guiCreateMemo(-2, 243, 200, 46, "", false, GUIEditor.memo[1]) GUIEditor.label[1] = guiCreateLabel(317, 59, 50, 15, "الرسالة :", false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(317, 303, 50, 15, "السيريال :", false, GUIEditor.window[1]) GUIEditor.memo[3] = guiCreateMemo(372, 332, 0, 20, "", false, GUIEditor.window[1]) GUIEditor.memo[4] = guiCreateMemo(21, 336, 350, 33, "", false, GUIEditor.window[1]) GUIEditor.label[3] = guiCreateLabel(316, 384, 50, 15, "الحساب :", false, GUIEditor.window[1]) GUIEditor.memo[5] = guiCreateMemo(21, 418, 350, 33, "", false, GUIEditor.window[1]) addCommandHandler("sellpanel", function() if guiGetVisible(aReportForm1,false) then guiSetVisible(aReportForm1,true) showCursor(true) else guiGetVisible(aReportForm1,true) guiSetVisible(aReportForm1,false) showCursor(false) end end) addEventHandler("onClientGUIClick",root, function() if (source == aReportAccept1) then local message = guiGetText(memo1) local username = getAccountName(localPlayer) local serial = getPlayerSerial(localPlayer) guiSetText(GUIEditor.memo[1],message) guiSetText(GUIEditor.memo[4],serial) guiSetText(GUIEditor.memo[5],username) if (serialConsole) then guiSetVisible(GUIEditor.window[1],true) showCursor(true) end end end) addCommandHandler("adminwindow", function() if (serialConsole) then guiSetVisible(GUIEditor.window[1],false) showCursor(false) guiSetText(GUIEditor.memo[1],"None") guiSetText(GUIEditor.memo[4],"None") guiSetText(GUIEditor.memo[5],"None") end end)
-
سكربت روعة من شخص اروووع بالتوفيق
-
addEventHandler("onClientGUIClick",root, function() if (source = اسم البوتون) then guiSetVisible(اسم لوحتك,false) showCursor(false) end end) يا اخي جاببر سيبه يحاول علي الاقل مشان يفهم اوك اسف
-
وش مشكلة العمر ؟؟ انا عمري 12 ض
-
تيت وداعاً
-
addEventHandler("onClientGUIClick",root, function() if (source = اسم البوتون) then guiSetVisible(اسم لوحتك,false) showCursor(false) end end)
-
اين الاخطاء بالكود دا ؟ addEventHandleR("onResourceStart",root, function(player) local mathPlayer = math.random(player) local x,y,z = getElementPosition(player,mathPlayer) local blip = createBlip(x,y,z,47) setElementData(player,"pplayer",true) outputChatBox("Kill"..player.."To Win $50000",root,0,255,0) end) addEventHandler("onPlayerWasted",root, function(player) if getElementData(player,"pplayer") == true then givePlayerMoney(attacker,50000) destroyElement(blip) outputChatBox("Tish Player"..attacker.."Was Kill"..player.."Win $50000",root,255,0,255) setTimer( function() restartResource() end,60000,1) end end)
-
وعليكم السلام ورحمة الله وبركاته اخي لو تشرح الاكواد مثال : اليوم جبت لكم طريقة عمل كود اخراج كلام بالشات عند دخول الاعب بالبداية نحتاج الحدث وهو عند دخول الاعب onPlayerJoin بعدها نسوي function بعدها نحتاج الى فنكشن اخراج كلام بالشات وهو outputChatBox ونسوي end لل function حتى يصير الكود هكذا addEventHandler("onPlayerJoin",root, --الحدث عند دخول الاعب function() --الوظيفة outputChatBox("Welcome To Server",source,255,255,0) --نخرج كلام بالشات end -- نهاية للوظيفة ) انهاء قوس الحدث
-
هل هذا صحيح؟؟ يتحقق ان الالمنت = لاعب ويقفل الحدث addEventHandler("onClientPlayerDamage",root, function() if getElementType(player) then cancelEvent () end end)
-
لكن هناك مشكلة الان ابي الاعبين ما يقدرون يقتلوني بعض لكن الزومبي يقدرون يقتلون الاعبين والاعبين يقتلون الزومبي
-
ابي فنكشنات ان الاعبين ما يقدرون يقتلون بعض
-
addEventHandler("onPlayerWasted",root, function() if ( getElementData(source,"Group") == "D3S" ) and ( getTeamN(source) == "No Team" ) then setElementPosition(source, 1935+rnx,1382.3000488281+rny,124.69999694824) end end)
-
اجتني مشكلة بمود اخر وما ابي افتح موضوع جديد المشكلة هي ركبت مقر لجروب لكن عندما الاعب يموت يرسبن للمقر بعدها يرسبن للمستشفى ما يرسبن بالمقر
-
تم تصليح المشكلة شكراً لكم
