Jump to content

فتح تاب للأدمن


Recommended Posts

  • Scripting Moderators

آلسلآم عليكم

عندي لوحة ومقفل فيه تآب وآبيه يفتح لـ قروب Admin

بـ كوماند

guiSetEnabled(GUIEditor.tab[2],true) 

حاولت آخليه ب ترايقرات انه لمن يسجل دخول بس م عرفت لها

آتمنى أحد يسآعدني ..ِ ومشكورين

:mrgreen:

Link to comment
  • Scripting Moderators
addCommandHandler("الامر", function () 
guiSetEnabled(aTab2.Tab,true) 
end) 

حطه اخر شي ب admin_main

يخوي انا م قلت ابي افتح تاب في مود الأدمنيةة

انا قلت لك

انا مسوي لوحة وحاط فيه تابين

تاب للزوار

وتاب مقفله عشان ابي اخليه يلي معهم قروب ادمن ينفتح لهم بس م عرفت لها

Link to comment

guiSetEnabled -- false 
triggerServerEvent 
addEvent  
addEventHandler 
guiSetEnabled -- true 
--- Server --- 
GroupsAdmin = { -- سوي لوب للرتب التبيها تفتح له 
addEvent 
addEventHandler 
for _, v in ipairs 
isObjectInACLGroup  
triggerClientEvent 
return false 
Edited by Guest
Link to comment
  • Scripting Moderators
guiSetEnabled 
triggerServerEvent 
addEvent 
addEventHandler 
guiSetEnabled -- true 
--- Server --- 
GroupsAdmin = { -- سوي لوب للرتب التبيها تفتح له 
addEvent 
addEventHandler 
for _, v in ipairs 
isObjectInACLGroup  
triggerClientEvent 

شكرآ , بس

for _, v in ipairs

م فهمت لها

Link to comment

مثلن انت عامل الجداول كذا

GroupsAdmin = { 
[1] = {Group='Police'} 
} 

تحط في السطر كذا تحت

for _, v in ipairs(GroupsAdmin) do 
if  isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(source)), aclGetGroup(v.Group)) then 

حاول بالكود وبساعدك فيه ^

Link to comment
  • Scripting Moderators

أعذرني تعبتك معك شوي :)

مب متاكد انه الكود صح او فيه خطا

الكلينت

addEvent( "opentab", true ) 
addEventHandler( "opentab", resourceRoot, 
function () 
guiSetEnabled(GUIEditor.tab[2],true) -- التاب مقفله من قبل 
triggerServerEvent ("opentab", getLocalPlayer()) 
end 
) 

السيرفر

GroupsAdmin = { 
[1] = {Group='Admin'} 
[2] = {Group='Console'} 
} 
  
addEvent("opentab",true) 
addEventHander("onPlayerLogin",root, 
function () 
for _, v in ipairs(GroupsAdmin) do 
if  isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(source)), aclGetGroup(v.Group)) then 
triggerClientEvent(player,"opentab") 
   end 
end 
) 

Link to comment

guiSetEnabled (tab,false) 
triggerServerEvent ("Open",localPlayer) 
  
addEvent ("Open2",true) 
addEventHandler ("Open2",root, 
function () 
guiSetEnabled (tab,true) 
end) 
  

GroupsAdmin = { 
[1] = {Group='Admin'}, 
[2] = {Group='Console'}, 
} 
addEvent('Open',true) 
addEventHandler('Open',root, 
function (  ) 
for _, v in ipairs(GroupsAdmin) do 
if  isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(source)), aclGetGroup(v.Group)) then 
triggerClientEvent(source,"Open2",source) 
return false 
end 
end 
end) 
Link to comment
  • Scripting Moderators
guiSetEnabled (tab,false) 
triggerServerEvent ("Open",localPlayer) 
  
addEvent ("Open2",true) 
addEventHandler ("Open2",root, 
function () 
guiSetEnabled (tab,true) 
end) 
  

GroupsAdmin = { 
[1] = {Group='Admin'}, 
[2] = {Group='Console'}, 
} 
addEvent('Open',true) 
addEventHandler('Open',root, 
function (  ) 
for _, v in ipairs(GroupsAdmin) do 
if  isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(source)), aclGetGroup(v.Group)) then 
triggerClientEvent(source,"Open2",source) 
return false 
end 
end 
end) 

تسلم آخوي الله يعطيك العآفية

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