-
Posts
779 -
Joined
-
Last visited
Everything posted by Ja[B]er[X]Pro
-
وش ذي الهريسة كيف اند بين قوسين والفنكشن بعد ست تايمر؟؟ ينفع تضع الاند بين قوسين التايمر + ينفع تضع فنكشن داخل التايمر وبعد end ضع الوقت
-
شكراًً لك كثيراً اسف تعبتك معي
-
شكراً لك لكن هناك مشكلة هي ابي عندما السبورت يكتب شيئ بشات السبورت يجي اللون اخضر والاعب احمر
-
انتبه لكلمة outputChatBox خطأ
-
السلام عليكم ورحمة الله وبركاته انا سويت لوحة سبورت لكن ما شغال --client chats = "" gg = "" GUIEditor = { checkbox = {}, progressbar = {}, edit = {}, button = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() supportsystem = guiCreateWindow(55, 43, 693, 459, "[GTA-iV]-Support System", false) guiWindowSetSizable(supportsystem, false) guiSetAlpha(supportsystem, 1.00) guiSetVisible(supportsystem,false) supportchat = guiCreateGridList(10, 41, 479, 317, false, supportsystem) guiGridListAddColumn(supportchat, "Player", 0.5) guiGridListAddColumn(supportchat, "Message", 0.5) progressbar1 = guiCreateProgressBar(499, 22, 15, 427, false, supportsystem) GUIEditor.label[1] = guiCreateLabel(20, 22, 213, 15, "Support Chat :", false, supportsystem) supportonline = guiCreateGridList(514, 66, 168, 344, false, supportsystem) guiGridListAddColumn(supportonline, "PlayerName", 0.9) GUIEditor.label[2] = guiCreateLabel(522, 31, 99, 20, "Support Online :", false, supportsystem) checkbox1 = guiCreateCheckBox(394, 368, 90, 18, "show in chat", false, false, supportsystem) edit1 = guiCreateEdit(9, 399, 380, 36, "", false, supportsystem) button1 = guiCreateButton(394, 401, 90, 34, "Send", false, supportsystem) button2 = guiCreateButton(557, 415, 90, 34, "القوانين", false, supportsystem) ruless = guiCreateWindow(183, 45, 453, 461, "قوانين السبورت|Support Rules", false) guiWindowSetSizable(ruless, false) guiSetAlpha(ruless, 1.00) guiSetVisible(ruless,false) GUIEditor.memo[1] = guiCreateMemo(10, 23, 433, 379, "English : \n\n1-dont ask Admin\n\n2-dont ask Money\n\n3-dont bad talk\n\n\"This Chat For Help\"\n\n---------------------------------------\n\n: العربية\n\n\nعدم طلب ادمن-1\n\nعدم طلب فلوس-2\n\nعدم السب-3\n\n\n\"هذا الشات للمساعدة فقط\"", false, ruless) closeb = guiCreateButton(150, 412, 118, 38, "Close", false, ruless) end ) addEventHandler("onClientGUIClick",root, function() if (source == button2) then guiSetVisible(ruless, not guiGetVisible(ruless) ) showCursor( guiGetVisible(ruless) ) end end) addEventHandler("onClientGUIClick",root, function() if (source == closeb)then guiSetVisible(ruless,false) showCursor(false) end end) bindKey("F5","down", function() guiSetVisible(supportsystem, not guiGetVisible(supportsystem) ) showCursor( guiGetVisible(supportsystem) ) end) addEvent("online",true) addEventHandler("online",root, function() local g = guiGridListAddRow (supportonline) guiGridListSetItemText (supportchat ,g, 1,""..getPlayerName(localPlayer).."",0,255,0, false, false ) end) addEventHandler("onClientGUIClick",root, function() if (source == button1) then chats = getGuiText(edit1) gg = guiGridListAddRow (supportchat) triggerServerEvent("support",localPlayer) end end) addEvent("sendmessage",true) addEventHandler("sendmessage",root, function() guiGridListSetItemText (supportchat ,gg, 1,"[support] "..getPlayerName(localPlayer).."",0,255,0, false, false ) guiGridListSetItemText (supportchat ,gg, 2,""..chats.."",0,255,0, false, false ) if ( guiCheckBoxGetSelected( checkbox1 ) == true ) then outputChatBox("[support-System] "..chats.."",localPlayer,255,255,0) end end) addEvent("sendmessage2",true) addEventHandler("sendmessage2",root, function() guiGridListSetItemText (supportchat ,gg, 1,"[Player] "..getPlayerName(localPlayer).."",255,0,0, false, false ) guiGridListSetItemText (supportchat ,gg, 2,""..chats.."",255,0,0, false, false ) if ( guiCheckBoxGetSelected( checkbox1 ) == true ) then outputChatBox("[support-System] "..chats.."",localPlayer,255,255,0) end end) --server for k,v in ipairs (getElementsByType("player")) do if (v = isObjectInACLGroup ("user.*", aclGetGroup ( "Support" ) ) ) then triggerClientEvent("online",source) end end addEvent("support",true) addEventHanlder("support",root, function() if isObjectInACLGroup ("user.*", aclGetGroup ( "Support" ) ) then triggerClientEvent("sendmessage",source) else triggerClientEvent("sendmessage2",source) end end)
-
ههههه السيرفر ما زال على قيد الحياة؟ اول سيرفر ريس دخلته تاني سيرفر بكل اللعبة دخلته قول لمكو تتذكر جابر ايام زمان
-
يجب تسوي ترايقر سيرفر وتعطيه الدم
-
انا وضعت جيد لان الكرة ما تكبر ابداً والكرات ما تتجدد
-
عندك أخطاء كثيرة الخطاء الاول شوف مثال الويكي bool guiGridListSetItemText ( element gridList, int rowIndex, int columnIndex, string text, bool section, bool number ) انت محطي بدال الرو كولمن وبدل الكولمن رو شوف حقتك local glar = guiGridListAddRow (g1) guiGridListSetItemText (g1 ,Item, glar,"Luncher", false, false ) محطي الكولمن قبل الرو واساسا الكولمن مب معرفة guiGridListAddColumn ( g1, "Item", 0.5 ) الخطا الثاني bindKey("F7","dwon", function() الخطا > dwon || down < الصح عرفت الخطا ؟ محطي الكلمة غلط الخطا الثالث if getElementData(localPlayer,"Weed") > 0 then طيب واحد ماعنده داتا بلاساس بيكون الناتج حق الداتا [ false ] يصير التححقق حقك زي كذا if false > 0 then ويروح الدي بق يرسلك attempt to comare number with boolean الترجمة : محاولة للمقارنه بين عدد و منطقي ~> Google التصحيح : if getElementData ( localPlayer, "Coins" ) ~= false and getElementData ( localPlayer, "Coins" ) > 0 then الكود كامل مع التصحيح local x, y = guiGetScreenSize () addEventHandler ( "onClientResourceStart", resourceRoot, function () -- sellsystem = guiCreateWindow ( ( x - 730 ) / 2 , ( y - 400 ) / 2, 730, 400, ".:[sell System]:.", false ) guiWindowSetSizable ( sellsystem, false ) guiSetAlpha ( sellsystem, 0.85 ) guiSetVisible ( sellsystem, false ) -- closeb = guiCreateButton ( 638, 21, 76, 27, "Close", false, sellsystem ) guiSetProperty ( closeb, "NormalTextColour", "FFFFFFFF" ) -- refreshb = guiCreateButton ( 552, 21, 76, 27, "Refresh", false, sellsystem ) guiSetProperty ( refreshb, "NormalTextColour", "FFFFFFFF" ) -- lbl1 = guiCreateLabel ( 10, 29, 158, 19, "Put an item up for sale", false, sellsystem ) -- g1 = guiCreateGridList ( 10, 58, 219, 179, false, sellsystem ) guiGridListAddColumn ( g1, "Item", 0.5 ) guiGridListAddColumn ( g1, "Amount", 0.5 ) -- lbl2 = guiCreateLabel ( 13, 259, 96, 15, "Amount :", false, sellsystem ) -- amounte = guiCreateEdit ( 9, 278, 155, 35, "", false, sellsystem ) guiEditSetMasked ( amounte, true ) -- lbl3 = guiCreateLabel ( 13, 323, 96, 15, "Cost per unit :", false, sellsystem ) -- pricee = guiCreateEdit ( 9, 342, 155, 35, "", false, sellsystem ) -- progressbar1 = guiCreateProgressBar ( 247, 23, 15, 366, false, sellsystem ) -- lbl4 = guiCreateLabel ( 136, 242, 103, 15, "", false, sellsystem ) -- g2 = guiCreateGridList ( 269, 53, 449, 294, false, sellsystem ) guiGridListAddColumn ( g2, "Item", 0.3 ) guiGridListAddColumn ( g2, "Price $", 0.3 ) guiGridListAddColumn ( g2, "Player", 0.3 ) -- lbl5 = guiCreateLabel ( 272, 351, 138, 15, "Amount of Select Item :", false, sellsystem ) -- amountbuy = guiCreateEdit ( 421, 362, 101, 27, "", false, sellsystem ) -- Buyb = guiCreateButton ( 532, 361, 76, 27, "Buy", false, sellsystem ) guiSetProperty ( Buyb, "NormalTextColour", "FF3CD87A" ) -- sellb = guiCreateButton ( 166, 314, 71, 28, "Sell", false, sellsystem ) guiSetFont ( sellb, "default-bold-small" ) guiSetProperty ( sellb, "NormalTextColour", "FFFFFFFF" ) -- end ) addEventHandler ( "onClientGUIClick", resourceRoot, function () if source == closeb then guiSetVisible ( sellsystem, false ) showCursor ( false ) end end ) bindKey ( "F7", "down", function () -- guiSetVisible ( sellsystem, not guiGetVisible ( sellsystem ) ) showCursor ( guiGetVisible ( sellsystem ) ) -- if guiGetVisible ( sellsystem ) == true then guiGridListClear ( g1 ) if getElementData ( localPlayer, "Coins" ) ~= false and getElementData ( localPlayer, "Coins" ) > 0 then local Coins = guiGridListAddRow ( g1 ) local Coins1 = getElementData ( localPlayer,"Coins" ) guiGridListSetItemText ( g1 , Coins, 1,"Coins", false, false ) guiGridListSetItemText ( g1 , Coins, 2,""..tonumber(Coins1).."", false, false ) end if getElementData ( localPlayer, "Heroin" ) ~= false and getElementData ( localPlayer, "Heroin" ) > 0 then local Heroin = guiGridListAddRow (g1) local Heroin1 = getElementData ( localPlayer, "Heroin" ) guiGridListSetItemText (g1 , Heroin, 1,"Drug Heroin", false, false ) guiGridListSetItemText (g1 , Heroin, 2,""..tonumber ( Heroin1 ) .."", false, false ) end if getElementData ( localPlayer, "Steroids" ) ~= false and getElementData ( localPlayer, "Steroids" ) > 0 then local Steroids = guiGridListAddRow (g1) local Steroids2 = getElementData ( localPlayer, "Steroids" ) guiGridListSetItemText (g1 , Steroids, 1,"Drug Steroids", false, false ) guiGridListSetItemText (g1 , Steroids, 2,""..tonumber(Steroids2).."", false, false ) end if getElementData ( localPlayer, "LSD" ) ~= false and getElementData ( localPlayer, "LSD" ) > 0 then local LSD = guiGridListAddRow (g1) local LSD1 = getElementData ( localPlayer, "LSD" ) guiGridListSetItemText ( g1 , LSD, 1,"Drug LSD", false, false ) guiGridListSetItemText ( g1 , LSD, 2,""..tonumber(LSD1).."", false, false ) end if getElementData ( localPlayer, "Speed" ) ~= false and getElementData ( localPlayer, "Speed" ) > 0 then local Speed = guiGridListAddRow (g1) local Speed2 = getElementData ( localPlayer, "Speed" ) guiGridListSetItemText ( g1 , Speed, 1,"Drug Speed", false, false ) guiGridListSetItemText ( g1 , Speed, 2,""..tonumber(Speed2).."", false, false ) end if getElementData ( localPlayer, "God" ) ~= false and getElementData ( localPlayer, "God" ) > 0 then local God1 = guiGridListAddRow (g1) local God2 = getElementData ( localPlayer, "God" ) guiGridListSetItemText ( g1 , God1, 1,"Drug God", false, false ) guiGridListSetItemText ( g1 , God1, 2,""..tonumber(God2).."", false, false ) end if getElementData ( localPlayer, "Weed" ) ~= false and getElementData ( localPlayer, "Weed" ) > 0 then local weed1 = guiGridListAddRow (g1) local weed2 = getElementData ( localPlayer, "Weed" ) guiGridListSetItemText ( g1 , weed1, 1,"Drug Weed", false, false ) guiGridListSetItemText ( g1 , weed1, 2,""..tonumber(weed2).."", false, false ) end if getElementData ( localPlayer, "GLA" ) ~= false and getElementData ( localPlayer, "GLA" ) > 0 then local glar = guiGridListAddRow (g1) local glat = getElementData ( localPlayer, "GLA" ) guiGridListSetItemText ( g1 , glar, 1,"Luncher", false, false ) guiGridListSetItemText ( g1 , glar, 2,""..tonumber(glat).."", false, false ) end end end ) ذا القريدليست الاول شكراً لك على التصحيح لان دي اول مرة استخدم القريد ليست شكراً لك افدتني
-
#[MTa-Ar] - Server Zombie - ام تي اي العرب .. #
Ja[B]er[X]Pro replied to xMr.SAAD's topic in Arabic / العربية
سيرفر جميل جداً واللوحات تصميمها روووعة بالتوفيق -
تصميم روعة من شخص ارووع
-
كفوووووو نصـــورر مود رووعة أستمر ولا تهتم للحاقدين
-
ماشاء الله ابداااع × ابـــتداع بالتوفيق
-
الكود ما مجرب addEventHandler("onZombiWasted",root, function( _, Killer ) if ( Killer and Killer ~= source and getElementType( Killer ) == "player" ) then setElementData(Killer,"speed",getElementData(Killer,"speed") + 1) --يعطي القاتل داتا السرعة if getElementData(Killer,"speed") == 5 then --ان كان عدد الداتا 5 setGameSpeed(tonumber(10)) --يعطيه السرعة 10 setElementData(Killer,"speed",getElementData(Killer,"speed") - 5) --يسحب منه ال5 setTimer(setGameSpeed(tonumber(1)) , 300000 ,1) --بعد 5 دقائق يرجع السرعة الى 1 end --اند فنشكن end --اند التحقق الاول end --اند التحقق الثاني ) --نهاية قوس الحدث
-
اين الاخطاء وخاصةً في اخر اكواد ما عرفت اسويها جيداً GUIEditor = { label = {}, progressbar = {} } addEventHandler("onClientResourceStart", resourceRoot, function() sellsystem = guiCreateWindow(34, 72, 728, 399, ".:[sell System]:. ", false) guiWindowSetSizable(sellsystem, false) guiSetAlpha(sellsystem, 0.93) closeb = guiCreateButton(638, 21, 76, 27, "Close", false, sellsystem) guiSetProperty(closeb, "NormalTextColour", "FFFFFFFF") refreshb = guiCreateButton(552, 21, 76, 27, "Refresh", false, sellsystem) guiSetProperty(refreshb, "NormalTextColour", "FFFFFFFF") GUIEditor.label[1] = guiCreateLabel(10, 29, 158, 19, "Put an item up for sale", false, sellsystem) g1 = guiCreateGridList(10, 58, 219, 179, false, sellsystem) guiGridListAddColumn(g1, "Item", 0.5) guiGridListAddColumn(g1, "Amount", 0.5) GUIEditor.label[2] = guiCreateLabel(13, 259, 96, 15, "Amount :", false, sellsystem) amounte = guiCreateEdit(9, 278, 155, 35, "", false, sellsystem) guiEditSetMasked(amounte, true) GUIEditor.label[3] = guiCreateLabel(13, 323, 96, 15, "Cost per unit :", false, sellsystem) pricee = guiCreateEdit(9, 342, 155, 35, "", false, sellsystem) GUIEditor.progressbar[1] = guiCreateProgressBar(247, 23, 15, 366, false, sellsystem) GUIEditor.label[4] = guiCreateLabel(136, 242, 103, 15, "", false, sellsystem) g2 = guiCreateGridList(269, 53, 449, 294, false, sellsystem) guiGridListAddColumn(g2, "Item", 0.3) guiGridListAddColumn(g2, "Price $", 0.3) guiGridListAddColumn(g2, "Player", 0.3) GUIEditor.label[5] = guiCreateLabel(272, 351, 138, 15, "Amount of Select Item :", false, sellsystem) amountbuy = guiCreateEdit(421, 362, 101, 27, "", false, sellsystem) Buyb = guiCreateButton(532, 361, 76, 27, "Buy", false, sellsystem) guiSetProperty(Buyb, "NormalTextColour", "FF3CD87A") sellb = guiCreateButton(166, 314, 71, 28, "Sell", false, sellsystem) guiSetFont(sellb, "default-bold-small") guiSetProperty(sellb, "NormalTextColour", "FFFFFFFF") end ) --GLA addEventHandler("onClientRander",root, function() if getElementData(localPlayer,"GLA") > 0 then local glar = guiGridListAddRow (g1) local glat = getElementData(localPlayer,"GLA") guiGridListSetItemText (g1 ,Item, glar,"Luncher", false, false ) guiGridListSetItemText (g1 ,Amount, glar,""..tonumber(glat).."", false, false ) end end) --Weed addEventHandler("onClientRander",root, function() if getElementData(localPlayer,"Weed") > 0 then local weed1 = guiGridListAddRow (g1) local weed2 = getElementData(localPlayer,"Weed") guiGridListSetItemText (g1 ,Item, weed1,"Drug Weed", false, false ) guiGridListSetItemText (g1 ,Amount, weed1,""..tonumber(weed2).."", false, false ) end end) --God addEventHandler("onClientRander",root, function() if getElementData(localPlayer,"God") > 0 then local God1 = guiGridListAddRow (g1) local God2 = getElementData(localPlayer,"God") guiGridListSetItemText (g1 ,Item, God1,"Drug God", false, false ) guiGridListSetItemText (g1 ,Amount, God1,""..tonumber(God2).."", false, false ) end end) --Speed addEventHandler("onClientRander",root, function() if getElementData(localPlayer,"Speed") > 0 then local Speed = guiGridListAddRow (g1) local Speed2 = getElementData(localPlayer,"Speed") guiGridListSetItemText (g1 ,Item, Speed,"Drug Speed", false, false ) guiGridListSetItemText (g1 ,Amount, Speed,""..tonumber(Speed2).."", false, false ) end end) --LSD addEventHandler("onClientRander",root, function() if getElementData(localPlayer,"LSD") > 0 then local LSD = guiGridListAddRow (g1) local LSD1 = getElementData(localPlayer,"LSD") guiGridListSetItemText (g1 ,Item, LSD,"Drug LSD", false, false ) guiGridListSetItemText (g1 ,Amount, LSD,""..tonumber(LSD1).."", false, false ) end end) --Steroids addEventHandler("onClientRander",root, function() if getElementData(localPlayer,"Steroids") > 0 then local Steroids = guiGridListAddRow (g1) local Steroids2 = getElementData(localPlayer,"Steroids") guiGridListSetItemText (g1 ,Item, Steroids,"Drug Steroids", false, false ) guiGridListSetItemText (g1 ,Amount, Steroids,""..tonumber(Steroids2).."", false, false ) end end) --Heroin addEventHandler("onClientRander",root, function() if getElementData(localPlayer,"Heroin") > 0 then local Heroin = guiGridListAddRow (g1) local Heroin1 = getElementData(localPlayer,"Heroin") guiGridListSetItemText (g1 ,Item, Heroin,"Drug Heroin", false, false ) guiGridListSetItemText (g1 ,Amount, Heroin,""..tonumber(Heroin1).."", false, false ) end end) --Coins addEventHandler("onClientRander",root, function() if getElementData(localPlayer,"Coins") > 0 then local Coins = guiGridListAddRow (g1) local Coins1 = getElementData(localPlayer,"Coins") guiGridListSetItemText (g1 ,Item, Coins,"Coins", false, false ) guiGridListSetItemText (g1 ,Amount, Coins,""..tonumber(Coins1).."", false, false ) end end) --[[ Buttoun Close Code]]-- addEventHandler("onClientGUIClick",root, function() if (source == closeb) then guiSetVisible(sellsystem,false) showCursor(guiGetVisible(sellsystem)) end end) --[[ Open Window Code]]-- bindKey("F7","dwon", function() guiSetVisible(sellsystem, not guiGetVisible(sellsystem) ) showCursor( guiGetVisible(sellsystem) ) end) --[[ Sell System Code]] -- local Coins1 = getElementData(localPlayer,"Coins") local Heroin1 = getElementData(localPlayer,"Heroin") local Steroids1 = getElementData(localPlayer,"Steroids") local LSD1 = getElementData(localPlayer,"LSD") local Speed1 = getElementData(localPlayer,"Speed") local God1 = getElementData(localPlayer,"God") local weed1 = getElementData(localPlayer,"Weed") local gla1 = getElementData(localPlayer,"GLA") addEventHandler("onClientGUIClick",root, function() if (source == sellb) then if guiGridListGetSelectedItem (g1) then if guiGridListGetItemText(g1,Item) == Luncher then s1 = guiGetText(pricee) s2 = guiGetText(amounte) if guiGetText(amounte) < tonumber(gla1) or guiGetText(amounte) == tonumber(gla1) guiGridListRemoveRow (g1,Item) guiGridListRemoveRow (g1,Amount) gg = guiGridListAddRow(g2) guiGridListSetItemText(g2,Item,"Luncher") guiGridListSetItemText(g2,Amount,""..tonumber(glat).."") guiGridListSetItemText(g2,Player,""..getPlayerName(localPlayer).."") end end end end end end)
-
شكراًً لك جداً على المساعدة
-
السلام عليكم ورحمة الله وبركاته أبي طريقة عمل لوحة بقريد ليست بها يقدر الاعبين يبيعون داتا لبعض مثال معي مود مخدرات واحد انواع داتا المخدرات اسمها LSD ابي اسوي الاعبين عند فتح اللوحة يكون هناك قريد ليست به مخدراته + عددها وقريد ليست به المخدرات المعروضة للبيع وايديت لسعر كل 1 داتا منه وايديت للعدد الذي يبي يبيعه وعند الشراء ايديت لاختيار الكمية ----------------------------- ابي الفنشكنات
-
شكراً جداً لك لكن سؤال كيف اسوي احد انواع الداتا تيجي قليل ونوع يجي اغلب الاحيان
-
شكراً جداً لك لكن سؤال كيف اسوي احد انواع الداتا تيجي قليل ونوع يجي اغلب الاحيان
-
اعرف الموضوع قديم لكن رفعته لان المشكلة عن الموضوع دا local Drug = ( { "Weed", "God", "Speed", "LSD", "Steroids", "Heroin" } )[math.random( 6 )] addEventHandler( "onPlayerWasted", root, function( _, Killer ) if ( Killer and Killer ~= source and getElementType( Killer ) == "player" ) then setElementData( Killer, Drug, ( getElementData( Killer, Drug ) or 0 ) + math.random( 3 ) ) end end ) المشكلة هي عند قتل شخص اول مرة تشغل به المود يعطيه داتا عشوائية لكن عندما يقتل شخص اخر يعطيه نفس الداتا ويبقى يعطيه نفس الداتا ابي يعطي داتا اخر ايضاً
