---
title: "GangZoneGetColourForPlayer | open.mp"
description: "获取玩家帮派区域的颜色"
canonical: https://omp.itsneufox.com/zh-CN/docs/scripting/functions/GangZoneGetColourForPlayer
language: zh-CN
---

# GangZoneGetColourForPlayer

注意

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

## 描述

获取指定玩家帮派区域的当前颜色。

| 参数 | 说明 |
| --- | --- |
| playerid | 目标玩家 ID |
| zoneid | 帮派区域 ID |

## 返回值

返回玩家帮派区域的 RGBA 颜色值。

**0:** 函数执行失败。该帮派区域未对玩家显示。

## 相关函数

-   [GangZoneDestroy](https://omp.itsneufox.com/zh-CN/docs/scripting/functions/GangZoneDestroy): 销毁帮派区域
-   [GangZoneShowForPlayer](https://omp.itsneufox.com/zh-CN/docs/scripting/functions/GangZoneShowForPlayer): 为玩家显示帮派区域
-   [GangZoneShowForAll](https://omp.itsneufox.com/zh-CN/docs/scripting/functions/GangZoneShowForAll): 为所有玩家显示帮派区域
-   [GangZoneHideForPlayer](https://omp.itsneufox.com/zh-CN/docs/scripting/functions/GangZoneHideForPlayer): 为玩家隐藏帮派区域
-   [GangZoneHideForAll](https://omp.itsneufox.com/zh-CN/docs/scripting/functions/GangZoneHideForAll): 为所有玩家隐藏帮派区域
-   [GangZoneFlashForPlayer](https://omp.itsneufox.com/zh-CN/docs/scripting/functions/GangZoneFlashForPlayer): 使帮派区域对玩家闪烁
-   [GangZoneFlashForAll](https://omp.itsneufox.com/zh-CN/docs/scripting/functions/GangZoneFlashForAll): 使帮派区域对所有玩家闪烁
-   [GangZoneStopFlashForPlayer](https://omp.itsneufox.com/zh-CN/docs/scripting/functions/GangZoneStopFlashForPlayer): 停止帮派区域对玩家闪烁
-   [GangZoneStopFlashForAll](https://omp.itsneufox.com/zh-CN/docs/scripting/functions/GangZoneStopFlashForAll): 停止帮派区域对所有玩家闪烁
-   [IsValidGangZone](https://omp.itsneufox.com/zh-CN/docs/scripting/functions/IsValidGangZone): 检查帮派区域是否有效
-   [IsPlayerInGangZone](https://omp.itsneufox.com/zh-CN/docs/scripting/functions/IsPlayerInGangZone): 检查玩家是否在帮派区域内
-   [IsGangZoneVisibleForPlayer](https://omp.itsneufox.com/zh-CN/docs/scripting/functions/IsGangZoneVisibleForPlayer): 检查帮派区域对玩家是否可见
