跳到主要内容

GangZoneStopFlashForAll

描述

停止指定帮派区域对所有玩家的闪烁效果。

参数名说明
zoneid要停止闪烁的区域 ID(由 GangZoneCreate 创建返回)

返回值

1: 函数执行成功(即使该区域原本未处于闪烁状态也会返回成功)

0: 函数执行失败(指定的帮派区域不存在)

示例

new gGangZoneId;

public OnGameModeInit()
{
gGangZoneId = GangZoneCreate(1248.011, 2072.804, 1439.348, 2204.319);
return 1;
}

public OnPlayerDeath(playerid, killerid, WEAPON:reason)
{
GangZoneFlashForAll(gGangZoneId, COLOR_RED);
return 1;
}

public OnPlayerSpawn(playerid)
{
GangZoneStopFlashForAll(gGangZoneId);
return 1;
}

相关函数