AR/aclCreateGroup
Jump to navigation
Jump to search
هذا الوظيفة تقوم بصنع مجموعة في الاسل . ويمكن اضافة كائن الى المجموعة مثل لاعب أو مود .
تركيب الوظيفة :
aclgroup aclCreateGroup ( string groupName )
الفراغات المطلوبة
- groupName: اسم القروب الذي تريد صنعه
مثال
هذا المثال يضيف امر اضافة كائن الى القروب والتي يمكنك بسهولة إضافة كائنات جديدة لمراقبة الدخول المجموعات قائمة محددة.
function addACLGroupObject ( thePlayer, commandName, groupName, objectName )
local ourGroup = aclGetGroup ( groupName )
-- يتحقق اذا لم يكن اسم القروب موجود ويقوم بصنع اسم قروب جديد
if not ourGroup then
ourGroup = aclCreateGroup ( groupName )
end
-- يتحقق اذا لم يعطه اسم الكائن
if not objectName then
-- يتم تحذيره في الشات
return outputChatBox ( "You need to specify the object!", thePlayer )
end
-- واذا تم وضع اسم القروب سوف يتم صنعه
aclGroupAddObject ( ourGroup, objectName )
-- يتم حفظها في الاسل بعد تعديلها
aclSave ()
end
addCommandHandler ( "addobjecttogroup", addACLGroupObject )
تمت إعادة تعديل الترجمة من قبل : ^iiEcoo'x_)
انظر ايضاً الى
- aclCreate
- aclCreateGroup
- aclDestroy
- aclDestroyGroup
- aclGet
- aclGetGroup
- aclGetName
- aclGetRight
- aclGroupAddACL
- aclGroupAddObject
- aclGroupGetName
- aclGroupList
- aclGroupListACL
- aclGroupListObjects
- aclGroupRemoveACL
- aclGroupRemoveObject
- aclList
- aclListRights
- aclReload
- aclRemoveRight
- aclSave
- aclSetRight
- hasObjectPermissionTo
- isObjectInACLGroup