---
title: "OnPlayerClickGangZone | open.mp"
description: "当玩家在暂停菜单地图上右键点击帮派区域时触发此回调"
canonical: https://omp.itsneufox.com/zh-CN/docs/scripting/callbacks/OnPlayerClickGangZone
language: zh-CN
---

# OnPlayerClickGangZone

注意

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

## 描述

当玩家在暂停菜单地图上右键点击帮派区域时触发此回调。

| 参数 | 说明 |
| --- | --- |
| playerid | 点击帮派区域的玩家ID |
| zoneid | 被点击的帮派区域ID |

## 返回值

此回调不处理返回值。

此回调在游戏模式中总是优先触发。

## 示例

```c
public OnPlayerClickGangZone(playerid, zoneid)
{
    new string[128];
    format(string, sizeof(string), "你点击了帮派区域 %i", zoneid);
    SendClientMessage(playerid, 0xFFFFFFFF, string);
    return 1;
}
```

## 相关函数

以下函数可能与当前回调相关：

-   [GangZoneCreate](https://omp.itsneufox.com/zh-CN/docs/scripting/functions/GangZoneCreate)：创建帮派区域（彩色雷达区域）
-   [GangZoneDestroy](https://omp.itsneufox.com/zh-CN/docs/scripting/functions/GangZoneDestroy)：销毁帮派区域
