#1

Hello, by following a tutorial i made a zone system which i'll improve.

I wanna ask something, i have this const to create zones:

pawn Код:
new const gCaptureZone[][e_CAPTURE_ZONE] =
{
    {"Snake Farm",      {-62.5000000000005,2318.359375, 23.4375,2390.625},{-36.5458, 2347.6426, 24.1406},       2},
    {"Fishing Area",    {210.2018, 2849.402, 303.6248, 2931.147},       {257.1011,2890.2222,11.3209},           2},
    {"Area 51",         {-46.875,1697.265625, 423.828125,2115.234375},  {254.4592,1802.8997,7.4285},            2},
    {"Come-A-Lot",      {-617.1875,2531.25, -455.078125,2658.203125},   {-551.6992,2593.0771,53.9348},          2},
    {"Oil Canary",      {95.703125,1339.84375, 287.109375,1484.375},    {221.0856,1422.6615,10.5859},           2},
    {"Oil Factory",     {529.296875,1205.078125, 636.71875,1267.578125},{558.9932,1221.8896,11.7188},           2},
    {"Quarry",          {439.453125,748.046875, 863.28125,992.1875},    {588.3246,875.7402,-42.4973},           2},
    {"Army Restaurant", {-357.421875,1707.03125, -253.90625,1835.9375}, {-314.8433,1773.9176,43.6406},          2},
    {"Big Ear",         {-437.5,1513.671875, -244.140625,1636.71875},   {-311.0136,1542.9733,75.5625},          2},
    {"Desert Airport"{46.7115, 2358.931, 490.4708, 2604.166},        {406.1056,2456.0640,16.5000},           2},
    {"The Hospital",    {966.796875,972.65625, 1166.015625,1160.15625}, {1044.83008, 1013.94354, 10.19003},     2},
    {"Airport",         {1230.46875,1142.578125, 1640.625,1798.828125}, {1603.51587, 1178.88391, 13.41670},     2},
    {"Ammu-Nation",     {-351.5625,811.5234375, -284.1796875,884.765625},{-315.79111, 834.14001, 13.44070},     2},
    {"Jay's Diner",     {-1964.84375,2328.125, -1906.25,2402.34375},    {-1940.30542, 2380.05981, 48.99673},    2},
    {"Broken Bridge",   {-1464.84375,679.6875, -1074.21875,1148.4375},  {-1341.66602, 885.54590, 35.29177},     2},
    {"The Smuggler's ship",{-1511.71875,437.5, -1226.5625,527.34375},   {-1346.17224, 492.02451, 10.39430},     2},
    {"Fuel Station",    {-1500,1851.5625, -1468.75,1878.90625},         {-1471.26392, 1862.32068, 31.83293},    2},
    {"Cluckin Bell",    {-1230.46875,1789.0625, -1175.78125,1839.84375},{-1212.40698, 1831.70020, 41.23455},    2},
    {"Missile Factory", {-476.5625,2195.3125, -351.5625,2277.34375},    {-427.48999, 2205.93652, 41.53221},     2},
    {"Gas station",     {542.96875 , 1632.8125, 687.5 , 1750.0},        {670.12445, 1703.94055, 6.38832},       2},
    {"Abandoned Ship",  {-1480.46875,1476.5625, -1332.03125,1519.53125},{-1435.59998, 1480.19714, 1.04882},     2},
    {"The Villa",       {-718.75,917.96875, -644.53125,976.5625},       {-688.13782, 936.66589, 13.04289},      2},
    {"Cabin house",     {-946.2890625,1415.0390625, -928.7109375,1435.546875},{-1052.63696, 1547.54651, 32.64770}, 2},
    {"Cargo Ship",      {-2531.25,1526.3671875, -2288.0859375,1596.6796875},{-2474.13135, 1548.24231, 32.42630}, 2},
    {"Veen's Bait Shop",{-1371.09375,2050.78125, -1345.3125,2067.1875}, {-1353.93994, 2057.31470, 52.31471},    2},
    {"Abandoned City",  {-1364.0625,2505.46875, -1256.25,2568.75},      {-1303.56567, 2533.47437, 87.04325},    2},
    {"Rocket site",     {-843.75,2371.875, -728.90625,2453.90625},      {-797.59857, 2415.76099, 156.04553},    2}
};
And i wanted to do something like random zone bonus...like..capture "Snake Farm" and get +50.000$ or something.

How to?
Reply
#2

Make another const with another zones (the bonus zones) and when a player capture a different zone (not from the bonus zones, because that zones i think u want to be hidden till the player capture the simple zone) send a message to him that if he go to the new zone that appeared on map he will receive that. If i were you i'll create a zone just for that player after he captured the simple zone. And after he captured the bonus zone i'll destroy it.
Reply
#3

Thanks for the tips but no, i don't wanna do in that way.

I wanted to make a timer every 5 minutes which will loop on that const and will set a random zone as a bonus zone, i need to do in this way.
Reply
#4

Bump
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)