---
title: "OnPlayerEnterGangZone | open.mp"
description: "This callback is called when a player enters a gangzone"
canonical: https://omp.itsneufox.com/ro/docs/scripting/callbacks/OnPlayerEnterGangZone
language: ro
---

# OnPlayerEnterGangZone

warning

This callback was added in omp v1.1.0.2612 and will not work in earlier versions!

## Description

This callback is called when a player enters a gangzone

| Name | Description |
| --- | --- |
| playerid | The ID of the player that entered the gangzone. |
| zoneid | The ID of the gangzone the player entered. |

## Returns

It is always called first in gamemode.

## Examples

```c
public OnPlayerEnterGangZone(playerid, zoneid)
{
    new string[128];
    format(string, sizeof(string), "You are entering gangzone %i", zoneid);
    SendClientMessage(playerid, 0xFFFFFFFF, string);
    return 1;
}
```

## Related Callbacks

The following callbacks might be useful, as they're related to this callback in one way or another.

-   [OnPlayerLeaveGangZone](https://omp.itsneufox.com/ro/docs/scripting/callbacks/OnPlayerLeaveGangZone): This callback is called when a player exited a gangzone.

## Related Functions

The following functions might be useful, as they're related to this callback in one way or another.

-   [GangZoneCreate](https://omp.itsneufox.com/ro/docs/scripting/functions/GangZoneCreate): Create a gangzone (colored radar area).
-   [GangZoneDestroy](https://omp.itsneufox.com/ro/docs/scripting/functions/GangZoneDestroy): Destroy a gangzone.
-   [UseGangZoneCheck](https://omp.itsneufox.com/ro/docs/scripting/functions/UseGangZoneCheck): Enables the callback when a player entered this zone.
