MR.KFO Posted February 18, 2016 Share Posted February 18, 2016 السسسلام عليكمء شباب ابي مساعدة انا عندي بوتون لين اضغط عليه يعطيني رتبتة ادمن ابيها ساعة وتنسحب لو بالتايمر لو طلعت ودخلت رح ينعاد الوقت ويصير مشاكل مساعدة رجاء ً وطرح امثله Link to comment
Jupi Posted February 18, 2016 Share Posted February 18, 2016 setAccountData سويه لما يخرج يجيب كام باقي و يحطها بلحساب ولما يدخل يجيب الوقت و يكمل منه : ) Link to comment
MR.KFO Posted February 18, 2016 Author Share Posted February 18, 2016 setAccountData سويه لما يخرج يجيب كام باقي و يحطها بلحساب ولما يدخل يجيب الوقت و يكمل منه : ) انا مبتدا تقدر تساعدني انا سويت كيف يعطيه ادمن بصعوبة ض Link to comment
YourMind Posted February 19, 2016 Share Posted February 19, 2016 جرب --client addEventHandler ("onClientGUIClick",yourbutton, function () triggerServerEvent ("Rotba",localPlayer) end ) -- server timer = { } addEvent ("Rotba",true) addEventHandler ("Rotba",root, function () local account = getPlayerAccount(source) if account and not isGuestAccount (account) then local acc = getAccountName ( getPlayerAccount ( source ) ) if isObjectInACLGroup ("user."..acc, aclGetGroup ( "yourobject" ) ) then outputChatBox ("Already done.",source,255,5,5) return end aclGroupAddObject (aclGetGroup("yourobject"), "user."..acc) outputChatBox ("Done",source,255,255,255) timer[source] = setTimer(function() aclGroupRemoveObject (aclGetGroup("yourobject"), "user."..acc) outputChatBox ("Your admin rights has been removed.",source,255,5,5) end,3600000,1) addEventHandler ("onPlayerQuit",source, function () if isTimer(timer[source]) then killTimer (timer[source]) if isObjectInACLGroup ("user."..acc, aclGetGroup ( "yourobject" ) ) then aclGroupRemoveObject (aclGetGroup("yourobject"), "user."..acc) end end end ) end end ) يديلك الرتبة و بعد ساعة يسحبها و لو خرجت من السيرفر يسحبها خالص و يشيل التايمر 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