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

# OnPlayerLeavePlayerGangZone

warnung

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

## Description

This callback is called when a player exited a player gangzone.

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

## Returns

It is always called first in gamemode.

## Examples

```c
public OnPlayerLeavePlayerGangZone(playerid, zoneid)
{
    new string[128];
    format(string, sizeof(string), "You are leaving player 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.

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

## Related Functions

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

-   [CreatePlayerGangZone](https://omp.itsneufox.com/de/docs/scripting/functions/CreatePlayerGangZone): Create player gangzone.
-   [PlayerGangZoneDestroy](https://omp.itsneufox.com/de/docs/scripting/functions/PlayerGangZoneDestroy): Destroy player gangzone.
-   [UsePlayerGangZoneCheck](https://omp.itsneufox.com/de/docs/scripting/functions/UsePlayerGangZoneCheck): Enables the callback when a player exited this zone.
