Jump to content

[#]~>Abo'ALnshmy_979!!

Members
  • Posts

    19
  • Joined

  • Last visited

Posts posted by [#]~>Abo'ALnshmy_979!!

  1. -- حط السيريالات هنا
    local Serials = {
    ["sssssssssssssssssssssssssssssss"] = true,
    }
    
    
    GUIEditor = {
        button = {},
        window = {},
        edit = {}
    }
    local screenW, screenH = guiGetScreenSize()
    GUIEditor.window[1] = guiCreateWindow((screenW - 293) / 2, (screenH - 113) / 2, 293, 113, "توزيع السلحة", false)
    guiWindowSetSizable(GUIEditor.window[1], false)
    
    GUIEditor.edit[1] = guiCreateEdit(9, 31, 182, 32, "", false, GUIEditor.window[1])
    GUIEditor.button[1] = guiCreateButton(191, 32, 91, 35, "اعطاء اسلحة", false, GUIEditor.window[1])
    guiSetFont(GUIEditor.button[1], "default-bold-small")
    guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF12FE00")
    
    guiSetFont(GUIEditor.button[2], "default-bold-small")
    guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF12FE00")
    GUIEditor.button[3] = guiCreateButton(9, 67, 91, 35, "اغلاق", false, GUIEditor.window[1])
    guiSetFont(GUIEditor.button[3], "default-bold-small")
    guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FF12FE00")
    GUIEditor.button[4] = guiCreateButton(192, 67, 91, 35, "اعطاء الكل اسلحة", false, GUIEditor.window[1])
    guiSetFont(GUIEditor.button[4], "default-bold-small")
    guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FF12FE00")
    
    addEventHandler("onClientGUIClick",root,function ()
    if source == GUIEditor.button[1] then
    local houres = guiGetText(GUIEditor.edit[1])
    triggerServerEvent("Give;Houres",localPlayer,houres)
    elseif source == GUIEditor.button[2] then
    triggerServerEvent("Enable;Houres",localPlayer,'true')
    elseif source == GUIEditor.button[4] then
    triggerServerEvent("Enable;Houres",localPlayer,'false')
    elseif source == GUIEditor.button[3] then
    guiSetVisible(GUIEditor.window[1],false)
    showCursor(false)
    end end)
    guiSetVisible (GUIEditor.window[1], false )
    function OpenWin()
        if Serials[getPlayerSerial(localPlayer)] then
    		if guiGetVisible(GUIEditor.window[1]) then
    			guiSetVisible(GUIEditor.window[1],false)
    			showCursor(false)
    			guiSetInputEnabled(false)
    		else
    			guiSetVisible(GUIEditor.window[1],true)
    			showCursor(true)
    			guiSetInputEnabled(true)
    		end
    	end
     end
    bindKey("F2", "down", OpenWin)

    ....السلام عليكم 

    F2..اريد مساعدة في هذا كود , هذا كود يفتح لوحة عن طريق 

    اريد بدل ما يفتح من زر اف 2 اريد يفتح عن طريق كلمة من اف 8 وعن طريق سريال مثل اف 2 

    F2 للعلم لوحة تفتح على سريال

    واتمنى تساعدوني وشكرا :)

  2. السلام عليكم ذي لوحة تفتح في اف 4 واريد هذا لوحة تفتح على سريال ممكن تعطوني كود سريال وتركبو في ذي كودات الوحة ويريت لو تحطون 5 سريالات وانا اعدل بعدين على سريالات وشكرا لكم 

    --- Edit by TNT
    GUIEditor = {
        button = {},
        window = {},
        edit = {}
    }
    local screenW, screenH = guiGetScreenSize()
    GUIEditor.window[1] = guiCreateWindow((screenW - 293) / 2, (screenH - 113) / 2, 293, 113, "توزيع السلحة", false)
    guiWindowSetSizable(GUIEditor.window[1], false)
    
    GUIEditor.edit[1] = guiCreateEdit(9, 31, 182, 32, "", false, GUIEditor.window[1])
    GUIEditor.button[1] = guiCreateButton(191, 32, 91, 35, "اعطاء سلاح", false, GUIEditor.window[1])
    guiSetFont(GUIEditor.button[1], "default-bold-small")
    guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF12FE00")
    GUIEditor.button[2] = guiCreateButton(100, 67, 91, 35, "اسلحة", false, GUIEditor.window[1])
    guiSetFont(GUIEditor.button[2], "default-bold-small")
    guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF12FE00")
    GUIEditor.button[3] = guiCreateButton(9, 67, 91, 35, "اغلاق", false, GUIEditor.window[1])
    guiSetFont(GUIEditor.button[3], "default-bold-small")
    guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FF12FE00")
    GUIEditor.button[4] = guiCreateButton(192, 67, 91, 35, "اعطاء الكل اسلحة", false, GUIEditor.window[1])
    guiSetFont(GUIEditor.button[4], "default-bold-small")
    guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FF12FE00")
    
    addEventHandler("onClientGUIClick",root,function ()
    if source == GUIEditor.button[1] then
    local houres = guiGetText(GUIEditor.edit[1])
    triggerServerEvent("Give;Houres",localPlayer,houres)
    elseif source == GUIEditor.button[2] then
    triggerServerEvent("Enable;Houres",localPlayer,'true')
    elseif source == GUIEditor.button[4] then
    triggerServerEvent("Enable;Houres",localPlayer,'false')
    elseif source == GUIEditor.button[3] then
    guiSetVisible(GUIEditor.window[1],false)
    showCursor(false)
    end end)
    guiSetVisible (GUIEditor.window[1], false )
    function OpenWin()
        if guiGetVisible (GUIEditor.window[1]) then   
           guiSetVisible (GUIEditor.window[1], false )
           showCursor(false)
           guiSetInputEnabled(false)
        else
              triggerServerEvent("SHOW_s",localPlayer)
        end
    end
    bindKey("F4", "down", OpenWin)
    
     addEvent('SHOW',true)
     addEventHandler('SHOW',root,
     function ()
      guiSetVisible (GUIEditor.window[1], true )
     showCursor(true)
     guiSetInputEnabled(true)
     end
     )

     

  3. On ٣٠‏/٦‏/٢٠١٨ at 07:09, Rakan# said:
    
    Ranks = { -- الرتب
    	{"Console"},
    }
    
    addCommandHandler("givetime", 
        function (player,cmd,PlayerName,Time) 
            if PlayerName and Time then 
                local thePlayer = getPlayerFromName(PlayerName) 
                if isElement(thePlayer) then 
    				for i = 1, #Ranks do
                    if isObjectInACLGroup ( "user."..getAccountName( getPlayerAccount( player ) ), aclGetGroup ( Ranks[i][1] ) ) then
                    if tonumber(Time) then 
                        t[thePlayer]["hour"] = tonumber(Time) 
                        outputChatBox("* DONE",player,0,255,0) 
                    else 
                        outputChatBox("* خطء في الوقت",player,255,0,0) 
                    end 
                break
                else 
                    outputChatBox("",player,255,0,0) 
                end 
    			end
            else 
                outputChatBox("",player,255,0,0) 
            end 
          end
        end 
    )
    

    @*RayaN-Alharbi.

    استعمالك خطا له 

    لي خطأ ؟؟

  4. 5 hours ago, +Source|> said:
    
    Ranks = { -- الرتب
    	{"Console"},
    }
    
    addCommandHandler("givetime", 
        function (player,cmd,PlayerName,Time) 
            if PlayerName and Time then 
                local thePlayer = getPlayerFromName(PlayerName) 
                if isElement(thePlayer) then 
    				for i = 1, #Ranks do
                    if isObjectInACLGroup ( "user."..getAccountName( getPlayerAccount( player ) ), aclGetGroup ( Ranks[i][1] ) ) then
                    if tonumber(Time) then 
                        t[thePlayer]["hour"] = tonumber(Time) 
                        outputChatBox("* DONE",player,0,255,0) 
                    else 
                        outputChatBox("* خطء في الوقت",player,255,0,0) 
                    end 
                else 
                    outputChatBox("",player,255,0,0) 
                end 
    			end
            else 
                outputChatBox("",player,255,0,0) 
            end 
          end
        end 
    )
    

     

    مشكور اخوي العزيز ومشكور للكل الي شارك معي في مساعدة كودات يعطيكم الف عافية

    تم الافادة وشكرا لكم :)

    • Like 1
  5. Just now, ,#Savage said:

    تفضل الكود من جديد بعد التصليحات وجعلها نفس طلبك :) 

    100% ملاحظة :- الكود مجرب وشغال

    جربته بـ 4 رتب وشغال كويس

    
    -- ده الكود تحطه في ملف كلنت
    
    function OpenPanel ( )
    if guiGetVisible ( Panel ) then -- Panel هنا تحط اسم اللوحة عشان تفتح حطها بدال كلمة
    guiSetVisible( Panel , false ) -- Panel هنا تحط اسم اللوحة عشان تفتح حطها بدال كلمة
    guiSetInputEnabled( false )
    showCursor( false )
    else
    triggerServerEvent("Open1" , localPlayer )
    end
    end
    addCommandHandler("Test" , OpenPanel ) -- Test وهنا الكلمة التفتح اللوحة حطها بدال كلمة
    addEvent('Open2',true)
    addEventHandler('Open2' , root , function ( player_ )
    guiSetVisible( Panel , true ) -- Panel هنا تحط اسم اللوحة عشان تفتح حطها بدال كلمة
    guiSetInputEnabled( true )
    showCursor( true )
    end )
    

    _________________________________________________________________________________

    
    GroupsOpen = { "Group" , "Group" , "Group" , "Group" , "Group" , "Group" } -- Group القروبات التفتح اللوحة التبيها انت حطها بدال كلمة
    addEvent("Open1",true)
    addEventHandler("Open1",root, function ( )
    local Acc = getAccountName(getPlayerAccount(source))
    for i,v in ipairs( GroupsOpen ) do
    if isObjectInACLGroup("user." .. Acc, aclGetGroup ( v ) ) then
    triggerClientEvent ( source , "Open2" , source )
    end
    end
    end )
    

    ملاحظة مره اخرى :- الكود مجرب وشغال

    شكرا على مساعدتك لكن كودك بعيد عن موضوع لان كود حقك هو مود يفتح في لوحة

    تعبتك معي..

    الحين بطرح كود حقي كامل ..كان لازم من بداية اطرحة لكن قلت اريد اركب كوادت اتعلم برمجة لكن خلاص بطرح موضوعي كامل..

    هذا مثال :-

    GroupsOpen = { "Group" , "Group" , "Group" , "Group" , "Group" , "Group" } -- Group القروبات التفتح اللوحة التبيها انت حطها بدال كلمة

    هذا كود كامل حقي  :) لكن اريد يفتح اكثر من قروب بدل كونسل اعتقد واضح  

    هنا موضوعي ابيه يفتح اكثر من قروب

     

    addCommandHandler("givetime", 
        function (player,cmd,PlayerName,Time) 
            if PlayerName and Time then 
                local thePlayer = getPlayerFromName(PlayerName) 
                if isElement(thePlayer) then 
                    if isObjectInACLGroup ( "user."..getAccountName( getPlayerAccount( player ) ), aclGetGroup ( "Console" ) ) then
                    if tonumber(Time) then 
                        t[thePlayer]["hour"] = tonumber(Time) 
                        outputChatBox("* DONE",player,0,255,0) 
                    else 
                        outputChatBox("* خطء في الوقت",player,255,0,0) 
                    end 
                else 
                    outputChatBox("",player,255,0,0) 
                end 
            else 
                outputChatBox("",player,255,0,0) 
            end 
          end
        end 
    )

     

     

  6. 9 minutes ago, +Source|> said:

    وضح الطلب؟ 

    عندي مود في امر ينكتب في اف 8 

    والحين  اريد رتب محددة تكتب ذا الامر في اف 8 

    موب بس كونسل يكتب الامر

    اعتقد واضح..!

  7. السلام عليكم...

    مطلوب كود قروب + كيف اضيف اكثر من رتبة في قروب في نفس كود 

    لاني محتاجة في مود 

    والمود عبارة عن امر تكتبة في اف 8 عايز بس اصحاب رتب الي في القروب يكتبونة

    مثال:- هذا قروب كونسل عايز اضيف في كمان 4 قروبات كيف ؟ انا حاولت كثير لكن فشلت :( 

    if isObjectInACLGroup ( "user."..getAccountName( getPlayerAccount( player ) ), aclGetGroup ( "Console" ) ) then

     

  8. On ٢٤‏/٦‏/٢٠١٨ at 13:10, #BrosS said:
    
    addCommandHandler("givetime", 
        function (player,cmd,PlayerName,Time) 
            if PlayerName and Time then 
                local thePlayer = getPlayerFromName(PlayerName) 
                if isElement(thePlayer) then 
                	if isObjectInACLGroup ( "user."..getAccountName( getPlayerAccount( player ) ), aclGetGroup ( "Console" ) ) then
                    if tonumber(Time) then 
                        t[thePlayer]["hour"] = tonumber(Time) 
                        outputChatBox("* نـجـح",player,0,255,0) 
                    else 
                        outputChatBox("* خطء في الوقت",player,255,0,0) 
                    end 
                else 
                    outputChatBox("* لم يـتـم إيـجـاد الاعب",player,255,0,0) 
                end 
            else 
                outputChatBox("givetime ",player,255,0,0) 
            end 
          end
        end 
    )
    

     

    مشكووور اخوي على مساعدة تم الافادة ق8

  9. 21 hours ago, [#]~>Abo'ALnshmy_979!! said:

    اريد لما اكتب في اف 8 givetime

    يشتغل على رتبة  اي يعني اسوي له قروب للكونسل فقط يقدر يكتب في اف 8 ذي خاصية

     

    
    addCommandHandler("givetime", 
        function (player,cmd,PlayerName,Time) 
            if PlayerName and Time then 
                local thePlayer = getPlayerFromName(PlayerName) 
                if isElement(thePlayer) then 
                    if tonumber(Time) then 
                        t[thePlayer]["hour"] = tonumber(Time) 
                        outputChatBox("* نـجـح",player,0,255,0) 
                    else 
                        outputChatBox("* خطء في الوقت",player,255,0,0) 
                    end 
                else 
                    outputChatBox("* لم يـتـم إيـجـاد الاعب",player,255,0,0) 
                end 
            else 
                outputChatBox("givetime ",player,255,0,0) 
            end 
        end 
    )

     

     

    • Confused 1
  10. اريد لما اكتب في اف 8 givetime

    يشتغل على رتبة  اي يعني اسوي له قروب للكونسل فقط يقدر يكتب في اف 8 ذي خاصية

     

    addCommandHandler("givetime", 
        function (player,cmd,PlayerName,Time) 
            if PlayerName and Time then 
                local thePlayer = getPlayerFromName(PlayerName) 
                if isElement(thePlayer) then 
                    if tonumber(Time) then 
                        t[thePlayer]["hour"] = tonumber(Time) 
                        outputChatBox("* نـجـح",player,0,255,0) 
                    else 
                        outputChatBox("* خطء في الوقت",player,255,0,0) 
                    end 
                else 
                    outputChatBox("* لم يـتـم إيـجـاد الاعب",player,255,0,0) 
                end 
            else 
                outputChatBox("givetime ",player,255,0,0) 
            end 
        end 
    )

  11. Just now, Abu-Solo said:

    غريبة !

    شغال عندي بدون لاق !

    متأكد انه مافيه شئ ناقص بـ الملفات ؟ 

    كـ صوره او كـ شئ اخر

    شغل المود واكتب بـ اف 8 

    debugscript 3

    وصورلي وش يجيك

    للعلم انا غيرت صورة  لكن ما اظن ذي سبب ؟

    اعطني رابط او ملف الي عندك شغال تمام :) 

×
×
  • Create New...