! - . . , , . , , , (, ) . !



" LEAGUE"
VK: vk.com/sergey68

76890 - 1000,46860 - 500, 300
** V.I.P --> **

: /gzcolor

1 7 7

  1. #1

      Seeka

    :
    :14.12.2018
    :42
    :0 [+/-] 

    /gzcolor

    , ,
    , , ID 54, 55
    -

    CMD:gzcolor(playerid, params[])
    {
    if(GetPlayerAdminEx(playerid) < 4) return 1;

    extract params -> new gang_id; else return SendClientMessage(playerid, 0xCECECEFF, ": /gzcolor [id ] (0- , 1-Grove Gang, 2-Vagos Gang, 3-Ballas Gang, 4-Aztecas Gang)");

    if(!(0 <= gang_id <= 4))
    return SendClientMessage(playerid, 0xCECECEFF, ": 0- , 1-Grove Gang, 2-Vagos Gang, 3-Ballas Gang, 4-Aztecas Gang");

    new gang_zone_id;

    for(new idx; idx < g_gangzone_loaded; idx ++)
    {
    if(!IsPlayerInDynamicArea(playerid, GetGangZoneData(idx, GZ_AREA))) continue;

    gang_zone_id = idx;
    break;
    }

    if(gang_zone_id == 1)
    return SendClientMessage(playerid, 0xCECECEFF, " ");

    SetGangZoneData(gang_zone_id, GZ_GANG, gang_id);
    SaveGangZone(gang_zone_id);

    GangZoneShowForAll(GetGangZoneData(gang_zone_id, GZ_ZONE), gang_zone_colors[ GetGangZoneData(gang_zone_id, GZ_GANG) ]);

    new fmt_text[75];

    SendClientMessage(playerid, -1, " , ");

    format(fmt_text, sizeof fmt_text, "[A] %s[%d] %d %d", GetPlayerNameEx(playerid), playerid, gang_zone_id, gang_id);
    SendMessageToAdmins(fmt_text, 0xCECECEFF);

    format(fmt_text, sizeof fmt_text, " %d %d", gang_zone_id, gang_id);
    SendLog(playerid, LOG_TYPE_ADMIN_ACTION, fmt_text);

    return 1;
    }
    []
  2. #2

      igor_chupin

    :
    :03.03.2012
    :, .
    :595
    :289 [+/-] 
    SetGangZoneData(gang_zone_id, GZ_GANG, gang_id);
    SaveGangZone(gang_zone_id);

  3. #3

      Seeka

    :
    :14.12.2018
    :42
    :0 [+/-] 

    public: LoadGangZones()
    {
    new idx;
    new Cache: result, rows;

    result = mysql_query(mysql, "SELECT * FROM gangzone", true);
    rows = cache_num_rows();

    if(rows > MAX_GZ)
    {
    rows = MAX_GZ;
    print("[GangZones]: DB rows > MAX_GZ");
    }

    if(rows)
    {
    for(idx = 0; idx < rows; idx ++)
    {
    SetGangZoneData(idx, GZ_MIN_X, cache_get_field_content_float(idx, "min_x"));
    SetGangZoneData(idx, GZ_MIN_Y, cache_get_field_content_float(idx, "min_y"));
    SetGangZoneData(idx, GZ_MAX_X, cache_get_field_content_float(idx, "max_x"));
    SetGangZoneData(idx, GZ_MAX_Y, cache_get_field_content_float(idx, "max_y"));

    SetGangZoneData(idx, GZ_GANG, cache_get_field_content_int(idx, "fraction"));

    // ----------------------------------------------------------------------------------
    gangzone[idx][GZ_ZONE] = GangZoneCreate
    (
    GetGangZoneData(idx, GZ_MIN_X),
    GetGangZoneData(idx, GZ_MIN_Y),
    GetGangZoneData(idx, GZ_MAX_X),
    GetGangZoneData(idx, GZ_MAX_Y)
    );

    // ----------------------------------------------------------------------------------
    gangzone[idx][GZ_AREA] = CreateDynamicRectangle
    (
    GetGangZoneData(idx, GZ_MIN_X),
    GetGangZoneData(idx, GZ_MIN_Y),
    GetGangZoneData(idx, GZ_MAX_X),
    GetGangZoneData(idx, GZ_MAX_Y)
    );
    }
    }

    g_gangzone_loaded = rows;
    cache_delete(result);

    printf("[GangZones]: : %d", g_gangzone_loaded);
    }
    []


    stock SaveGangZone(idx)
    {
    new query[55];

    mysql_format(mysql, query, sizeof query, "UPDATE gangzone SET fraction=%d WHERE id=%d", GetGangZoneData(idx, GZ_GANG), idx + 1);
    mysql_query(mysql, query, false);
    }
    []


    #define GetGangZoneData(%0,%1) gangzone[%0][%1]
    #define SetGangZoneData(%0,%1,%2) gangzone[%0][%1] = %2
  4. #4

      Seeka

    :
    :14.12.2018
    :42
    :0 [+/-] 
    ,
  5. #5

      bogdasha12

    :
    :01.02.2019
    :71
    :-1 [+/-] 
    idx +1, +1.
  6. #6

      Seeka

    :
    :14.12.2018
    :42
    :0 [+/-] 
  7. #7

      bogdasha12

    :
    :01.02.2019
    :71
    :-1 [+/-] 
    -1.

, : 11

/gzcolor, , , , , action, , , , , cmd, , gang, gangzone, , , , message, , params, playerid, text, type, vagos, zone

(, , , , , ), , .
!
samp-rp advanvce pawn s0beit cs 1.6 0.3x World of Tanks samp-rp, samp-rp, - PAWNO SA-MP IV-MP MTA cleo s0beit sobeit sa-mp sa-mp pawno pawno pawno iv-mp iv-mp iv-mp godfather SAMP gta 4 4 GTA 4 GTA 4 GTA 4 SAMP SAMP Pen1 LS Pen1 Fugitive The Godfather rp roleplay samp-rp sa-mp sa-mp pawno gta-iv gta-v gta-sa gta-3 gta-III gta-4 gta-5 gta-vc mta mta-dm mta-race mta-sa pawno info ru pawno pawno gta-iv gta-iv gta-v gta-v gta-iv keygen gta sa gta 4 multiplayer gta san adnreas multiplayer sa-mp forum sa-mp pawno sa-mp pawno sa-mp gta-sa pawno pawno errors sa-mp 0.3c SA-MP 0.3d 4 GTA 4 GTA 4 GTA 4 SAMP SAMP Pen1 LS Pen1 Fugitive The Godfather SAMP hack rat android instagram twitter ddos root linux ubuntu mac android advance arizona 4g