跳到主要内容

GangZoneShowForAll

描述

为所有玩家显示指定颜色的帮派区域。

参数名说明
zoneid要显示的帮派区域 ID(由GangZoneCreate创建返回)
colour显示颜色(RGBA 格式的整型或十六进制值,支持透明度通道)

返回值

1:函数执行成功。帮派区域已对所有玩家显示。

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

示例

new gGangZoneId;

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

public OnPlayerSpawn(playerid)
{
if (IsPlayerAdmin(playerid))
{
GangZoneShowForAll(gGangZoneId, 0xFF0000FF);
}
return 1;
}

相关函数