diff --git a/core/smn_player.cpp b/core/smn_player.cpp index 78646639..1b78a11d 100644 --- a/core/smn_player.cpp +++ b/core/smn_player.cpp @@ -259,7 +259,7 @@ static cell_t SetUserAdmin(IPluginContext *pContext, const cell_t *params) { return pContext->ThrowNativeError("Client %d is not connected", client); } - if (!g_Admins.IsValidAdmin(params[2])) + if (!g_Admins.IsValidAdmin(params[2]) && id != INVALID_ADMIN_ID) { return pContext->ThrowNativeError("AdminId %x is invalid", params[2]); }