Jump to content

طلب بسيط #


mR.Z

Recommended Posts

Posted

بسم الله الرحمن الرحيم

السلام عليكم ورحمته الله وبركاته

ابغى طلب :roll:

تعديل على لوحه الادمنيه او اعطائي الكودات :lol:

الطلب هوا اذا احد يصك ميوت لازم يكتتب السبب وذا ماكتب ماينصك الاعب يجيه بشات يجب وضع سبب ونفس الشي مع الباند

+

اذا انا صكيت احد ميوت محد يقدر يفكه الى الي صكه

ثاني موضوع اسويه ولم احصل على فائده :|

مجانين الشطف دائما في القمه

j4iuiJ.gif

Panel-Weather - 100%

Panel-Skin 100%

Panel-Warp v2 100%

Panel-SHELAT v2 100%

#Soon

Posted

محد راح يجي يعطيك الطريقة هنا انتا فك الادمنية بنفسك وشوف الاكواد وحاول تعدل وسوي لك اي كود ونحنا بنحاول نصلحه لك لو فيه مشكلة

AnymoX.png

even you leave mta for boring you must come back :( ..

skype: anymox1

Posted
محد راح يجي يعطيك الطريقة هنا انتا فك الادمنية بنفسك وشوف الاكواد وحاول تعدل وسوي لك اي كود ونحنا بنحاول نصلحه لك لو فيه مشكلة

حاولت مافي

اتمنى اعطائي موقع في الويكي استطيع منه عمل الكود :|

مجانين الشطف دائما في القمه

j4iuiJ.gif

Panel-Weather - 100%

Panel-Skin 100%

Panel-Warp v2 100%

Panel-SHELAT v2 100%

#Soon

Posted

تقدر تتحقق اذا صك ميوت , تتحقق ان الاديت مو فاضي من خلال الشرط ...

if guiGetText ( guiElement ) ~= '' then 

اما بالنسبه لـ محد يقدر يفك الميوت الا الي صكه , تحتاج انك تحفظ سريال اللاعب , وتتحقق يوم ينفك الميوت , اذا كان نفس السريال او لا .

^ فيه اكثر من طريقه من خلال حفظ الاسم , او الاي بي او اسم الحساب ... لكن افضلها السريال .

Sha67 سابقاً

Posted

كذا ؟

if not  guiGetText ( guiElement ) ~= '' then 
else 
outputChatBox("الرجاء كتابه السبب " ) 
end 

مجانين الشطف دائما في القمه

j4iuiJ.gif

Panel-Weather - 100%

Panel-Skin 100%

Panel-Warp v2 100%

Panel-SHELAT v2 100%

#Soon

Posted
كذا ؟
if not  guiGetText ( guiElement ) ~= '' then 
else 
outputChatBox("الرجاء كتابه السبب " ) 
end 

---

if guiGetText ( EditName ) ~= '' then 
outputChatBox("الرجاء كتابه السبب " ) 
end 
) 

Hide it :wrestler35:

Posted
كذا ؟
if not  guiGetText ( guiElement ) ~= '' then 
else 
outputChatBox("الرجاء كتابه السبب " ) 
end 

---

if guiGetText ( EditName ) ~= '' then 
outputChatBox("الرجاء كتابه السبب " ) 
end 
) 

حطيته تحت الميوت وجربت الوحه طفيت ماتطلع

مجانين الشطف دائما في القمه

j4iuiJ.gif

Panel-Weather - 100%

Panel-Skin 100%

Panel-Warp v2 100%

Panel-SHELAT v2 100%

#Soon

Posted
كذا ؟
if not  guiGetText ( guiElement ) ~= '' then 
else 
outputChatBox("الرجاء كتابه السبب " ) 
end 

---

if guiGetText ( EditName ) ~= '' then 
outputChatBox("الرجاء كتابه السبب " ) 
end 
end 
) 

addEventHandler("onClintGUIClick",getRootElement(), 
function() 
if not  guiGetText ( guiElement ) ~= '' then 
else 
outputChatBox("الرجاء كتابه السبب " ) 
end 
end) 

Skype: ahmad.ib8

Posted

في شي اغيره ولا احطه بس تحت الميوت ؟

مجانين الشطف دائما في القمه

j4iuiJ.gif

Panel-Weather - 100%

Panel-Skin 100%

Panel-Warp v2 100%

Panel-SHELAT v2 100%

#Soon

Posted

حبيبي حط الكود يوم يعطيه ميوت ,

if guiGetText ( guiElement ) ~= '' then 

وبعدين قفل الشرط .. اذا ما عرفت اطرح الاكواد .

Sha67 سابقاً

Posted
لا , الكود سهل جداً لأنك راح تضيف سطر واحد وهو التحقق ..

وآسف أنا كنت غلطان بأسماء الملفات فوق , لأن الفنكشنات الموجودة فيه صارت في ملف ثاني -.-

عموماً ..

روح لملف admin/client/gui/admin_inputbox.lua

سطر 265 وظيفة aBanInputBoxFinish

واستبدله بالكود هذا :

function aBanInputBoxFinish () 
    -- Get options 
    local bUseIP     = guiRadioButtonGetSelected( aBanInputRadio1A ) 
    local bUseSerial = guiRadioButtonGetSelected( aBanInputRadio1B ) 
  
    -- Get duration 
    local seconds = false 
    for i,dur in ipairs(aBanDurations) do 
        if guiRadioButtonGetSelected( aBanInputRadio2s[i] ) then 
            if guiGetText(aBanInputRadio2s[i]) == "Custom:" then 
                if guiComboBoxGetItemText(customType, guiComboBoxGetSelected(customType)) == "Mins" then 
                 seconds = guiGetText(customDuration) * 60 
                elseif guiComboBoxGetItemText(customType, guiComboBoxGetSelected(customType)) == "Hours" then 
                 seconds = guiGetText(customDuration) * 3600 
                elseif guiComboBoxGetItemText(customType, guiComboBoxGetSelected(customType)) == "Days" then 
                 seconds = guiGetText(customDuration) * 86400 
                end 
            else 
            seconds = dur 
            end 
        end 
    end 
  
    -- Get reason 
    local reason = guiGetText ( aBanInputValue ) 
  
    -- Validate settings 
    if not bUseIP and not bUseSerial then 
        aMessageBox ( "error", "No type selected!" ) 
        return 
    end 
  
    if seconds == false then 
        aMessageBox ( "error", "No duration selected!" ) 
        return 
    end 
     
    -- Send ban info to the server 
    if reason == "" then return aMessageBox ( "error", "Please enter the ban reason!" ); end 
    triggerServerEvent ( "aPlayer", localPlayer, aBanInputPlayer, "ban", reason, seconds, bUseSerial ) 
             
     
     
    -- Clear input 
    guiSetText ( aBanInputValue, "" ) 
    for i,dur in ipairs(aBanDurations) do 
        guiRadioButtonSetSelected( aBanInputRadio2s[i], false )  
    end 
end 

وحق الميوت

في نفس الملف

سطر 431 وظيفة aMuteInputBoxFinish

واستبدله بالكود ذا :

function aMuteInputBoxFinish () 
    -- Get duration 
    local seconds = false 
    for i,dur in ipairs(aMuteDurations) do 
        if guiRadioButtonGetSelected( aMuteInputRadio2s[i] ) then 
            seconds = dur 
        end 
    end 
  
    -- Get reason 
    local reason = guiGetText ( aMuteInputValue ) 
  
    -- Validate settings 
    if seconds == false then 
        aMessageBox ( "error", "No duration selected!" ) 
        return 
    end 
  
    -- Send mute info to the server 
    if reason == "" then return aMessageBox ( "error", "Please enter the mute reason!" ); end 
    triggerServerEvent ( "aPlayer", localPlayer, aMuteInputPlayer, "mute", reason, seconds ) 
  
    -- Clear input 
    guiSetText ( aMuteInputValue, "" ) 
    for i,dur in ipairs(aMuteDurations) do 
        guiRadioButtonSetSelected( aMuteInputRadio2s[i], false )  
    end 
end 

560x95_FFFFFF_FF9900_000000_000000.png

Posted
لا , الكود سهل جداً لأنك راح تضيف سطر واحد وهو التحقق ..

وآسف أنا كنت غلطان بأسماء الملفات فوق , لأن الفنكشنات الموجودة فيه صارت في ملف ثاني -.-

عموماً ..

روح لملف admin/client/gui/admin_inputbox.lua

سطر 265 وظيفة aBanInputBoxFinish

واستبدله بالكود هذا :

function aBanInputBoxFinish () 
    -- Get options 
    local bUseIP     = guiRadioButtonGetSelected( aBanInputRadio1A ) 
    local bUseSerial = guiRadioButtonGetSelected( aBanInputRadio1B ) 
  
    -- Get duration 
    local seconds = false 
    for i,dur in ipairs(aBanDurations) do 
        if guiRadioButtonGetSelected( aBanInputRadio2s[i] ) then 
            if guiGetText(aBanInputRadio2s[i]) == "Custom:" then 
                if guiComboBoxGetItemText(customType, guiComboBoxGetSelected(customType)) == "Mins" then 
                 seconds = guiGetText(customDuration) * 60 
                elseif guiComboBoxGetItemText(customType, guiComboBoxGetSelected(customType)) == "Hours" then 
                 seconds = guiGetText(customDuration) * 3600 
                elseif guiComboBoxGetItemText(customType, guiComboBoxGetSelected(customType)) == "Days" then 
                 seconds = guiGetText(customDuration) * 86400 
                end 
            else 
            seconds = dur 
            end 
        end 
    end 
  
    -- Get reason 
    local reason = guiGetText ( aBanInputValue ) 
  
    -- Validate settings 
    if not bUseIP and not bUseSerial then 
        aMessageBox ( "error", "No type selected!" ) 
        return 
    end 
  
    if seconds == false then 
        aMessageBox ( "error", "No duration selected!" ) 
        return 
    end 
     
    -- Send ban info to the server 
    if reason == "" then return aMessageBox ( "error", "Please enter the ban reason!" ); end 
    triggerServerEvent ( "aPlayer", localPlayer, aBanInputPlayer, "ban", reason, seconds, bUseSerial ) 
             
     
     
    -- Clear input 
    guiSetText ( aBanInputValue, "" ) 
    for i,dur in ipairs(aBanDurations) do 
        guiRadioButtonSetSelected( aBanInputRadio2s[i], false )  
    end 
end 

وحق الميوت

في نفس الملف

سطر 431 وظيفة aMuteInputBoxFinish

واستبدله بالكود ذا :

function aMuteInputBoxFinish () 
    -- Get duration 
    local seconds = false 
    for i,dur in ipairs(aMuteDurations) do 
        if guiRadioButtonGetSelected( aMuteInputRadio2s[i] ) then 
            seconds = dur 
        end 
    end 
  
    -- Get reason 
    local reason = guiGetText ( aMuteInputValue ) 
  
    -- Validate settings 
    if seconds == false then 
        aMessageBox ( "error", "No duration selected!" ) 
        return 
    end 
  
    -- Send mute info to the server 
    if reason == "" then return aMessageBox ( "error", "Please enter the mute reason!" ); end 
    triggerServerEvent ( "aPlayer", localPlayer, aMuteInputPlayer, "mute", reason, seconds ) 
  
    -- Clear input 
    guiSetText ( aMuteInputValue, "" ) 
    for i,dur in ipairs(aMuteDurations) do 
        guiRadioButtonSetSelected( aMuteInputRadio2s[i], false )  
    end 
end 

شكرا والله بس باقي الباند نفس الشي وشكرا ماراح انسا ها الجمال

مجانين الشطف دائما في القمه

j4iuiJ.gif

Panel-Weather - 100%

Panel-Skin 100%

Panel-Warp v2 100%

Panel-SHELAT v2 100%

#Soon

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...