Plugin who ban Superadmins As Owner+Forum Team |
Здравствуйте, гость Вход | Регистрация
Наши новости:
|
|
|
Plugin who ban Superadmins As Owner+Forum Team |
Infamous2017
|
5.8.2017, 11:17
Сообщение
|
|
|
Wow thx it works... Is there a way to say me the self thing for kick/slay/teamtransfer maybe? :/
|
|
|
|
JIuXeP
|
8.8.2017, 16:54
Сообщение
|
![]() |
For this you need to make changes to these files:
include/amxmisc.inc In this file you need to find the code: Код:
if ((get_user_flags(player) & ADMIN_IMMUNITY) && ((flags & CMDTARGET_ALLOW_SELF) ? (id != player) : true))And replace it with: Код: if (((get_user_flags(player) & ADMIN_IMMUNITY) && !(get_user_flags(id) & (ADMIN_RCON|ADMIN_LEVEL_G)) || (get_user_flags(player) & (ADMIN_RCON|ADMIN_LEVEL_G))) && ((flags & CMDTARGET_ALLOW_SELF) ? (id != player) : true)) This change is suitable for all amxmodx plugins where the cmd_target function with the CMDTARGET_OBEY_IMMUNITY flag is used. For example, the standard amxmodx plugins: admincmd and adminvote. At will, you can recompile them all. plmenu.sma Everywhere to find and replace this code: Код:
access(i, ADMIN_IMMUNITY) && i != idTo: Код: (access(i, ADMIN_IMMUNITY) && !access(id, ADMIN_RCON|ADMIN_LEVEL_G) || access(i, ADMIN_RCON|ADMIN_LEVEL_G)) && i != id Then you need to recompile the admincmd and plmenu plugins (for your task). Ask your questions better in the English-language support forum: http://forums.alliedmods.net
Отредактировал: JIuXeP, - 8.8.2017, 17:09
|
Поблагодарили 1 раз
|
|
Infamous2017
|
8.8.2017, 19:41
Сообщение
|
|
|
YOU are the best. really thx :)
|
|
|
|
![]() ![]() |