أول :
تعدل الفريروم
زي ما قال تابل
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 أسم الاعب