Jump to content

#|_oskar_|#

Members
  • Posts

    897
  • Joined

  • Last visited

Everything posted by #|_oskar_|#

  1. وضح : ايش تبي تسوي بالضبط ؟
  2. جرب GUIEditor = {button = {},window = {}} GUIEditor.window[1] = guiCreateWindow(0.35, 0.35, 0.26, 0.19, "", true) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(0.04, 0.19, 0.44, 0.34, "open chat", true, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(0.04, 0.56, 0.44, 0.34, "close chat", true, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(0.52, 0.19, 0.44, 0.34, "open Local chat", true, GUIEditor.window[1]) GUIEditor.button[4] = guiCreateButton(0.52, 0.56, 0.44, 0.34, "close Local chat", true, GUIEditor.window[1]) ------- function Msg(Msg) triggerServerEvent("send;All",localPlayer,Msg) end addEventHandler("onClientGUIClick",root,function() if ( source == GUIEditor.button[1] ) then Msg('[C.Console]: Chat has been enabled by') elseif ( source == GUIEditor.button[2] ) then Msg('[C.Console]: Chat has been Locked by') elseif ( source == GUIEditor.button[3] ) then Msg('[C.Console]: LocalChat has been enabled by') elseif ( source == GUIEditor.button[4] ) then Msg('[C.Console]: LocalChat has been Locked by') end end) addEvent("send;All",true) addEventHandler("send;All",root,function(Msg) outputChatBox(Msg ..' ' ..getPlayerName(source),root,255, 255, 0, true ) end)
  3. كلنت addEventHandler("onClientGUIClick",button,function() triggerServerEvent("send;All",localPlayer) end, false) سيرفر addEvent("send;All",true) addEventHandler("send;All",root,function() outputChatBox('[C.Console]: Chat has been enabled by ' ..getPlayerName(source),root,255, 255, 0, true ) end)
  4. جرب addEvent("onPrayerTime", true) function createPrayerWindow(prayer) if prayer == "fajr" then guiSetText( label,getElementData (root, "t1" ) or "حان الآن موعد أذان الفجر" ) guiSetVisible( window, true ) setTimer(guiSetVisible, 1000*60*5, 1, window, false) elseif prayer == "duhr" then guiSetText( label,getElementData (root, "t2" ) or "حان الآن موعد أذان الظهر" ) guiSetVisible( window, true ) setTimer(guiSetVisible, 1000*60*5, 1, window, false) elseif prayer == "asr" then guiSetText( label,getElementData (root, "t3" ) or "حان الآن موعد أذان العصر" ) guiSetVisible( window, true ) setTimer(guiSetVisible, 1000*60*5, 1, window, false) elseif prayer == "maghrib" then guiSetText( label,getElementData (root, "t4" ) or "حان الآن موعد أذان المغرب" ) guiSetVisible( window, true ) setTimer(guiSetVisible, 1000*60*5, 1, window, false) elseif prayer == "isha" then guiSetText( label,getElementData (root, "t5" ) or "حان الآن موعد أذان العشاء" ) guiSetVisible( window, true ) setTimer(guiSetVisible, 1000*60*5, 1, window, false) end end addEventHandler ( "onPrayerTime", root, createPrayerWindow) سيرفر addEventHandler ( "onResourceStart", resourceRoot, function () setElementData (root, "t1",get ("fajr")) setElementData (root, "t2",get ("duhr")) setElementData (root, "t3",get ("asr")) setElementData (root, "t4",get ("maghrib")) setElementData (root, "t5",get ("isha")) end) ميتا "*fajr" value="حان الآن موعد أذان الفجر"/> "*duhr" value="حان الآن موعد أذان الظهر"/> "*asr" value="حان الآن موعد أذان العصر"/> "*maghrib" value="حان الآن موعد أذان المغرب"/> "*isha" value="حان الآن موعد أذان العشاء"/>
  5. local key = "F5" GUIEditor = { memo = {}, button = {}, label = {}, window = {}, } GUIEditor.window[1] = guiCreateWindow(275, 152, 344, 357, "قوانين - اساطير العرب", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.memo[1] = guiCreateMemo(13, 25, 227, 266, "السلام عليكم ورحمة الله وبركاتة\n\nسيرفر اساطير العرب يرحب بكم\n\nنتمنى انت تكونو بصحه وسلامة\n\n\nقوانين السيرفر-\n\nعدم السب واللعن\n\nوالنشر والحركات الوصخه\n\n\nعند عدم وجود ادمن فقط يمكنك التبليغ\n\n\n[url=http://asaterarab.eb2a.com/vb/]http://asaterarab.eb2a.com/vb/[/url]\n\n\nيمكنك زيارة المنتدى\n\n\nوالسلام عليكم ورحمة الله وبركاته\n\n\nكان معكم - الاونر - ايفون", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(9, 297, 93, 48, "اغلاق اللوحة", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(111, 300, 215, 40, "صنعت اللوحة - من قبل - ايفون", false, GUIEditor.window[1]) guiSetVisible (GUIEditor.window[1], false) bindKey( key, "down",function() guiSetVisible (GUIEditor.window[1], not guiGetVisible (GUIEditor.window[1]) ) showCursor ( guiGetVisible (GUIEditor.window[1]) ) end) <meta> <info author="Iphone" name="Iphone2" version="3.0.2" type="misc"/> <script src="client.lua" type="client"/> </meta>
  6. غريبه نفس التاج اللى بالموضوع دا https://forum.multitheftauto.com/viewtopic.php?p=890028#p890028 ع العموم بالتوفيق لك
  7. قصدك اسم الملف ؟ admin_report دا اسمه
  8. اسف بس عندي احساس انكم تعرفو بعض https://forum.multitheftauto.com/viewtopic.php?p=890083#p890083 يعني لاحظت ان طلباتكم نفس بعضها
  9. #|_oskar_|# -- 2009 6ovAN[+] -- 2011 والي الان ادخل بيهم
  10. الليبل تبيه يختفي بشويش ولا كيف ؟
  11. ضيفه مع التاج
  12. ملاحظه : كدا اللاعب بس هو اللى يشوف اسمه اتغير GUIEditor = { edit = {}, button = {}, window = {}, label = {}, gridlist = {} } GUIEditor.window[1] = guiCreateWindow(143, 151, 243, 401, "Nick ", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1], false) GUIEditor.edit[1] = guiCreateEdit(141, 44, 92, 45, "", false, GUIEditor.window[1]) GUIEditor.gridlist[1] = guiCreateGridList(9, 23, 132, 368, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "Players", 0.9) GUIEditor.button[1] = guiCreateButton(145, 95, 88, 48, "Set", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF0DF1E3") GUIEditor.button[2] = guiCreateButton(145, 156, 88, 48, "Resotre Name", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFE0B0B") GUIEditor.button[3] = guiCreateButton(377, 314, 0, 15, "", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(149, 250, 84, 42, "By : KilleR", false, GUIEditor.window[1]) addCommandHandler ( "open",function() local state = guiGetVisible (GUIEditor.window[1]) guiSetVisible (GUIEditor.window[1], not state) showCursor ( state ) end) function Strong ( ) guiSetVisible ( GUIEditor.window[1],true ) showCursor ( true ) -- اظهار الماوس end addEventHandler("onClientGUIClick",root, function () local name = guiGetText(GUIEditor.edit[1]) if ( source == GUIEditor.button[1] ) then if ( string.len(name) > 0 ) then setElementData(localPlayer,"tag",name) outputChatBox("* الان " .. name .. " هو اسمك ",0,255,0) else outputChatBox("* الرجاء كتابه اسمك العربي في الفراغ",255,0,0) end elseif ( source == GUIEditor.button[2] ) then setElementData(localPlayer,"tag",getPlayerName(localPlayer)) outputChatBox("* لقد عاد اسمك كما كان",0,255,0) end end ) function update () guiGridListClear(GUIEditor.gridlist[1]) for i,v in ipairs (getElementsByType("player")) do local rp = guiGridListAddRow (GUIEditor.gridlist[1]) guiGridListSetItemText (GUIEditor.gridlist[1],rp,1,getPlayerName(v),false,false) end end addEventHandler ("onClientResourceStart",resourceRoot,update) addEventHandler ("onClientPlayerJoin",root,update) addEventHandler ("onClientPlayerChangeNick",root,update) addEventHandler ("onClientPlayerQuit",root,update)
  13. function update () guiGridListClear(grid) -- اسم القريد يختلف عن حقك for i,v in ipairs (getElementsByType("player")) do local rp = guiGridListAddRow (Players) guiGridListSetItemText (grid,rp,1,getPlayerName(v),false,false) -- اسم القريد يختلف عن حقك end end addEventHandler ("onClientResourceStart",resourceRoot,update) addEventHandler ("onClientPlayerJoin",root,update) addEventHandler ("onClientPlayerChangeNick",root,update) addEventHandler ("onClientPlayerQuit",root,update) التصحيح guiGridListClear(Players) guiGridListSetItemText (Players,rp,1,getPlayerName(v),false,false) + فتح اللوحه من اف 8 -- الى اسم لوحتك myWindow غير ال -- لفتح او اغلاق اللوحه open اكتب ب اف 8 addCommandHandler ( "open",function() local state = guiGetVisible (myWindow) guiSetVisible (myWindow, not state) showCursor ( state ) end)
  14. GUIEditor = { button = {}, window = {}, label = {}, edit = {}} local screenW, screenH = guiGetScreenSize() GUIEditor.window[1] = guiCreateWindow((screenW - 315) / 2, (screenH - 168) / 2, 315, 168, ":: تاج في الشات ::", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFF1BE0D") GUIEditor.edit[1] = guiCreateEdit(100, 38, 177, 20, "#AA0000Admin", false, GUIEditor.window[1]) GUIEditor.edit[2] = guiCreateEdit(100, 107, 177, 20, "#00FF00", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(14, 39, 72, 19, " -< التاج >- ", false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(4, 108, 90, 19, "-< لون الكلام >-", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(306, 24, 0, 15, "", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.button[2] = guiCreateButton(283, 24, 23, 19, "X", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFFFFFF") GUIEditor.button[3] = guiCreateButton(10,140, 95, 17, "-< تفعيل التاج >-", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFFFFFFF") GUIEditor.button[4] = guiCreateButton(10+95, 140, 95, 17, "-< حذف التاج >-", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFFFFFFF") GUIEditor.label[3] = guiCreateLabel(104, 68, 140, 15, "~~~~~~~~~", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[3], "sa-gothic") guiLabelSetColor(GUIEditor.label[3], 239, 200, 21) GUIEditor.label[4] = guiCreateLabel(100, 88, 186, 15, "مثال لون التاج >> الاحمر FF0000#", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[4], 254, 254, 254) GUIEditor.label[5] = guiCreateLabel(204, 141, 117, 17, "Created By #Saed", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[5], 254, 5, 5) ----- addEventHandler("onClientGUIClick",root,function() if(source == GUIEditor.button[3]) then if guiGetText (GUIEditor.edit[1]) ~= '' then setElementData (localPlayer,'tag',guiGetText (GUIEditor.edit[1])) setElementData (localPlayer,'colour',guiGetText (GUIEditor.edit[2])) end elseif(source == GUIEditor.button[4]) then setElementData (localPlayer,'tag',false) setElementData (localPlayer,'colour',false) end end) addEventHandler("onPlayerChat",root,function (msg,Colour) local tag = getElementData(source,"tag") or '#FF0000[#005588Player#FF0000]' local colour = getElementData(source,"colour") or '#FFFFFF' outputChatBox(tag ..' '.. getPlayerName(source) .. ''..colour..' : '.. msg,root, r, g, b, true) return cancelEvent() end)
  15. كودك شغال بس كان المفروض تحط destroyElement (txd) بدل engineRestoreModel ( 2993 ) يعني تسحب شكل الاوبجكت زي السياره او اى المنت ثاني
  16. addCommandHandler -- يفتح اللوحه من اف 8 isObjectInACLGroup -- يتحقق اذا كنت فى قروب اسل او لا
  17. ممكن توضح وين الخطاء بالضبط واي ارقمنت نسيته ؟
  18. GUIEditor = {checkbox = {},label = {},edit = {},button = {},window = {},} local screenW, screenH = guiGetScreenSize() GUIEditor.window[2] = guiCreateWindow((screenW - 315) / 2, (screenH - 168) / 2, 315, 168, ":: تاج في الشات ::", false) guiWindowSetSizable(GUIEditor.window[2], false) guiSetProperty(GUIEditor.window[2], "CaptionColour", "FFF1BE0D") GUIEditor.edit[1] = guiCreateEdit(100, 38, 177, 20, "", false, GUIEditor.window[2]) GUIEditor.edit[2] = guiCreateEdit(100, 107, 177, 20, "", false, GUIEditor.window[2]) GUIEditor.label[4] = guiCreateLabel(14, 39, 72, 19, " -< التاج >- ", false, GUIEditor.window[2]) GUIEditor.label[5] = guiCreateLabel(4, 108, 90, 19, "-< لون الكلام >-", false, GUIEditor.window[2]) GUIEditor.button[7] = guiCreateButton(306, 24, 0, 15, "", false, GUIEditor.window[2]) guiSetProperty(GUIEditor.button[7], "NormalTextColour", "FFAAAAAA") GUIEditor.button[8] = guiCreateButton(283, 24, 23, 19, "X", false, GUIEditor.window[2]) guiSetProperty(GUIEditor.button[8], "NormalTextColour", "FFFFFFFF") GUIEditor.button[9] = guiCreateButton(10,140, 95, 17, "-< تفعيل التاج >-", false, GUIEditor.window[2]) guiSetProperty(GUIEditor.button[9], "NormalTextColour", "FFFFFFFF") GUIEditor.button[10] = guiCreateButton(10+95, 140, 95, 17, "-< حذف التاج >-", false, GUIEditor.window[2]) guiSetProperty(GUIEditor.button[10], "NormalTextColour", "FFFFFFFF") GUIEditor.label[6] = guiCreateLabel(104, 68, 140, 15, "~~~~~~~~~", false, GUIEditor.window[2]) guiSetFont(GUIEditor.label[6], "sa-gothic") guiLabelSetColor(GUIEditor.label[6], 239, 200, 21) GUIEditor.label[7] = guiCreateLabel(100, 88, 186, 15, "مثال لون التاج >> الاحمر FF0000#", false, GUIEditor.window[2]) guiLabelSetColor(GUIEditor.label[7], 254, 254, 254) GUIEditor.label[8] = guiCreateLabel(204, 141, 117, 17, "Created By #Saed", false, GUIEditor.window[2]) guiLabelSetColor(GUIEditor.label[8], 254, 5, 5) guiSetVisible( GUIEditor.window[2], false) --------- GUIEditor.window[1] = guiCreateWindow((screenW - 315) / 2, (screenH - 168) / 2, 315, 168, ":: تاج في الشات ::", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFF1BE0D") GUIEditor.edit[1] = guiCreateEdit(100, 38, 177, 20, "", false, GUIEditor.window[1]) GUIEditor.checkbox[5] = guiCreateCheckBox(10, 79, 136, 15, "تاج في الشات ", false, false, GUIEditor.window[1]) guiSetProperty(GUIEditor.checkbox[5], "NormalTextColour", "FF5C60FE") --------- addEventHandler("onClientGUIClick",root,function() if guiCheckBoxGetSelected(GUIEditor.checkbox[5]) == true then guiSetVisible( GUIEditor.window[2], true) guiSetVisible( GUIEditor.window[1], false) end if(source == GUIEditor.button[8]) then guiSetVisible( GUIEditor.window[2], false) guiSetVisible( GUIEditor.window[1], true) guiCheckBoxSetSelected(GUIEditor.checkbox[5],false) end end)
  19. بموده او يمود اخر نفس الشئ بما ان الكوماند بجانب سيرفر فلازم يسوي الاستخراج حق الكومند سيرفر لان ماينفع يستخرجه بكلنت
×
×
  • Create New...