跳到主要内容

GangZoneShowForPlayer

描述

为指定玩家显示帮派区域。需预先使用GangZoneCreate创建。

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

返回值

显示成功返回1,否则返回0(帮派区域不存在)

示例

new gGangZoneId;

public OnGameModeInit()
{
gGangZoneId = GangZoneCreate(1082.962, -2787.229, 2942.549, -1859.51);
return 1;
}

public OnPlayerSpawn(playerid)
{
GangZoneShowForPlayer(playerid, gGangZoneId, 0xFFFF0096);
return 1;
}

相关函数