Jump to content

طلب كود الغاء زر


Recommended Posts

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

شباب الي ابيه اليوم هو كود يلغي

bind

يعني اف 1 حق السياارات الفري روم ابي اخلي واحد ينلغي عنده اف 1 يعين اذا ضغطه ما يشتغل له الفري روم وابي كود يرجعه يخليه يقدر يضغطه يعني زي الميوت فهمتوا

انشالله فهمتوا

Link to comment

لازم تعدل على الفريروم

function toggleFRWindow() 
    if getElementData(loaclPlayer,"muteF1") then return end 
    if isWindowOpen(wndMain) then 
        showCursor(false) 
        hideAllWindows() 
        colorPicker.closeSelect() 
    else 
        showCursor(true) 
        showAllWindows() 
    end 
end 

تبي تصك ميوت أف1 ؟ خخ

بسيطة

setElementData(player,"muteF1",true) 

تبي تفك؟

setElementData(player,"muteF1",false) 

Link to comment
function toggleFRWindow() 
    if getElementData(localPlayer,"muteF1") then return end 
    if isWindowOpen(wndMain) then 
        showCursor(false) 
        hideAllWindows() 
        colorPicker.closeSelect() 
    else 
        showCursor(true) 
        showAllWindows() 
    end 
end 

Link to comment
function toggleFRWindow() 
    if getElementData(localPlayer,"muteF1") then return end 
    if isWindowOpen(wndMain) then 
        showCursor(false) 
        hideAllWindows() 
        colorPicker.closeSelect() 
    else 
        showCursor(true) 
        showAllWindows() 
    end 
end 

نفس الكود ما غيرت شي -_-

تابل مو قصده يبي يصك احد ميوت من اف 1 !!!

هو قصده يبي يعطل لي لاعب ال اف 1 عن طريق الادمنية

حبيبي من قال أن الكود الي حطيته أنا يصك ميوت من أف1؟

و من قال لك يبي يعطل الأف 1 عن طريق الأدمنية؟

قال يبي كود و عطيناه وخلاص بلا زياده مشاركات -_-"

Link to comment

Your code:

function toggleFRWindow() 
    if getElementData(loaclPlayer,"muteF1") then return end 
    if isWindowOpen(wndMain) then 
        showCursor(false) 
        hideAllWindows() 
        colorPicker.closeSelect() 
    else 
        showCursor(true) 
        showAllWindows() 
    end 
end 

loaclPlayer, wrong spelling.

Link to comment
Your code:
function toggleFRWindow() 
    if getElementData(loaclPlayer,"muteF1") then return end 
    if isWindowOpen(wndMain) then 
        showCursor(false) 
        hideAllWindows() 
        colorPicker.closeSelect() 
    else 
        showCursor(true) 
        showAllWindows() 
    end 
end 

loaclPlayer, wrong spelling.

lol, my bad I wrote it quickly -_-

Link to comment

أول :

تعدل الفريروم

زي ما قال تابل

function toggleFRWindow() 
 if getElementData(localPlayer,"muteF1") then return end 
    if isWindowOpen(wndMain) then 
        showCursor(false) 
        hideAllWindows() 
        colorPicker.closeSelect() 
    else 
        showCursor(true) 
        showAllWindows() 
    end 
end 

ثم تسوي مود جديد

server:

function MuteF1_By_abozhrh ( playerSource, commandName, Player_two ) 
 local accName = getAccountName ( getPlayerAccount ( playerSource ) )  
     if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then -- اذا كان ادمن 
    local targetPlayer = getPlayerFromName ( Player_two ) 
    local Name = getPlayerName ( playerSource ) 
    local twoName = getPlayerName ( targetPlayer ) 
    if targetPlayer ~= false then 
        outputChatBox ( "تم ازالة اف1 من : " .. twoName, playerSource ) 
        outputChatBox ( "تم ازالة اف1 من : " ..twoName.." من قبل الادمن : "..Name, root,255,0,255,true ) 
          setElementData(targetPlayer,"muteF1",true) 
           else 
          outputChatBox ( "هناك خطأ في اسم الاعب", playerSource ) 
          end 
           else 
          outputChatBox ( "لا تملك الصلاحيات الكامله لتنفيذ الامر", playerSource ,255,0,0,true ) 
    end 
end 
addCommandHandler ( "mutef1", MuteF1_By_abozhrh ) 
  
function UNMuteF1_By_abozhrh ( playerSource, commandName, Player_two ) 
 local accName = getAccountName ( getPlayerAccount ( playerSource ) )  
     if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then -- اذا كان ادمن 
    local targetPlayer = getPlayerFromName ( Player_two ) 
    local Name = getPlayerName ( playerSource ) 
    local twoName = getPlayerName ( targetPlayer ) 
    if targetPlayer ~= false then 
        outputChatBox ( "تم أضافة اف1 ألى : " .. twoName, playerSource ) 
        outputChatBox ( "تم أضافة اف1 إلى : " ..twoName.." من قبل الادمن : "..Name, root,255,0,255,true ) 
          setElementData(targetPlayer,"muteF1",false) 
           else 
          outputChatBox ( "هناك خطأ في اسم الاعب", playerSource ) 
          end 
           else 
          outputChatBox ( "لا تملك الصلاحيات الكامله لتنفيذ الامر", playerSource ,255,0,0,true ) 
    end 
end 
addCommandHandler ( "unmutef1", UNMuteF1_By_abozhrh ) 

ثم تكتب الامر لأزالة الزر

/ mutef1 أسم الاعب 

وتكتب لاضافة الزر

/ unmutef1 أسم الاعب 

Link to comment

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...