AR/aclDestroy: Difference between revisions
Jump to navigation
Jump to search
(Created page with "__NOTOC__ {{Server function}} <!-- Describe in plain english what this function does. Don't go into details, just give an overview --> هذه الوظيفة يقوم ب حذف ...") |
mNo edit summary |
||
(2 intermediate revisions by one other user not shown) | |||
Line 2: | Line 2: | ||
{{Server function}} | {{Server function}} | ||
<!-- Describe in plain english what this function does. Don't go into details, just give an overview --> | <!-- Describe in plain english what this function does. Don't go into details, just give an overview --> | ||
هذه الوظيفة | (MultiTheftAuto\server\mods\deathmatch) الموجود في "acl.xml" من ملف "ACL" تقوم هذه الوظيفة بحذف | ||
==تركيب الجملة(الوظيفة)== | ==تركيب الجملة(الوظيفة)== | ||
<!-- NOTE: don't use 'special' names for variable names, e.g. you shouldn't be writing things like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents the syntax highlighting being odd --> | <!-- NOTE: don't use 'special' names for variable names, e.g. you shouldn't be writing things like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents the syntax highlighting being odd --> | ||
Line 11: | Line 12: | ||
===Required Arguments=== | ===Required Arguments=== | ||
<!-- List each argument one per line. This should be the argument's name as in the argument list above, NOT the argument's data type --> | <!-- List each argument one per line. This should be the argument's name as in the argument list above, NOT the argument's data type --> | ||
*'''theACL:''' | *'''theACL:''' إسم الأسل الذي تريد حذفه | ||
==مثال== | ==مثال== | ||
Line 35: | Line 36: | ||
addCommandHandler ( "deleteACL", deleteSomeACL ) --Add the commandhandler | addCommandHandler ( "deleteACL", deleteSomeACL ) --Add the commandhandler | ||
</syntaxhighlight> | </syntaxhighlight> | ||
تمت إعادة الترجمة من قبل : '''^iiEcoo'x_)''' | |||
==شاهد ايضا== | ==شاهد ايضا== | ||
<!-- Change FunctionArea to the area that this function is in on the main function list page, e.g. Server, Player, Vehicle etc --> | <!-- Change FunctionArea to the area that this function is in on the main function list page, e.g. Server, Player, Vehicle etc --> | ||
{{ACL_functions}} | {{AR/ACL_functions}} | ||
[[ar:aclDestroy]] | |||
[[en:AclDestroy]] | |||
[[zh-cn:AclDestroy]] |
Latest revision as of 18:15, 21 February 2021
(MultiTheftAuto\server\mods\deathmatch) الموجود في "acl.xml" من ملف "ACL" تقوم هذه الوظيفة بحذف
تركيب الجملة(الوظيفة)
bool aclDestroy ( acl theACL )
Required Arguments
- theACL: إسم الأسل الذي تريد حذفه
مثال
في هذا مثال اذا كتبت امر في كونسل (اف8) يقوم ب حذف الصلاحية من ACL :
function deleteSomeACL ( thePlayer, cmdname, theACL ) if aclGet ( theACL ) then --يتحقق اذا كان الصلاحية موجود في ACL --واذا لم يكن موجود local deleted = aclDestroy ( theACL ) --نقوم ب محاولة حذف الصلاحية من ACL if deleted then --نتحقق اذا تم حذف الصلاحية من ACL --نرسل له في الشات انه تم حذف الصلاحية بنجاح outputChatBox ( "ACL " ..theACL.. " Succesfully removed!", thePlayer ) else --واذا كان يوجد خطأ --اذا كان يوجد خطأ اثناء الازالة outputChatBox ( "Error while removing ACL " ..theACL.. "!", thePlayer ) end else --وهنا يعطيه خطأ ب ان الصلاحية غير موجودة او تم حذفه من قبل outputChatBox ( "Error: Invalid ACL Name specified, or the ACL doesn't exist.", thePlayer ) end end addCommandHandler ( "deleteACL", deleteSomeACL ) --Add the commandhandler
تمت إعادة الترجمة من قبل : ^iiEcoo'x_)
شاهد ايضا
- aclCreate
- aclCreateGroup
- aclDestroy
- aclDestroyGroup
- aclGet
- aclGetGroup
- aclGetName
- aclGetRight
- aclGroupList
- aclGroupAddACL
- aclGroupAddObject
- aclGroupGetName
- aclGroupListACL
- aclGroupListObjects
- aclGroupRemoveACL
- aclGroupRemoveObject
- aclList
- aclListRights
- aclReload
- aclRemoveRight
- aclSave
- aclSetRight
- hasObjectPermissionTo