پرش به مطلب اصلی

PlayerGangZoneGetColour

هشدار

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

توضیحات

رنگ player gangzone را می‌گیرد.

نامتوضیحات
playeridID بازیکنی که player gangzone به آن متصل است.
zoneidID player gangzone.

مقدار بازگشتی

رنگ player gangzone.

0: اجرای تابع ناموفق بود. player gangzone برای بازیکن نمایش داده نشده.

مثال‌ها

new gGangZoneID[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
// Create the gangzone
gGangZoneID[playerid] = CreatePlayerGangZone(playerid, 2236.1475, 2424.7266, 2319.1636, 2502.4348);

// Show the gangzone to player
PlayerGangZoneShow(playerid, gGangZoneID[playerid], 0xFF0000FF);

new colour = PlayerGangZoneGetColour(playerid, gGangZoneID[playerid]);
// colour = 0xFF0000FF
return 1;
}

توابع مرتبط