mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-06 16:33:21 +00:00
L4D2FFKickProtection: Add admin checks
This commit is contained in:
parent
4c667b5ec0
commit
17c20dff83
2 changed files with 1 additions and 1 deletions
Binary file not shown.
|
@ -74,7 +74,7 @@ public Action VoteStart(int client, const char[] command, int argc) {
|
||||||
int target = GetClientOfUserId(StringToInt(option));
|
int target = GetClientOfUserId(StringToInt(option));
|
||||||
AdminId callerAdmin = GetUserAdmin(client);
|
AdminId callerAdmin = GetUserAdmin(client);
|
||||||
AdminId targetAdmin = GetUserAdmin(target);
|
AdminId targetAdmin = GetUserAdmin(target);
|
||||||
if (GetAdminImmunityLevel(targetAdmin) >= GetAdminImmunityLevel(callerAdmin)) {
|
if (targetAdmin != INVALID_ADMIN_ID && callerAdmin != INVALID_ADMIN_ID && GetAdminImmunityLevel(targetAdmin) >= GetAdminImmunityLevel(callerAdmin)) {
|
||||||
PrintToChat(target, "%N attempted to vote kick you!", client);
|
PrintToChat(target, "%N attempted to vote kick you!", client);
|
||||||
return Plugin_Handled;
|
return Plugin_Handled;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue