---
title: "RemoveServerRule | open.mp"
description: "移除服务器规则"
canonical: https://omp.itsneufox.com/zh-CN/docs/scripting/functions/RemoveServerRule
language: zh-CN
---

# RemoveServerRule

注意

这个函数是在omp v1.1.0.2612中添加的，在以前的版本中不起作用！

## 描述

移除指定的服务器规则。

| 参数 | 说明 |
| --- | --- |
| const rule\[\] | 要移除的服务器规则名称 |

## 返回值

成功执行返回 true，否则返回 false。

## 示例

```c
RemoveServerRule("rule");
```

## 相关函数

-   [AddServerRule](https://omp.itsneufox.com/zh-CN/docs/scripting/functions/AddServerRule): 添加服务器规则
-   [IsValidServerRule](https://omp.itsneufox.com/zh-CN/docs/scripting/functions/IsValidServerRule): 验证服务器规则是否有效
