Jump to content

كود الكيك


mody134

Recommended Posts

  1. وش الخطا بالكود

     
  2. addEventHandler("onPlayerQuit", root,
  3. function (guittype, _, kickPlayer)
  4. if guittype == "Kicked" then
  5. if getElementData(kickPlayer,"spamkicked") == 2 then
  6. cancelEvent()
  7. banPlayer (kickPlayer, false, false, true, root, 'محاولة تكرار الكيك فاشلة !')
  8. else
  9. setElementData(kickPlayer,"spamkicked",getElementData(kickPlayer,"spamkicked") + 1)
  10. mytimer[kickPlayer] = setTimer(setElementData,60000,3,kickPlayer,"spamkicked",0)
  11. end
  12. end
  13. end)
  14.  
  15. addEventHandler("onPlayerJoin", root,
  16. function ()
  17. setElementData(source,"spamkicked",0)
  18. end)

addEventHandler("onPlayerQuit", root,
function (guittype, _, kickPlayer)
    if guittype == "Kicked" then
        if getElementData(kickPlayer,"spamkicked") == 2 then
        cancelEvent()
        banPlayer (kickPlayer, false, false, true, root, 'محاولة تكرار الكيك فاشلة !')
        else
        setElementData(kickPlayer,"spamkicked",getElementData(kickPlayer,"spamkicked") + 1)
        mytimer[kickPlayer] = setTimer(setElementData,60000,3,kickPlayer,"spamkicked",0)
        end
    end
end)

addEventHandler("onPlayerJoin", root,
function ()
setElementData(source,"spamkicked",0)
end)
 

Link to comment

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

admin > server > admin_server.lua

 

سطر 821 تقريباً عند الكيك سوي تايمر انة مايقدر يعطي كيك الا بعد وقت معين أفضل لك

Link to comment
  1. جربت الكود ذا وكل اما اضغط على الكيك يخرب 
            kick            = guiCreateButton ( 0.71, 0.125, 0.13, 0.04, "Kick", true, aTab1.Tab, "kick" )
            addEventHandler("onClientGUIClick",guiRoot,function() if ( source == kick ) then
      guiSetEnabled(kick,false)
      if ( not isTimer(Timer) ) then
       Timer = setTimer(function()
        guiSetEnabled(kick,true)
       end,19000,1)
      end
     end
    end)
     
Link to comment

admin > client > gui > admin_main.lua

 

سطر 896 تقريباً 

 

if ( source == aTab1.Kick ) then guiSetEnabled ( source,false ) setTimer ( guiSetEnabled,source,10000,1,true ) aInputBox ( "Kick player "..name, "Enter the kick reason", "", "kickPlayer", player )

 -- سويه هنا وهذا مثال جربة وشوف لكن افضل لك بالسيرفر بعد مايصير الكيك

 

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