ABO-AL3NOD Posted April 4, 2012 Share Posted April 4, 2012 السلام عليكم ورحمة الله وبركاته شباب الي ابيه اليوم هو كود يلغي bind يعني اف 1 حق السياارات الفري روم ابي اخلي واحد ينلغي عنده اف 1 يعين اذا ضغطه ما يشتغل له الفري روم وابي كود يرجعه يخليه يقدر يضغطه يعني زي الميوت فهمتوا انشالله فهمتوا Link to comment
X-SHADOW Posted April 5, 2012 Share Posted April 5, 2012 function stop () unbindKey(source, 'F1', 'down', stop ) end Link to comment
TAPL Posted April 5, 2012 Share Posted April 5, 2012 function stop () unbindKey(source, 'F1', 'down', stop ) end Wrong Link to comment
xTeacherx Posted April 5, 2012 Share Posted April 5, 2012 هو قصده ~ مثلا هو ادمن ويختار احد من السيرفر ع اساس مايشتغل عند الاعب اف 1 يمنع او يسمح ~ مثل الميوت Link to comment
TAPL Posted April 5, 2012 Share Posted April 5, 2012 لازم تعدل على الفريروم 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
Alpha Posted April 5, 2012 Share Posted April 5, 2012 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
xTeacherx Posted April 5, 2012 Share Posted April 5, 2012 تابل مو قصده يبي يصك احد ميوت من اف 1 !!! هو قصده يبي يعطل لي لاعب ال اف 1 عن طريق الادمنية Link to comment
TAPL Posted April 5, 2012 Share Posted April 5, 2012 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
Alpha Posted April 5, 2012 Share Posted April 5, 2012 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
TAPL Posted April 5, 2012 Share Posted April 5, 2012 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
ABO-AL3NOD Posted April 6, 2012 Author Share Posted April 6, 2012 لا تيتشر صادق ابي الغي اف3 عن واحد هذه هو قصدي Link to comment
ABO-AL3NOD Posted April 6, 2012 Author Share Posted April 6, 2012 يعني اقدر الغيه وافتحه له فهمت يا تابل Link to comment
abozhrh Posted April 7, 2012 Share Posted April 7, 2012 أول : تعدل الفريروم زي ما قال تابل 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now