跳到主要內容

OnPlayerLeavePlayerGangZone

注意

此函式於 omp v1.1.0.2612 版本中新增,在更早的版本中無法使用!

Description​

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

NameDescription
playeridThe ID of the player that exited the player gangzone.
zoneidThe ID of the player gangzone the player exited.

Returns​

It is always called first in gamemode.

Examples​

public OnPlayerLeavePlayerGangZone(playerid, zoneid)
{
new string[128];
format(string, sizeof(string), "You are leaving player gangzone %i", zoneid);
SendClientMessage(playerid, 0xFFFFFFFF, string);
return 1;
}

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

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