XADRENALINEIX

HuN's Treasure Hunts

Jul 6th, 2013
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 31.32 KB | None | 0 0
  1. //////////////////////////Treasure Hunt 1STGEN//////////////////////////////
  2. //Core
  3. #include <natives.h>
  4. #include <common.h>
  5. #include <strings.h>
  6. #include <types.h>
  7. #include <consts.h>
  8.  
  9. // variables
  10. Pickup cash;
  11. Blip hunt;
  12. uint hint = 0;
  13. uint C;
  14. uint cashInt = 0;
  15. uint bcolor[8];
  16. uint R[8], G[8], B[8];
  17.  
  18. void InitBlipColors(void)
  19. {      
  20.     bcolor[0] = 11;
  21.     bcolor[1] = 7;
  22.     bcolor[2] = 6;
  23.     bcolor[3] = 8;
  24.     bcolor[4] = 19;
  25.     bcolor[5] = 22;
  26.     bcolor[6] = 26;
  27.     bcolor[7] = 12;
  28. }
  29.  
  30. void InitRGB(void)
  31. {
  32.     R[0] = 61, G[0] = 166, B[0] = 235;
  33.     R[1] = 128, G[1] = 0, B[1] = 210;
  34.     R[2] = 230, G[2] = 110, B[2] = 0;
  35.     R[3] = 9, G[3] = 175, B[3] = 0;
  36.     R[4] = 155, G[4] = 232, B[4] = 142;
  37.     R[5] = 255, G[5] = 255, B[5] = 75;
  38.     R[6] = 180, G[6] = 29, B[6] = 0;
  39.     R[7] = 255, G[7] = 0, B[7] = 255;
  40. }
  41.  
  42. // Display Text Shortcut
  43. void Print(char *string)
  44. {
  45.     PRINT_STRING_WITH_LITERAL_STRING_NOW("STRING", string, 3000, 1);
  46. }
  47.  
  48. // add arrow blip shortcut
  49. void BlipSet(void)
  50. {
  51.     GENERATE_RANDOM_INT_IN_RANGE(0, 8, &C);
  52.     ADD_BLIP_FOR_PICKUP(cash, &hunt);
  53.     CHANGE_BLIP_COLOUR(hunt, bcolor[C]);
  54.     CHANGE_BLIP_DISPLAY(hunt, 1);
  55.     cashInt = 1;
  56. }
  57.  
  58. // remove blip & pickup shortcut
  59. void RemoveBP(void)
  60. {
  61.     REMOVE_PICKUP(cash);
  62.     REMOVE_BLIP(hunt);
  63.     cashInt = 0;
  64. }
  65.  
  66. // manage hunt
  67. void TreasureHunt(void)
  68. {
  69.     if(IS_PLAYER_PLAYING(GetPlayerIndex()))
  70.     {
  71.         if(hint == 0)
  72.         {
  73.             Print("Welcome to Liberty City 1st Edition Treasure Hunt !");
  74.             WAIT(3200);
  75.             Print("You Could Win 2000 $ in Prize !");
  76.             WAIT(3200);
  77.             Print("Just Follow The Hints and Try to Find All Hidden Money Stacks");
  78.             WAIT(3200);
  79.             Print("Do You Know Liberty City Well Enuff ?");
  80.             WAIT(3200);
  81.             Print("We Shall See , Let The Hunt Begin !");
  82.             WAIT(3200);
  83.             hint = 1;
  84.         }
  85.         else if(hint == 1 )
  86.         {
  87.             if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
  88.             {
  89.                 CREATE_MONEY_PICKUP(675.2327, -334.3806, 9.8782, 50, TRUE, &cash);
  90.                 BlipSet();
  91.             }
  92.             else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
  93.             {
  94.                 Print("Hint # 1 : EAST HOOK , PLATYPUS ");
  95.                 DRAW_CHECKPOINT_WITH_ALPHA(675.2327, -334.3806, 8.8782, 1.0, R[C], G[C], B[C], 150);
  96.             }
  97.             else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
  98.             {
  99.                 Print("Treasure # 1 Collected");
  100.                 RemoveBP();
  101.                 hint = 2;
  102.                 WAIT(3000);
  103.             }  
  104.         }
  105.         else if(hint == 2 )
  106.         {
  107.             if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
  108.             {
  109.                 CREATE_MONEY_PICKUP(476.4387, 1275.7642, 48.4506, 50, TRUE, &cash);
  110.                 BlipSet();
  111.             }
  112.             else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
  113.             {
  114.                 Print("Hint # 2 : SOUTH BOHAN , CONSTRUCTION SITE");
  115.                 DRAW_CHECKPOINT_WITH_ALPHA(476.4387, 1275.7642, 47.4506, 1.0, R[C], G[C], B[C], 150);
  116.             }
  117.             else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
  118.             {
  119.                 Print("Treasure # 2 Collected");
  120.                 RemoveBP();
  121.                 hint = 3;
  122.                 WAIT(3000);
  123.             }
  124.         }
  125.         else if(hint == 3 )
  126.         {
  127.             if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
  128.             {
  129.                 CREATE_MONEY_PICKUP(415.6917, -505.8639, 17.6852, 50, TRUE, &cash);
  130.                 BlipSet();
  131.             }
  132.             else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
  133.             {
  134.                 Print("Hint # 3 : FISHMARKET SOUTH , PIER 45");
  135.                 DRAW_CHECKPOINT_WITH_ALPHA(415.6917, -505.8639, 16.6852, 1.0, R[C], G[C], B[C], 150);
  136.             }
  137.             else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
  138.             {
  139.                 Print("Treasure # 3 Collected");
  140.                 RemoveBP();
  141.                 hint = 4;
  142.                 WAIT(3000);
  143.             }
  144.         }
  145.         else if(hint == 4)
  146.         {
  147.             if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
  148.             {
  149.                 CREATE_MONEY_PICKUP(-1317.7400, 271.6539, 10.7546, 50, TRUE, &cash);
  150.                 BlipSet();
  151.             }
  152.             else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
  153.             {
  154.                 Print("Hint # 4 : PORT TUDOR , AXELS P&S");
  155.                 DRAW_CHECKPOINT_WITH_ALPHA(-1317.7400, 271.6539, 9.7546, 1.0, R[C], G[C], B[C], 150);
  156.             }
  157.             else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
  158.             {
  159.                 Print("Treasure # 4 Collected");
  160.                 RemoveBP();
  161.                 hint = 5;
  162.                 WAIT(3000);
  163.             }
  164.         }
  165.         else if(hint == 5)
  166.         {
  167.             if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
  168.             {
  169.                 CREATE_MONEY_PICKUP(76.6436, 578.2216, 18.6348, 50, TRUE, &cash);
  170.                 BlipSet();
  171.             }
  172.             else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
  173.             {
  174.                 Print("Hint # 5 : HATTON GARDENS , JERKOV'S");
  175.                 DRAW_CHECKPOINT_WITH_ALPHA(76.6436, 578.2216, 17.6348, 1.0, R[C], G[C], B[C], 150);
  176.             }
  177.             else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
  178.             {
  179.                 Print("Treasure # 5 Collected");
  180.                 RemoveBP();
  181.                 hint = 6;
  182.                 WAIT(3000);
  183.             }
  184.         }
  185.         else if(hint == 6)
  186.         {
  187.             if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
  188.             {
  189.                 CREATE_MONEY_PICKUP(-930.3932, 241.9762, 8.7586, 50, TRUE, &cash);
  190.                 BlipSet();
  191.             }
  192.             else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
  193.             {
  194.                 Print("Hint # 6 : PORT TUDOR , OCTOPUS");
  195.                 DRAW_CHECKPOINT_WITH_ALPHA(-930.3932, 241.9762, 7.7586, 1.0, R[C], G[C], B[C], 150);
  196.             }
  197.             else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
  198.             {
  199.                 Print("Treasure # 6 Collected");
  200.                 RemoveBP();
  201.                 hint = 7;
  202.                 WAIT(3000);
  203.             }
  204.         }
  205.         else if(hint == 7)
  206.         {
  207.             if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
  208.             {
  209.                 CREATE_MONEY_PICKUP(1445.6392, 13.0456, 31.3368, 50, TRUE, &cash);
  210.                 BlipSet();
  211.             }
  212.             else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
  213.             {
  214.                 Print("Hint # 7 : BEECHWOOD CITY , BAY BAR");
  215.                 DRAW_CHECKPOINT_WITH_ALPHA(1445.6392, 13.0456, 30.3368, 1.0, R[C], G[C], B[C], 150);
  216.             }
  217.             else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
  218.             {
  219.                 Print("Treasure # 7 Collected");
  220.                 RemoveBP();
  221.                 hint = 8;
  222.                 WAIT(3000);
  223.             }
  224.         }
  225.         else if(hint == 8)
  226.         {
  227.             if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
  228.             {
  229.                 CREATE_MONEY_PICKUP(429.6284, 227.3253, 14.7194, 50, TRUE, &cash);
  230.                 BlipSet();
  231.             }
  232.             else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
  233.             {
  234.                 Print("Hint # 8 : COLONY ISLAND , SKYCAR LTA");
  235.                 DRAW_CHECKPOINT_WITH_ALPHA(429.6284, 227.3253, 13.7194, 1.0, R[C], G[C], B[C], 150);
  236.             }
  237.             else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
  238.             {
  239.                 Print("Treasure # 8 Collected");
  240.                 RemoveBP();
  241.                 hint = 9;
  242.                 WAIT(3000);
  243.             }
  244.         }
  245.         else if(hint == 9)
  246.         {
  247.             if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
  248.             {
  249.                 CREATE_MONEY_PICKUP(-636.4855, 77.0324, 4.8174, 50, TRUE, &cash);
  250.                 BlipSet();
  251.             }
  252.             else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
  253.             {
  254.                 Print("Hint # 9 : THE MEAT QUARTER , GOLDEN PIER");
  255.                 DRAW_CHECKPOINT_WITH_ALPHA(-636.4855, 77.0324, 3.8174, 1.0, R[C], G[C], B[C], 150);
  256.             }
  257.             else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
  258.             {
  259.                 Print("Treasure # 9 Collected");
  260.                 RemoveBP();
  261.                 hint = 10;
  262.                 WAIT(3000);
  263.             }
  264.         }
  265.         else if(hint == 10)
  266.         {
  267.             if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
  268.             {
  269.                 CREATE_MONEY_PICKUP(-302.6897, 282.2424, 19.9668, 50, TRUE, &cash);
  270.                 BlipSet();
  271.             }
  272.             else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
  273.             {
  274.                 Print("Hint # 10 : STAR JONCTION , MAGIC CURTAIN");
  275.                 DRAW_CHECKPOINT_WITH_ALPHA(-302.6897, 282.2424, 18.9668, 1.0, R[C], G[C], B[C], 150);
  276.             }
  277.             else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
  278.             {
  279.                 Print("Treasure # 10 Collected");
  280.                 RemoveBP();
  281.                 hint = 11;
  282.                 WAIT(3000);
  283.             }
  284.         }
  285.         else if(hint == 11)
  286.         {
  287.             if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
  288.             {
  289.                 CREATE_MONEY_PICKUP(905.6995, 307.7269, 34.1642, 50, TRUE, &cash);
  290.                 BlipSet();
  291.             }
  292.             else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
  293.             {
  294.                 Print("Hint # 11 : ROTTERDAM HILL , CUT AT THE CORNER");
  295.                 DRAW_CHECKPOINT_WITH_ALPHA(905.6995, 307.7269, 33.1642, 1.0, R[C], G[C], B[C], 150);
  296.             }
  297.             else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
  298.             {
  299.                 Print("Treasure # 11 Collected");
  300.                 RemoveBP();
  301.                 hint = 12;
  302.                 WAIT(3000);
  303.             }
  304.         }
  305.         else if(hint == 12)
  306.         {
  307.             if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
  308.             {
  309.                 CREATE_MONEY_PICKUP(1163.0801, -379.2670, 40.4726, 50, TRUE, &cash);
  310.                 BlipSet();
  311.             }
  312.             else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
  313.             {
  314.                 Print("Hint # 12 : HOVE BEACH , CONSTRUCTION SITE");
  315.                 DRAW_CHECKPOINT_WITH_ALPHA(1163.0801, -379.2670, 39.4726, 1.0, R[C], G[C], B[C], 150);
  316.             }
  317.             else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
  318.             {
  319.                 Print("Treasure # 12 Collected");
  320.                 RemoveBP();
  321.                 hint = 13;
  322.                 WAIT(3000);
  323.             }
  324.         }
  325.         else if(hint == 13)
  326.         {
  327.             if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
  328.             {
  329.                 CREATE_MONEY_PICKUP(774.5525, 473.8719, 23.3609, 50, TRUE, &cash);
  330.                 BlipSet();
  331.             }
  332.             else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
  333.             {
  334.                 Print("Hint # 13 : BOABO , TWITCHIN'S SUGAR");
  335.                 DRAW_CHECKPOINT_WITH_ALPHA(774.5525, 473.8719, 22.3609, 1.0, R[C], G[C], B[C], 150);
  336.             }
  337.             else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
  338.             {
  339.                 Print("Treasure # 13 Collected");
  340.                 RemoveBP();
  341.                 hint = 14;
  342.                 WAIT(3000);
  343.             }
  344.         }
  345.         else if(hint == 14)
  346.         {
  347.             if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
  348.             {
  349.                 CREATE_MONEY_PICKUP(-605.9974, -752.9418, 65.9908, 50, TRUE, &cash);
  350.                 BlipSet();
  351.             }
  352.             else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
  353.             {
  354.                 Print("Hint # 14 : HAPPINESS ISLAND , BLOOD PUMP");
  355.                 DRAW_CHECKPOINT_WITH_ALPHA(-605.9974, -752.9418, 64.9908, 1.0, R[C], G[C], B[C], 150);
  356.             }
  357.             else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
  358.             {
  359.                 Print("Treasure # 14 Collected");
  360.                 RemoveBP();
  361.                 hint = 15;
  362.                 WAIT(3000);
  363.             }
  364.         }
  365.         else if(hint == 15)
  366.         {
  367.             if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
  368.             {
  369.                 CREATE_MONEY_PICKUP(-209.0195, 1020.6801, 6.1636, 50, TRUE, &cash);
  370.                 BlipSet();
  371.             }
  372.             else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
  373.             {
  374.                 Print("Hint # 15 : MIDDLE PARK , BOAT RAMP");
  375.                 DRAW_CHECKPOINT_WITH_ALPHA(-209.0195, 1020.6801, 5.1636, 1.0, R[C], G[C], B[C], 150);
  376.             }
  377.             else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
  378.             {
  379.                 Print("Treasure # 15 Collected");
  380.                 RemoveBP();
  381.                 hint = 16;
  382.                 WAIT(3000);
  383.             }
  384.         }
  385.         else if(hint == 16)
  386.         {
  387.             if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
  388.             {
  389.                 CREATE_MONEY_PICKUP(-535.9791, 1355.9490, 21.1102, 50, TRUE, &cash);
  390.                 BlipSet();
  391.             }
  392.             else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
  393.             {
  394.                 Print("Hint # 16 : NORTH HOLLAND , LINEN LOUNGE");
  395.                 DRAW_CHECKPOINT_WITH_ALPHA(-535.9791, 1355.9490, 20.1102, 1.0, R[C], G[C], B[C], 150);
  396.             }
  397.             else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
  398.             {
  399.                 Print("Treasure # 16 Collected");
  400.                 RemoveBP();
  401.                 hint = 17;
  402.                 WAIT(3000);
  403.             }
  404.         }
  405.         else if(hint == 17)
  406.         {
  407.             if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
  408.             {
  409.                 CREATE_MONEY_PICKUP(-1241.9192, 1093.6520, 31.9606, 50, TRUE, &cash);
  410.                 BlipSet();
  411.             }
  412.             else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
  413.             {
  414.                 Print("Hint # 17 : ALDERNEY CITY , MR.FUK'S");
  415.                 DRAW_CHECKPOINT_WITH_ALPHA(-1241.9192, 1093.6520, 30.9606, 1.0, R[C], G[C], B[C], 150);
  416.             }
  417.             else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
  418.             {
  419.                 Print("Treasure # 17 Collected");
  420.                 RemoveBP();
  421.                 hint = 18;
  422.                 WAIT(3000);
  423.             }
  424.         }
  425.         else if(hint == 18)
  426.         {
  427.             if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
  428.             {
  429.                 CREATE_MONEY_PICKUP(-1492.5072, -612.3403, 31.0478, 50, TRUE, &cash);
  430.                 BlipSet();
  431.             }
  432.             else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
  433.             {
  434.                 Print("Hint # 18 : ACTER INDUSTIAL PARK , GLOBE OIL");
  435.                 DRAW_CHECKPOINT_WITH_ALPHA(-1492.5072, -612.3403, 30.0478, 1.0, R[C], G[C], B[C], 150);
  436.             }
  437.             else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
  438.             {
  439.                 Print("Treasure # 18 Collected");
  440.                 RemoveBP();
  441.                 hint = 19;
  442.                 WAIT(3000);
  443.             }
  444.         }
  445.         else if(hint == 19)
  446.         {
  447.             if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
  448.             {
  449.                 CREATE_MONEY_PICKUP(-518.2503, 364.6866, 15.8146, 50, TRUE, &cash);
  450.                 BlipSet();
  451.             }
  452.             else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
  453.             {
  454.                 Print("Hint # 19 : PURGATORY , AUTO LIMBO");
  455.                 DRAW_CHECKPOINT_WITH_ALPHA(-518.2503, 364.6866, 14.8146, 1.0, R[C], G[C], B[C], 150);
  456.             }
  457.             else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
  458.             {
  459.                 Print("Treasure # 19 Collected");
  460.                 RemoveBP();
  461.                 hint = 20;
  462.                 WAIT(3000);
  463.             }
  464.         }
  465.         else if(hint == 20)
  466.         {
  467.             if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
  468.             {
  469.                 CREATE_MONEY_PICKUP(948.2361, 1639.6975, 41.3639, 50, TRUE, &cash);
  470.                 BlipSet();
  471.             }
  472.             else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
  473.             {
  474.                 Print("Hint # 20 : INDUSTRIAL , MENALA METAL");
  475.                 DRAW_CHECKPOINT_WITH_ALPHA(948.2361, 1639.6975, 40.3639, 1.0, R[C], G[C], B[C], 150);
  476.             }
  477.             else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
  478.             {
  479.                 Print("Treasure # 20 Collected");
  480.                 RemoveBP();
  481.                 hint = 21;
  482.                 WAIT(3000);
  483.             }
  484.         }
  485.         else if(hint == 21)
  486.         {
  487.             if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
  488.             {
  489.                 CREATE_MONEY_PICKUP(-25.8353, 1246.0784, 20.4375, 125, TRUE, &cash);
  490.                 BlipSet();
  491.             }
  492.             else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
  493.             {
  494.                 Print("Hint # 21 : EAST HOLLAND , DR.JEREMIAH JAMES");
  495.                 DRAW_CHECKPOINT_WITH_ALPHA(-25.8353, 1246.0784, 19.4375, 1.0, R[C], G[C], B[C], 150);
  496.             }
  497.             else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
  498.             {
  499.                 Print("Treasure # 21 Collected");
  500.                 RemoveBP();
  501.                 hint = 22;
  502.                 WAIT(3000);
  503.             }
  504.         }
  505.         else if(hint == 22)
  506.         {
  507.             if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
  508.             {
  509.                 CREATE_MONEY_PICKUP(40.0824, 110.2853, 15.7431, 125, TRUE, &cash);
  510.                 BlipSet();
  511.             }
  512.             else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
  513.             {
  514.                 Print("Hint # 22 : EASTON , SEA GOD STATUE");
  515.                 DRAW_CHECKPOINT_WITH_ALPHA(40.0824, 110.2853, 14.7431, 1.0, R[C], G[C], B[C], 150);
  516.             }
  517.             else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
  518.             {
  519.                 Print("Treasure # 22 Collected");
  520.                 RemoveBP();
  521.                 hint = 23;
  522.                 WAIT(3000);
  523.             }
  524.         }
  525.         else if(hint == 23)
  526.         {
  527.             if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
  528.             {
  529.                 CREATE_MONEY_PICKUP(711.6623, 1382.1853, 14.3164, 125, TRUE, &cash);
  530.                 BlipSet();
  531.             }
  532.             else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
  533.             {
  534.                 Print("Hint # 23 : CHASE POINT, S&M AUTO");
  535.                 DRAW_CHECKPOINT_WITH_ALPHA(711.6623, 1382.1853, 13.3164, 1.0, R[C], G[C], B[C], 150);
  536.             }
  537.             else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
  538.             {
  539.                 Print("Treasure # 23 Collected");
  540.                 RemoveBP();
  541.                 hint = 24;
  542.                 WAIT(3000);
  543.             }
  544.         }
  545.         else if(hint == 24)
  546.         {
  547.             if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
  548.             {
  549.                 CREATE_MONEY_PICKUP(1009.2621, 587.5351, 34.6727, 125, TRUE, &cash);
  550.                 BlipSet();
  551.             }
  552.             else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
  553.             {
  554.                 Print("Hint # 24 : EAST ISLAND CITY , SILVERBACK");
  555.                 DRAW_CHECKPOINT_WITH_ALPHA(1009.2621, 587.5351, 33.6727, 1.0, R[C], G[C], B[C], 150);
  556.             }
  557.             else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
  558.             {
  559.                 Print("Treasure # 24 Collected");
  560.                 RemoveBP();
  561.                 hint = 25;
  562.                 WAIT(3000);
  563.             }
  564.         }
  565.         else if(hint == 25)
  566.         {
  567.             if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
  568.             {
  569.                 CREATE_MONEY_PICKUP(-195.6744, 1870.8127, 9.5896, 500, TRUE, &cash);
  570.                 BlipSet();
  571.             }
  572.             else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
  573.             {
  574.                 Print("Hint # 25 : LIBERTY , VERY SMALL ISLAND");
  575.                 DRAW_CHECKPOINT_WITH_ALPHA(-195.6744, 1870.8127, 8.5896, 1.0, R[C], G[C], B[C], 150);
  576.             }
  577.             else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
  578.             {
  579.                 Print("Treasure # 25 Collected");
  580.                 RemoveBP();
  581.                 hint = 26;
  582.                 WAIT(3000);
  583.             }
  584.         }
  585.         else if(hint == 26)
  586.         {
  587.             Print("TREASURE HUNT 1ST EDITION COMPLETED !");
  588.             WAIT(3200);
  589.             Print("WELL DONE !");
  590.             WAIT(3200);
  591.             TERMINATE_THIS_SCRIPT();
  592.         }
  593.     }
  594. }
  595.        
  596. void main(void)
  597. {
  598.     THIS_SCRIPT_IS_SAFE_FOR_NETWORK_GAME();
  599.     InitBlipColors();
  600.     InitRGB();
  601.     while (TRUE)
  602.     {
  603.         WAIT(0);
  604.         TreasureHunt();
  605.     }
  606. }
  607.  
  608. /////////////////////////////Treasure Hunt 2NDGEN////////////////////////////////
  609. //Core
  610. #include <natives.h>
  611. #include <common.h>
  612. #include <strings.h>
  613. #include <types.h>
  614. #include <consts.h>
  615.  
  616. // variables
  617. Pickup cash;
  618. Blip hunt;
  619. uint hint = 0;
  620. uint C;
  621. uint cashInt = 0;
  622. uint bcolor[8];
  623. uint R[8], G[8], B[8];
  624.  
  625. void InitBlipColors(void)
  626. {      
  627.     bcolor[0] = 11;
  628.     bcolor[1] = 7;
  629.     bcolor[2] = 6;
  630.     bcolor[3] = 8;
  631.     bcolor[4] = 19;
  632.     bcolor[5] = 22;
  633.     bcolor[6] = 26;
  634.     bcolor[7] = 12;
  635. }
  636.  
  637. void InitRGB(void)
  638. {
  639.     R[0] = 61, G[0] = 166, B[0] = 235;
  640.     R[1] = 128, G[1] = 0, B[1] = 210;
  641.     R[2] = 230, G[2] = 110, B[2] = 0;
  642.     R[3] = 9, G[3] = 175, B[3] = 0;
  643.     R[4] = 155, G[4] = 232, B[4] = 142;
  644.     R[5] = 255, G[5] = 255, B[5] = 75;
  645.     R[6] = 180, G[6] = 29, B[6] = 0;
  646.     R[7] = 255, G[7] = 0, B[7] = 255;
  647. }
  648.  
  649. // Display Text Shortcut
  650. void Print(char *string)
  651. {
  652.     PRINT_STRING_WITH_LITERAL_STRING_NOW("STRING", string, 3000, 1);
  653. }
  654.  
  655. // add arrow blip shortcut
  656. void BlipSet(void)
  657. {
  658.     GENERATE_RANDOM_INT_IN_RANGE(0, 8, &C);
  659.     ADD_BLIP_FOR_PICKUP(cash, &hunt);
  660.     CHANGE_BLIP_COLOUR(hunt, bcolor[C]);
  661.     CHANGE_BLIP_DISPLAY(hunt, 1);
  662.     cashInt = 1;
  663. }
  664.  
  665. // remove blip & pickup shortcut
  666. void RemoveBP(void)
  667. {
  668.     REMOVE_PICKUP(cash);
  669.     REMOVE_BLIP(hunt);
  670.     cashInt = 0;
  671. }
  672.  
  673. // manage hunt
  674. void TreasureHunt(void)
  675. {
  676.     if(IS_PLAYER_PLAYING(GetPlayerIndex()))
  677.     {
  678.         if(hint == 0)
  679.         {
  680.             Print("Welcome to Liberty City 2nd Edition Treasure Hunt !");
  681.             WAIT(3200);
  682.             Print("You Could Win 2000 $ in Prize !");
  683.             WAIT(3200);
  684.             Print("Just Follow The Hints and Try to Find All Hidden Money Stacks");
  685.             WAIT(3200);
  686.             Print("Do You Know Liberty City Well Enuff ?");
  687.             WAIT(3200);
  688.             Print("We Shall See , Let The Hunt Begin !");
  689.             WAIT(3200);
  690.             hint = 1;
  691.         }
  692.         else if(hint == 1 )
  693.         {
  694.             if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
  695.             {
  696.                 CREATE_MONEY_PICKUP(849.1303, -161.2305, 13.8979, 50, TRUE, &cash);
  697.                 BlipSet();
  698.             }
  699.             else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
  700.             {
  701.                 Print("Hint # 1 : EAST HOOK , WOODFELLAS ");
  702.                 DRAW_CHECKPOINT_WITH_ALPHA(849.1303, -161.2305, 12.8979, 1.0, R[C], G[C], B[C], 150);
  703.             }
  704.             else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
  705.             {
  706.                 Print("Treasure # 1 Collected");
  707.                 RemoveBP();
  708.                 hint = 2;
  709.                 WAIT(3000);
  710.             }  
  711.         }
  712.         else if(hint == 2 )
  713.         {
  714.             if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
  715.             {
  716.                 CREATE_MONEY_PICKUP(1100.2333, 762.0435, 48.8270, 50, TRUE, &cash);
  717.                 BlipSet();
  718.             }
  719.             else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
  720.             {
  721.                 Print("Hint # 2 : STEINWAY , END OF TRACKS");
  722.                 DRAW_CHECKPOINT_WITH_ALPHA(1100.2333, 762.0435, 47.8270, 1.0, R[C], G[C], B[C], 150);
  723.             }
  724.             else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
  725.             {
  726.                 Print("Treasure # 2 Collected");
  727.                 RemoveBP();
  728.                 hint = 3;
  729.                 WAIT(3000);
  730.             }
  731.         }
  732.         else if(hint == 3 )
  733.         {
  734.             if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
  735.             {
  736.                 CREATE_MONEY_PICKUP(1575.8669, 862.7638, 89.7091, 50, TRUE, &cash);
  737.                 BlipSet();
  738.             }
  739.             else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
  740.             {
  741.                 Print("Hint # 3 : MEADOWS PARK , BINOCULARS");
  742.                 DRAW_CHECKPOINT_WITH_ALPHA(1575.8669, 862.7638, 88.7091, 1.0, R[C], G[C], B[C], 150);
  743.             }
  744.             else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
  745.             {
  746.                 Print("Treasure # 3 Collected");
  747.                 RemoveBP();
  748.                 hint = 4;
  749.                 WAIT(3000);
  750.             }
  751.         }
  752.         else if(hint == 4)
  753.         {
  754.             if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
  755.             {
  756.                 CREATE_MONEY_PICKUP(149.7004, -931.7015, 9.2369, 50, TRUE, &cash);
  757.                 BlipSet();
  758.             }
  759.             else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
  760.             {
  761.                 Print("Hint # 4 : CASTLE GARDENS , CONSTRUCTION SITE");
  762.                 DRAW_CHECKPOINT_WITH_ALPHA(149.7004, -931.7015, 8.2369, 1.0, R[C], G[C], B[C], 150);
  763.             }
  764.             else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
  765.             {
  766.                 Print("Treasure # 4 Collected");
  767.                 RemoveBP();
  768.                 hint = 5;
  769.                 WAIT(3000);
  770.             }
  771.         }
  772.         else if(hint == 5)
  773.         {
  774.             if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
  775.             {
  776.                 CREATE_MONEY_PICKUP(-285.3751, 491.1673, 14.7889, 50, TRUE, &cash);
  777.                 BlipSet();
  778.             }
  779.             else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
  780.             {
  781.                 Print("Hint # 5 : STAR JONCTION , STAR PLAZA HOTEL");
  782.                 DRAW_CHECKPOINT_WITH_ALPHA(-285.3751, 491.1673, 13.7889, 1.0, R[C], G[C], B[C], 150);
  783.             }
  784.             else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
  785.             {
  786.                 Print("Treasure # 5 Collected");
  787.                 RemoveBP();
  788.                 hint = 6;
  789.                 WAIT(3000);
  790.             }
  791.         }
  792.         else if(hint == 6)
  793.         {
  794.             if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
  795.             {
  796.                 CREATE_MONEY_PICKUP(-2146.5779, -498.3012, 8.0012, 50, TRUE, &cash);
  797.                 BlipSet();
  798.             }
  799.             else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
  800.             {
  801.                 Print("Hint # 6 : ACTER INDUSTRIAL , WRECKED BOAT");
  802.                 DRAW_CHECKPOINT_WITH_ALPHA(-2146.5779, -498.3012, 7.0012, 1.0, R[C], G[C], B[C], 150);
  803.             }
  804.             else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
  805.             {
  806.                 Print("Treasure # 6 Collected");
  807.                 RemoveBP();
  808.                 hint = 7;
  809.                 WAIT(3000);
  810.             }
  811.         }
  812.         else if(hint == 7)
  813.         {
  814.             if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
  815.             {
  816.                 CREATE_MONEY_PICKUP(241.3679, -397.4551, 9.0150, 50, TRUE, &cash);
  817.                 BlipSet();
  818.             }
  819.             else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
  820.             {
  821.                 Print("Hint # 7 : FISHMARKET SOUTH , SKATEBOARD");
  822.                 DRAW_CHECKPOINT_WITH_ALPHA(241.3679, -397.4551, 8.0150, 1.0, R[C], G[C], B[C], 150);
  823.             }
  824.             else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
  825.             {
  826.                 Print("Treasure # 7 Collected");
  827.                 RemoveBP();
  828.                 hint = 8;
  829.                 WAIT(3000);
  830.             }
  831.         }
  832.         else if(hint == 8)
  833.         {
  834.             if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
  835.             {
  836.                 CREATE_MONEY_PICKUP(152.8154, 74.7235, 14.7701, 50, TRUE, &cash);
  837.                 BlipSet();
  838.             }
  839.             else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
  840.             {
  841.                 Print("Hint # 8 : PRESIDENT CITY , ALPHABET BROTHERHOOD CENTER");
  842.                 DRAW_CHECKPOINT_WITH_ALPHA(152.8154, 74.7235, 13.7701, 1.0, R[C], G[C], B[C], 150);
  843.             }
  844.             else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
  845.             {
  846.                 Print("Treasure # 8 Collected");
  847.                 RemoveBP();
  848.                 hint = 9;
  849.                 WAIT(3000);
  850.             }
  851.         }
  852.         else if(hint == 9)
  853.         {
  854.             if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
  855.             {
  856.                 CREATE_MONEY_PICKUP(-117.4981, -254.0651, 12.7460, 50, TRUE, &cash);
  857.                 BlipSet();
  858.             }
  859.             else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
  860.             {
  861.                 Print("Hint # 9 : LITTLE ITALY , DRUSILLA'S");
  862.                 DRAW_CHECKPOINT_WITH_ALPHA(-117.4981, -254.0651, 11.7460, 1.0, R[C], G[C], B[C], 150);
  863.             }
  864.             else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
  865.             {
  866.                 Print("Treasure # 9 Collected");
  867.                 RemoveBP();
  868.                 hint = 10;
  869.                 WAIT(3000);
  870.             }
  871.         }
  872.         else if(hint == 10)
  873.         {
  874.             if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
  875.             {
  876.                 CREATE_MONEY_PICKUP(1001.6672, -655.6555, 17.7103, 50, TRUE, &cash);
  877.                 BlipSet();
  878.             }
  879.             else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
  880.             {
  881.                 Print("Hint # 10 : FIREFLY ISLAND , LIBERTY EYE");
  882.                 DRAW_CHECKPOINT_WITH_ALPHA(1001.6672, -655.6555, 16.7103, 1.0, R[C], G[C], B[C], 150);
  883.             }
  884.             else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
  885.             {
  886.                 Print("Treasure # 10 Collected");
  887.                 RemoveBP();
  888.                 hint = 11;
  889.                 WAIT(3000);
  890.             }
  891.         }
  892.         else if(hint == 11)
  893.         {
  894.             if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
  895.             {
  896.                 CREATE_MONEY_PICKUP(1368.5139, -26.3516, 25.3223, 50, TRUE, &cash);
  897.                 BlipSet();
  898.             }
  899.             else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
  900.             {
  901.                 Print("Hint # 11 : SOUTH SLOPES , PURE LUBE CORP");
  902.                 DRAW_CHECKPOINT_WITH_ALPHA(1368.5139, -26.3516, 24.3223, 1.0, R[C], G[C], B[C], 150);
  903.             }
  904.             else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
  905.             {
  906.                 Print("Treasure # 11 Collected");
  907.                 RemoveBP();
  908.                 hint = 12;
  909.                 WAIT(3000);
  910.             }
  911.         }
  912.         else if(hint == 12)
  913.         {
  914.             if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
  915.             {
  916.                 CREATE_MONEY_PICKUP(1240.4674, 723.1912, 45.8097, 50, TRUE, &cash);
  917.                 BlipSet();
  918.             }
  919.             else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
  920.             {
  921.                 Print("Hint # 12 : EAST ISLAND CITY , PILL PHARM");
  922.                 DRAW_CHECKPOINT_WITH_ALPHA(1240.4674, 723.1912, 44.8097, 1.0, R[C], G[C], B[C], 150);
  923.             }
  924.             else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
  925.             {
  926.                 Print("Treasure # 12 Collected");
  927.                 RemoveBP();
  928.                 hint = 13;
  929.                 WAIT(3000);
  930.             }
  931.         }
  932.         else if(hint == 13)
  933.         {
  934.             if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
  935.             {
  936.                 CREATE_MONEY_PICKUP(699.8542, 1512.4663, 14.8426, 50, TRUE, &cash);
  937.                 BlipSet();
  938.             }
  939.             else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
  940.             {
  941.                 Print("Hint # 13 : SOUTH BOHAN , MUSCLE MARY'S AUTO SHOP");
  942.                 DRAW_CHECKPOINT_WITH_ALPHA(699.8542, 1512.4663, 13.8426, 1.0, R[C], G[C], B[C], 150);
  943.             }
  944.             else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
  945.             {
  946.                 Print("Treasure # 13 Collected");
  947.                 RemoveBP();
  948.                 hint = 14;
  949.                 WAIT(3000);
  950.             }
  951.         }
  952.         else if(hint == 14)
  953.         {
  954.             if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
  955.             {
  956.                 CREATE_MONEY_PICKUP(-525.1293, 1743.8573, 8.9409, 50, TRUE, &cash);
  957.                 BlipSet();
  958.             }
  959.             else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
  960.             {
  961.                 Print("Hint # 14 : NORTHWOOD , RUSTYSCHIT SALVAGE");
  962.                 DRAW_CHECKPOINT_WITH_ALPHA(-525.1293, 1743.8573, 7.9409, 1.0, R[C], G[C], B[C], 150);
  963.             }
  964.             else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
  965.             {
  966.                 Print("Treasure # 14 Collected");
  967.                 RemoveBP();
  968.                 hint = 15;
  969.                 WAIT(3000);
  970.             }
  971.         }
  972.         else if(hint == 15)
  973.         {
  974.             if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
  975.             {
  976.                 CREATE_MONEY_PICKUP(-300.0976, 1541.5189, 24.8919, 50, TRUE, &cash);
  977.                 BlipSet();
  978.             }
  979.             else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
  980.             {
  981.                 Print("Hint # 15 : NORTHWOOD , AUTO COWBOYS");
  982.                 DRAW_CHECKPOINT_WITH_ALPHA(-300.0976, 1541.5189, 23.8919, 1.0, R[C], G[C], B[C], 150);
  983.             }
  984.             else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
  985.             {
  986.                 Print("Treasure # 15 Collected");
  987.                 RemoveBP();
  988.                 hint = 16;
  989.                 WAIT(3000);
  990.             }
  991.         }
  992.         else if(hint == 16)
  993.         {
  994.             if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
  995.             {
  996.                 CREATE_MONEY_PICKUP(472.8140, 1078.4895, 8.8609, 50, TRUE, &cash);
  997.                 BlipSet();
  998.             }
  999.             else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
  1000.             {
  1001.                 Print("Hint # 16 : CHARGE ISLAND , BOAT HANGAR");
  1002.                 DRAW_CHECKPOINT_WITH_ALPHA(472.8140, 1078.4895, 7.8609, 1.0, R[C], G[C], B[C], 150);
  1003.             }
  1004.             else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
  1005.             {
  1006.                 Print("Treasure # 16 Collected");
  1007.                 RemoveBP();
  1008.                 hint = 17;
  1009.                 WAIT(3000);
  1010.             }
  1011.         }
  1012.         else if(hint == 17)
  1013.         {
  1014.             if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
  1015.             {
  1016.                 CREATE_MONEY_PICKUP(1154.3716, -589.7430, 39.0534, 50, TRUE, &cash);
  1017.                 BlipSet();
  1018.             }
  1019.             else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
  1020.             {
  1021.                 Print("Hint # 17 : FIREFLY ISLAND , SCREAMER");
  1022.                 DRAW_CHECKPOINT_WITH_ALPHA(1154.3716, -589.7430, 38.0534, 1.0, R[C], G[C], B[C], 150);
  1023.             }
  1024.             else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
  1025.             {
  1026.                 Print("Treasure # 17 Collected");
  1027.                 RemoveBP();
  1028.                 hint = 18;
  1029.                 WAIT(3000);
  1030.             }
  1031.         }
  1032.         else if(hint == 18)
  1033.         {
  1034.             if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
  1035.             {
  1036.                 CREATE_MONEY_PICKUP(1171.4799, 1082.5660, 26.3071, 50, TRUE, &cash);
  1037.                 BlipSet();
  1038.             }
  1039.             else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
  1040.             {
  1041.                 Print("Hint # 18 : STEINWAY , GANTRY PARK");
  1042.                 DRAW_CHECKPOINT_WITH_ALPHA(1171.4799, 1082.5660, 25.3071, 1.0, R[C], G[C], B[C], 150);
  1043.             }
  1044.             else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
  1045.             {
  1046.                 Print("Treasure # 18 Collected");
  1047.                 RemoveBP();
  1048.                 hint = 19;
  1049.                 WAIT(3000);
  1050.             }
  1051.         }
  1052.         else if(hint == 19)
  1053.         {
  1054.             if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
  1055.             {
  1056.                 CREATE_MONEY_PICKUP(72.8656, 436.1187, 14.7295, 50, TRUE, &cash);
  1057.                 BlipSet();
  1058.             }
  1059.             else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
  1060.             {
  1061.                 Print("Hint # 19 : HATTONS GARDENS , AFRICA TOWER");
  1062.                 DRAW_CHECKPOINT_WITH_ALPHA(72.8656, 436.1187, 13.7295, 1.0, R[C], G[C], B[C], 150);
  1063.             }
  1064.             else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
  1065.             {
  1066.                 Print("Treasure # 19 Collected");
  1067.                 RemoveBP();
  1068.                 hint = 20;
  1069.                 WAIT(3000);
  1070.             }
  1071.         }
  1072.         else if(hint == 20)
  1073.         {
  1074.             if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
  1075.             {
  1076.                 CREATE_MONEY_PICKUP(-1490.8306, 1111.7118, 32.0134, 50, TRUE, &cash);
  1077.                 BlipSet();
  1078.             }
  1079.             else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
  1080.             {
  1081.                 Print("Hint # 20 : ALDERNEY CITY , AUTOEROTICAR");
  1082.                 DRAW_CHECKPOINT_WITH_ALPHA(-1490.8306, 1111.7118, 31.0134, 1.0, R[C], G[C], B[C], 150);
  1083.             }
  1084.             else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
  1085.             {
  1086.                 Print("Treasure # 20 Collected");
  1087.                 RemoveBP();
  1088.                 hint = 21;
  1089.                 WAIT(3000);
  1090.             }
  1091.         }
  1092.         else if(hint == 21)
  1093.         {
  1094.             if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
  1095.             {
  1096.                 CREATE_MONEY_PICKUP(1230.2914, 27.8026, 43.2515, 125, TRUE, &cash);
  1097.                 BlipSet();
  1098.             }
  1099.             else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
  1100.             {
  1101.                 Print("Hint # 21 : SCHOTTLER , G.R. AVES FUNERALS");
  1102.                 DRAW_CHECKPOINT_WITH_ALPHA(1230.2914, 27.8026, 42.2515, 1.0, R[C], G[C], B[C], 150);
  1103.             }
  1104.             else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
  1105.             {
  1106.                 Print("Treasure # 21 Collected");
  1107.                 RemoveBP();
  1108.                 hint = 22;
  1109.                 WAIT(3000);
  1110.             }
  1111.         }
  1112.         else if(hint == 22)
  1113.         {
  1114.             if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
  1115.             {
  1116.                 CREATE_MONEY_PICKUP(875.1283, -537.8434, 19.6472, 125, TRUE, &cash);
  1117.                 BlipSet();
  1118.             }
  1119.             else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
  1120.             {
  1121.                 Print("Hint # 22 : HOVE BEACH , HOT COFFEE SHOP");
  1122.                 DRAW_CHECKPOINT_WITH_ALPHA(875.1283, -537.8434, 18.6472, 1.0, R[C], G[C], B[C], 150);
  1123.             }
  1124.             else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
  1125.             {
  1126.                 Print("Treasure # 22 Collected");
  1127.                 RemoveBP();
  1128.                 hint = 23;
  1129.                 WAIT(3000);
  1130.             }
  1131.         }
  1132.         else if(hint == 23)
  1133.         {
  1134.             if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
  1135.             {
  1136.                 CREATE_MONEY_PICKUP(-1347.7643, 501.7775, 14.3352, 125, TRUE, &cash);
  1137.                 BlipSet();
  1138.             }
  1139.             else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
  1140.             {
  1141.                 Print("Hint # 23 : ACTER, SCHORSCH & CO PAPER BAG");
  1142.                 DRAW_CHECKPOINT_WITH_ALPHA(-1347.7643, 501.7775, 13.3352, 1.0, R[C], G[C], B[C], 150);
  1143.             }
  1144.             else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
  1145.             {
  1146.                 Print("Treasure # 23 Collected");
  1147.                 RemoveBP();
  1148.                 hint = 24;
  1149.                 WAIT(3000);
  1150.             }
  1151.         }
  1152.         else if(hint == 24)
  1153.         {
  1154.             if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
  1155.             {
  1156.                 CREATE_MONEY_PICKUP(-412.0263, 1299.7247, 89.5138, 125, TRUE, &cash);
  1157.                 BlipSet();
  1158.             }
  1159.             else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
  1160.             {
  1161.                 Print("Hint # 24 : NORTH HOLLAND , HOLLAND HOSPITAL CENTER");
  1162.                 DRAW_CHECKPOINT_WITH_ALPHA(-412.0263, 1299.7247, 88.5138, 1.0, R[C], G[C], B[C], 150);
  1163.             }
  1164.             else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
  1165.             {
  1166.                 Print("Treasure # 24 Collected");
  1167.                 RemoveBP();
  1168.                 hint = 25;
  1169.                 WAIT(3000);
  1170.             }
  1171.         }
  1172.         else if(hint == 25)
  1173.         {
  1174.             if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
  1175.             {
  1176.                 CREATE_MONEY_PICKUP(615.3989, 1925.8347, 25.1730, 500, TRUE, &cash);
  1177.                 BlipSet();
  1178.             }
  1179.             else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
  1180.             {
  1181.                 Print("Hint # 25 : BOULEVARD , WELHAM PARKWAY");
  1182.                 DRAW_CHECKPOINT_WITH_ALPHA(615.3989, 1925.8347, 24.1730, 1.0, R[C], G[C], B[C], 150);
  1183.             }
  1184.             else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
  1185.             {
  1186.                 Print("Treasure # 25 Collected");
  1187.                 RemoveBP();
  1188.                 hint = 26;
  1189.                 WAIT(3000);
  1190.             }
  1191.         }
  1192.         else if(hint == 26)
  1193.         {
  1194.             Print("TREASURE HUNT 2ND EDITION COMPLETED !");
  1195.             WAIT(3200);
  1196.             Print("WELL DONE !");
  1197.             WAIT(3200);
  1198.             TERMINATE_THIS_SCRIPT();
  1199.         }
  1200.     }
  1201. }
  1202.        
  1203. void main(void)
  1204. {
  1205.     THIS_SCRIPT_IS_SAFE_FOR_NETWORK_GAME();
  1206.     InitBlipColors();
  1207.     InitRGB();
  1208.     while (TRUE)
  1209.     {
  1210.         WAIT(0);
  1211.         TreasureHunt();
  1212.     }
  1213. }
Advertisement
Add Comment
Please, Sign In to add comment