#[K]iLLeR<3 Posted February 11, 2018 Share Posted February 11, 2018 السلام عليكم اريد اخلي مود مسابقات يفتح لرتبة معينة بس مو راضي عملت كل جهدي بس ما قدرت اتمنى اذا حد يقدر ما يقصر ذا هو المود https://community.multitheftauto.com/index.php?p=resources&s=details&id=11490 مو مهم اسم الرتبة Link to comment
MrKAREEM Posted February 13, 2018 Share Posted February 13, 2018 قم باضافة الاكواد الآتية في السكربت Server : addEvent("Check",true) -- التحقق في السيرفر addEventHandler("Check",getRootElement(), function() if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup('اسم الرتبة')) then triggerClientEvent ( source, "Checked", source) end end) Client : function OpenWin() -- عند التحقق if guiGetVisible (اسم اللوحة) then guiSetVisible (اسم اللوحة, false ) showCursor(false) guiSetInputEnabled(false) else triggerServerEvent("Check",localPlayer) end end bindKey("الزر", "down", OpenWin) addEvent('Checked',true) -- اذا تم التحقق ولقي انه في الرتبة addEventHandler('Checked',root, function () guiSetVisible (اسم اللوحة, true ) showCursor(true) guiSetInputEnabled(true) 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