mody134 Posted November 18, 2016 Share Posted November 18, 2016 وش الخطا بالكود 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) 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
iPrestege Posted November 18, 2016 Share Posted November 18, 2016 حقيقة المشوره هذي كلها مالها فايده تقدر تعدل الادمنية افضل لك بملف السيرفر admin > server > admin_server.lua سطر 821 تقريباً عند الكيك سوي تايمر انة مايقدر يعطي كيك الا بعد وقت معين أفضل لك Link to comment
#BrosS Posted November 18, 2016 Share Posted November 18, 2016 او انك تسوي زر الكيك يبقى زمن معين كل مرة تستخدمه ليرجع Link to comment
mody134 Posted November 18, 2016 Author Share Posted November 18, 2016 جربت الكود ذا وكل اما اضغط على الكيك يخرب 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
iPrestege Posted November 18, 2016 Share Posted November 18, 2016 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
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