Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //////////////////////////Treasure Hunt 1STGEN//////////////////////////////
- //Core
- #include <natives.h>
- #include <common.h>
- #include <strings.h>
- #include <types.h>
- #include <consts.h>
- // variables
- Pickup cash;
- Blip hunt;
- uint hint = 0;
- uint C;
- uint cashInt = 0;
- uint bcolor[8];
- uint R[8], G[8], B[8];
- void InitBlipColors(void)
- {
- bcolor[0] = 11;
- bcolor[1] = 7;
- bcolor[2] = 6;
- bcolor[3] = 8;
- bcolor[4] = 19;
- bcolor[5] = 22;
- bcolor[6] = 26;
- bcolor[7] = 12;
- }
- void InitRGB(void)
- {
- R[0] = 61, G[0] = 166, B[0] = 235;
- R[1] = 128, G[1] = 0, B[1] = 210;
- R[2] = 230, G[2] = 110, B[2] = 0;
- R[3] = 9, G[3] = 175, B[3] = 0;
- R[4] = 155, G[4] = 232, B[4] = 142;
- R[5] = 255, G[5] = 255, B[5] = 75;
- R[6] = 180, G[6] = 29, B[6] = 0;
- R[7] = 255, G[7] = 0, B[7] = 255;
- }
- // Display Text Shortcut
- void Print(char *string)
- {
- PRINT_STRING_WITH_LITERAL_STRING_NOW("STRING", string, 3000, 1);
- }
- // add arrow blip shortcut
- void BlipSet(void)
- {
- GENERATE_RANDOM_INT_IN_RANGE(0, 8, &C);
- ADD_BLIP_FOR_PICKUP(cash, &hunt);
- CHANGE_BLIP_COLOUR(hunt, bcolor[C]);
- CHANGE_BLIP_DISPLAY(hunt, 1);
- cashInt = 1;
- }
- // remove blip & pickup shortcut
- void RemoveBP(void)
- {
- REMOVE_PICKUP(cash);
- REMOVE_BLIP(hunt);
- cashInt = 0;
- }
- // manage hunt
- void TreasureHunt(void)
- {
- if(IS_PLAYER_PLAYING(GetPlayerIndex()))
- {
- if(hint == 0)
- {
- Print("Welcome to Liberty City 1st Edition Treasure Hunt !");
- WAIT(3200);
- Print("You Could Win 2000 $ in Prize !");
- WAIT(3200);
- Print("Just Follow The Hints and Try to Find All Hidden Money Stacks");
- WAIT(3200);
- Print("Do You Know Liberty City Well Enuff ?");
- WAIT(3200);
- Print("We Shall See , Let The Hunt Begin !");
- WAIT(3200);
- hint = 1;
- }
- else if(hint == 1 )
- {
- if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
- {
- CREATE_MONEY_PICKUP(675.2327, -334.3806, 9.8782, 50, TRUE, &cash);
- BlipSet();
- }
- else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
- {
- Print("Hint # 1 : EAST HOOK , PLATYPUS ");
- DRAW_CHECKPOINT_WITH_ALPHA(675.2327, -334.3806, 8.8782, 1.0, R[C], G[C], B[C], 150);
- }
- else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
- {
- Print("Treasure # 1 Collected");
- RemoveBP();
- hint = 2;
- WAIT(3000);
- }
- }
- else if(hint == 2 )
- {
- if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
- {
- CREATE_MONEY_PICKUP(476.4387, 1275.7642, 48.4506, 50, TRUE, &cash);
- BlipSet();
- }
- else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
- {
- Print("Hint # 2 : SOUTH BOHAN , CONSTRUCTION SITE");
- DRAW_CHECKPOINT_WITH_ALPHA(476.4387, 1275.7642, 47.4506, 1.0, R[C], G[C], B[C], 150);
- }
- else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
- {
- Print("Treasure # 2 Collected");
- RemoveBP();
- hint = 3;
- WAIT(3000);
- }
- }
- else if(hint == 3 )
- {
- if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
- {
- CREATE_MONEY_PICKUP(415.6917, -505.8639, 17.6852, 50, TRUE, &cash);
- BlipSet();
- }
- else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
- {
- Print("Hint # 3 : FISHMARKET SOUTH , PIER 45");
- DRAW_CHECKPOINT_WITH_ALPHA(415.6917, -505.8639, 16.6852, 1.0, R[C], G[C], B[C], 150);
- }
- else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
- {
- Print("Treasure # 3 Collected");
- RemoveBP();
- hint = 4;
- WAIT(3000);
- }
- }
- else if(hint == 4)
- {
- if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
- {
- CREATE_MONEY_PICKUP(-1317.7400, 271.6539, 10.7546, 50, TRUE, &cash);
- BlipSet();
- }
- else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
- {
- Print("Hint # 4 : PORT TUDOR , AXELS P&S");
- DRAW_CHECKPOINT_WITH_ALPHA(-1317.7400, 271.6539, 9.7546, 1.0, R[C], G[C], B[C], 150);
- }
- else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
- {
- Print("Treasure # 4 Collected");
- RemoveBP();
- hint = 5;
- WAIT(3000);
- }
- }
- else if(hint == 5)
- {
- if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
- {
- CREATE_MONEY_PICKUP(76.6436, 578.2216, 18.6348, 50, TRUE, &cash);
- BlipSet();
- }
- else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
- {
- Print("Hint # 5 : HATTON GARDENS , JERKOV'S");
- DRAW_CHECKPOINT_WITH_ALPHA(76.6436, 578.2216, 17.6348, 1.0, R[C], G[C], B[C], 150);
- }
- else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
- {
- Print("Treasure # 5 Collected");
- RemoveBP();
- hint = 6;
- WAIT(3000);
- }
- }
- else if(hint == 6)
- {
- if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
- {
- CREATE_MONEY_PICKUP(-930.3932, 241.9762, 8.7586, 50, TRUE, &cash);
- BlipSet();
- }
- else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
- {
- Print("Hint # 6 : PORT TUDOR , OCTOPUS");
- DRAW_CHECKPOINT_WITH_ALPHA(-930.3932, 241.9762, 7.7586, 1.0, R[C], G[C], B[C], 150);
- }
- else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
- {
- Print("Treasure # 6 Collected");
- RemoveBP();
- hint = 7;
- WAIT(3000);
- }
- }
- else if(hint == 7)
- {
- if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
- {
- CREATE_MONEY_PICKUP(1445.6392, 13.0456, 31.3368, 50, TRUE, &cash);
- BlipSet();
- }
- else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
- {
- Print("Hint # 7 : BEECHWOOD CITY , BAY BAR");
- DRAW_CHECKPOINT_WITH_ALPHA(1445.6392, 13.0456, 30.3368, 1.0, R[C], G[C], B[C], 150);
- }
- else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
- {
- Print("Treasure # 7 Collected");
- RemoveBP();
- hint = 8;
- WAIT(3000);
- }
- }
- else if(hint == 8)
- {
- if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
- {
- CREATE_MONEY_PICKUP(429.6284, 227.3253, 14.7194, 50, TRUE, &cash);
- BlipSet();
- }
- else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
- {
- Print("Hint # 8 : COLONY ISLAND , SKYCAR LTA");
- DRAW_CHECKPOINT_WITH_ALPHA(429.6284, 227.3253, 13.7194, 1.0, R[C], G[C], B[C], 150);
- }
- else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
- {
- Print("Treasure # 8 Collected");
- RemoveBP();
- hint = 9;
- WAIT(3000);
- }
- }
- else if(hint == 9)
- {
- if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
- {
- CREATE_MONEY_PICKUP(-636.4855, 77.0324, 4.8174, 50, TRUE, &cash);
- BlipSet();
- }
- else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
- {
- Print("Hint # 9 : THE MEAT QUARTER , GOLDEN PIER");
- DRAW_CHECKPOINT_WITH_ALPHA(-636.4855, 77.0324, 3.8174, 1.0, R[C], G[C], B[C], 150);
- }
- else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
- {
- Print("Treasure # 9 Collected");
- RemoveBP();
- hint = 10;
- WAIT(3000);
- }
- }
- else if(hint == 10)
- {
- if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
- {
- CREATE_MONEY_PICKUP(-302.6897, 282.2424, 19.9668, 50, TRUE, &cash);
- BlipSet();
- }
- else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
- {
- Print("Hint # 10 : STAR JONCTION , MAGIC CURTAIN");
- DRAW_CHECKPOINT_WITH_ALPHA(-302.6897, 282.2424, 18.9668, 1.0, R[C], G[C], B[C], 150);
- }
- else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
- {
- Print("Treasure # 10 Collected");
- RemoveBP();
- hint = 11;
- WAIT(3000);
- }
- }
- else if(hint == 11)
- {
- if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
- {
- CREATE_MONEY_PICKUP(905.6995, 307.7269, 34.1642, 50, TRUE, &cash);
- BlipSet();
- }
- else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
- {
- Print("Hint # 11 : ROTTERDAM HILL , CUT AT THE CORNER");
- DRAW_CHECKPOINT_WITH_ALPHA(905.6995, 307.7269, 33.1642, 1.0, R[C], G[C], B[C], 150);
- }
- else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
- {
- Print("Treasure # 11 Collected");
- RemoveBP();
- hint = 12;
- WAIT(3000);
- }
- }
- else if(hint == 12)
- {
- if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
- {
- CREATE_MONEY_PICKUP(1163.0801, -379.2670, 40.4726, 50, TRUE, &cash);
- BlipSet();
- }
- else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
- {
- Print("Hint # 12 : HOVE BEACH , CONSTRUCTION SITE");
- DRAW_CHECKPOINT_WITH_ALPHA(1163.0801, -379.2670, 39.4726, 1.0, R[C], G[C], B[C], 150);
- }
- else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
- {
- Print("Treasure # 12 Collected");
- RemoveBP();
- hint = 13;
- WAIT(3000);
- }
- }
- else if(hint == 13)
- {
- if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
- {
- CREATE_MONEY_PICKUP(774.5525, 473.8719, 23.3609, 50, TRUE, &cash);
- BlipSet();
- }
- else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
- {
- Print("Hint # 13 : BOABO , TWITCHIN'S SUGAR");
- DRAW_CHECKPOINT_WITH_ALPHA(774.5525, 473.8719, 22.3609, 1.0, R[C], G[C], B[C], 150);
- }
- else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
- {
- Print("Treasure # 13 Collected");
- RemoveBP();
- hint = 14;
- WAIT(3000);
- }
- }
- else if(hint == 14)
- {
- if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
- {
- CREATE_MONEY_PICKUP(-605.9974, -752.9418, 65.9908, 50, TRUE, &cash);
- BlipSet();
- }
- else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
- {
- Print("Hint # 14 : HAPPINESS ISLAND , BLOOD PUMP");
- DRAW_CHECKPOINT_WITH_ALPHA(-605.9974, -752.9418, 64.9908, 1.0, R[C], G[C], B[C], 150);
- }
- else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
- {
- Print("Treasure # 14 Collected");
- RemoveBP();
- hint = 15;
- WAIT(3000);
- }
- }
- else if(hint == 15)
- {
- if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
- {
- CREATE_MONEY_PICKUP(-209.0195, 1020.6801, 6.1636, 50, TRUE, &cash);
- BlipSet();
- }
- else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
- {
- Print("Hint # 15 : MIDDLE PARK , BOAT RAMP");
- DRAW_CHECKPOINT_WITH_ALPHA(-209.0195, 1020.6801, 5.1636, 1.0, R[C], G[C], B[C], 150);
- }
- else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
- {
- Print("Treasure # 15 Collected");
- RemoveBP();
- hint = 16;
- WAIT(3000);
- }
- }
- else if(hint == 16)
- {
- if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
- {
- CREATE_MONEY_PICKUP(-535.9791, 1355.9490, 21.1102, 50, TRUE, &cash);
- BlipSet();
- }
- else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
- {
- Print("Hint # 16 : NORTH HOLLAND , LINEN LOUNGE");
- DRAW_CHECKPOINT_WITH_ALPHA(-535.9791, 1355.9490, 20.1102, 1.0, R[C], G[C], B[C], 150);
- }
- else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
- {
- Print("Treasure # 16 Collected");
- RemoveBP();
- hint = 17;
- WAIT(3000);
- }
- }
- else if(hint == 17)
- {
- if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
- {
- CREATE_MONEY_PICKUP(-1241.9192, 1093.6520, 31.9606, 50, TRUE, &cash);
- BlipSet();
- }
- else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
- {
- Print("Hint # 17 : ALDERNEY CITY , MR.FUK'S");
- DRAW_CHECKPOINT_WITH_ALPHA(-1241.9192, 1093.6520, 30.9606, 1.0, R[C], G[C], B[C], 150);
- }
- else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
- {
- Print("Treasure # 17 Collected");
- RemoveBP();
- hint = 18;
- WAIT(3000);
- }
- }
- else if(hint == 18)
- {
- if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
- {
- CREATE_MONEY_PICKUP(-1492.5072, -612.3403, 31.0478, 50, TRUE, &cash);
- BlipSet();
- }
- else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
- {
- Print("Hint # 18 : ACTER INDUSTIAL PARK , GLOBE OIL");
- DRAW_CHECKPOINT_WITH_ALPHA(-1492.5072, -612.3403, 30.0478, 1.0, R[C], G[C], B[C], 150);
- }
- else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
- {
- Print("Treasure # 18 Collected");
- RemoveBP();
- hint = 19;
- WAIT(3000);
- }
- }
- else if(hint == 19)
- {
- if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
- {
- CREATE_MONEY_PICKUP(-518.2503, 364.6866, 15.8146, 50, TRUE, &cash);
- BlipSet();
- }
- else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
- {
- Print("Hint # 19 : PURGATORY , AUTO LIMBO");
- DRAW_CHECKPOINT_WITH_ALPHA(-518.2503, 364.6866, 14.8146, 1.0, R[C], G[C], B[C], 150);
- }
- else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
- {
- Print("Treasure # 19 Collected");
- RemoveBP();
- hint = 20;
- WAIT(3000);
- }
- }
- else if(hint == 20)
- {
- if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
- {
- CREATE_MONEY_PICKUP(948.2361, 1639.6975, 41.3639, 50, TRUE, &cash);
- BlipSet();
- }
- else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
- {
- Print("Hint # 20 : INDUSTRIAL , MENALA METAL");
- DRAW_CHECKPOINT_WITH_ALPHA(948.2361, 1639.6975, 40.3639, 1.0, R[C], G[C], B[C], 150);
- }
- else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
- {
- Print("Treasure # 20 Collected");
- RemoveBP();
- hint = 21;
- WAIT(3000);
- }
- }
- else if(hint == 21)
- {
- if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
- {
- CREATE_MONEY_PICKUP(-25.8353, 1246.0784, 20.4375, 125, TRUE, &cash);
- BlipSet();
- }
- else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
- {
- Print("Hint # 21 : EAST HOLLAND , DR.JEREMIAH JAMES");
- DRAW_CHECKPOINT_WITH_ALPHA(-25.8353, 1246.0784, 19.4375, 1.0, R[C], G[C], B[C], 150);
- }
- else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
- {
- Print("Treasure # 21 Collected");
- RemoveBP();
- hint = 22;
- WAIT(3000);
- }
- }
- else if(hint == 22)
- {
- if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
- {
- CREATE_MONEY_PICKUP(40.0824, 110.2853, 15.7431, 125, TRUE, &cash);
- BlipSet();
- }
- else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
- {
- Print("Hint # 22 : EASTON , SEA GOD STATUE");
- DRAW_CHECKPOINT_WITH_ALPHA(40.0824, 110.2853, 14.7431, 1.0, R[C], G[C], B[C], 150);
- }
- else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
- {
- Print("Treasure # 22 Collected");
- RemoveBP();
- hint = 23;
- WAIT(3000);
- }
- }
- else if(hint == 23)
- {
- if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
- {
- CREATE_MONEY_PICKUP(711.6623, 1382.1853, 14.3164, 125, TRUE, &cash);
- BlipSet();
- }
- else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
- {
- Print("Hint # 23 : CHASE POINT, S&M AUTO");
- DRAW_CHECKPOINT_WITH_ALPHA(711.6623, 1382.1853, 13.3164, 1.0, R[C], G[C], B[C], 150);
- }
- else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
- {
- Print("Treasure # 23 Collected");
- RemoveBP();
- hint = 24;
- WAIT(3000);
- }
- }
- else if(hint == 24)
- {
- if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
- {
- CREATE_MONEY_PICKUP(1009.2621, 587.5351, 34.6727, 125, TRUE, &cash);
- BlipSet();
- }
- else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
- {
- Print("Hint # 24 : EAST ISLAND CITY , SILVERBACK");
- DRAW_CHECKPOINT_WITH_ALPHA(1009.2621, 587.5351, 33.6727, 1.0, R[C], G[C], B[C], 150);
- }
- else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
- {
- Print("Treasure # 24 Collected");
- RemoveBP();
- hint = 25;
- WAIT(3000);
- }
- }
- else if(hint == 25)
- {
- if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
- {
- CREATE_MONEY_PICKUP(-195.6744, 1870.8127, 9.5896, 500, TRUE, &cash);
- BlipSet();
- }
- else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
- {
- Print("Hint # 25 : LIBERTY , VERY SMALL ISLAND");
- DRAW_CHECKPOINT_WITH_ALPHA(-195.6744, 1870.8127, 8.5896, 1.0, R[C], G[C], B[C], 150);
- }
- else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
- {
- Print("Treasure # 25 Collected");
- RemoveBP();
- hint = 26;
- WAIT(3000);
- }
- }
- else if(hint == 26)
- {
- Print("TREASURE HUNT 1ST EDITION COMPLETED !");
- WAIT(3200);
- Print("WELL DONE !");
- WAIT(3200);
- TERMINATE_THIS_SCRIPT();
- }
- }
- }
- void main(void)
- {
- THIS_SCRIPT_IS_SAFE_FOR_NETWORK_GAME();
- InitBlipColors();
- InitRGB();
- while (TRUE)
- {
- WAIT(0);
- TreasureHunt();
- }
- }
- /////////////////////////////Treasure Hunt 2NDGEN////////////////////////////////
- //Core
- #include <natives.h>
- #include <common.h>
- #include <strings.h>
- #include <types.h>
- #include <consts.h>
- // variables
- Pickup cash;
- Blip hunt;
- uint hint = 0;
- uint C;
- uint cashInt = 0;
- uint bcolor[8];
- uint R[8], G[8], B[8];
- void InitBlipColors(void)
- {
- bcolor[0] = 11;
- bcolor[1] = 7;
- bcolor[2] = 6;
- bcolor[3] = 8;
- bcolor[4] = 19;
- bcolor[5] = 22;
- bcolor[6] = 26;
- bcolor[7] = 12;
- }
- void InitRGB(void)
- {
- R[0] = 61, G[0] = 166, B[0] = 235;
- R[1] = 128, G[1] = 0, B[1] = 210;
- R[2] = 230, G[2] = 110, B[2] = 0;
- R[3] = 9, G[3] = 175, B[3] = 0;
- R[4] = 155, G[4] = 232, B[4] = 142;
- R[5] = 255, G[5] = 255, B[5] = 75;
- R[6] = 180, G[6] = 29, B[6] = 0;
- R[7] = 255, G[7] = 0, B[7] = 255;
- }
- // Display Text Shortcut
- void Print(char *string)
- {
- PRINT_STRING_WITH_LITERAL_STRING_NOW("STRING", string, 3000, 1);
- }
- // add arrow blip shortcut
- void BlipSet(void)
- {
- GENERATE_RANDOM_INT_IN_RANGE(0, 8, &C);
- ADD_BLIP_FOR_PICKUP(cash, &hunt);
- CHANGE_BLIP_COLOUR(hunt, bcolor[C]);
- CHANGE_BLIP_DISPLAY(hunt, 1);
- cashInt = 1;
- }
- // remove blip & pickup shortcut
- void RemoveBP(void)
- {
- REMOVE_PICKUP(cash);
- REMOVE_BLIP(hunt);
- cashInt = 0;
- }
- // manage hunt
- void TreasureHunt(void)
- {
- if(IS_PLAYER_PLAYING(GetPlayerIndex()))
- {
- if(hint == 0)
- {
- Print("Welcome to Liberty City 2nd Edition Treasure Hunt !");
- WAIT(3200);
- Print("You Could Win 2000 $ in Prize !");
- WAIT(3200);
- Print("Just Follow The Hints and Try to Find All Hidden Money Stacks");
- WAIT(3200);
- Print("Do You Know Liberty City Well Enuff ?");
- WAIT(3200);
- Print("We Shall See , Let The Hunt Begin !");
- WAIT(3200);
- hint = 1;
- }
- else if(hint == 1 )
- {
- if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
- {
- CREATE_MONEY_PICKUP(849.1303, -161.2305, 13.8979, 50, TRUE, &cash);
- BlipSet();
- }
- else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
- {
- Print("Hint # 1 : EAST HOOK , WOODFELLAS ");
- DRAW_CHECKPOINT_WITH_ALPHA(849.1303, -161.2305, 12.8979, 1.0, R[C], G[C], B[C], 150);
- }
- else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
- {
- Print("Treasure # 1 Collected");
- RemoveBP();
- hint = 2;
- WAIT(3000);
- }
- }
- else if(hint == 2 )
- {
- if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
- {
- CREATE_MONEY_PICKUP(1100.2333, 762.0435, 48.8270, 50, TRUE, &cash);
- BlipSet();
- }
- else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
- {
- Print("Hint # 2 : STEINWAY , END OF TRACKS");
- DRAW_CHECKPOINT_WITH_ALPHA(1100.2333, 762.0435, 47.8270, 1.0, R[C], G[C], B[C], 150);
- }
- else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
- {
- Print("Treasure # 2 Collected");
- RemoveBP();
- hint = 3;
- WAIT(3000);
- }
- }
- else if(hint == 3 )
- {
- if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
- {
- CREATE_MONEY_PICKUP(1575.8669, 862.7638, 89.7091, 50, TRUE, &cash);
- BlipSet();
- }
- else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
- {
- Print("Hint # 3 : MEADOWS PARK , BINOCULARS");
- DRAW_CHECKPOINT_WITH_ALPHA(1575.8669, 862.7638, 88.7091, 1.0, R[C], G[C], B[C], 150);
- }
- else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
- {
- Print("Treasure # 3 Collected");
- RemoveBP();
- hint = 4;
- WAIT(3000);
- }
- }
- else if(hint == 4)
- {
- if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
- {
- CREATE_MONEY_PICKUP(149.7004, -931.7015, 9.2369, 50, TRUE, &cash);
- BlipSet();
- }
- else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
- {
- Print("Hint # 4 : CASTLE GARDENS , CONSTRUCTION SITE");
- DRAW_CHECKPOINT_WITH_ALPHA(149.7004, -931.7015, 8.2369, 1.0, R[C], G[C], B[C], 150);
- }
- else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
- {
- Print("Treasure # 4 Collected");
- RemoveBP();
- hint = 5;
- WAIT(3000);
- }
- }
- else if(hint == 5)
- {
- if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
- {
- CREATE_MONEY_PICKUP(-285.3751, 491.1673, 14.7889, 50, TRUE, &cash);
- BlipSet();
- }
- else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
- {
- Print("Hint # 5 : STAR JONCTION , STAR PLAZA HOTEL");
- DRAW_CHECKPOINT_WITH_ALPHA(-285.3751, 491.1673, 13.7889, 1.0, R[C], G[C], B[C], 150);
- }
- else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
- {
- Print("Treasure # 5 Collected");
- RemoveBP();
- hint = 6;
- WAIT(3000);
- }
- }
- else if(hint == 6)
- {
- if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
- {
- CREATE_MONEY_PICKUP(-2146.5779, -498.3012, 8.0012, 50, TRUE, &cash);
- BlipSet();
- }
- else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
- {
- Print("Hint # 6 : ACTER INDUSTRIAL , WRECKED BOAT");
- DRAW_CHECKPOINT_WITH_ALPHA(-2146.5779, -498.3012, 7.0012, 1.0, R[C], G[C], B[C], 150);
- }
- else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
- {
- Print("Treasure # 6 Collected");
- RemoveBP();
- hint = 7;
- WAIT(3000);
- }
- }
- else if(hint == 7)
- {
- if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
- {
- CREATE_MONEY_PICKUP(241.3679, -397.4551, 9.0150, 50, TRUE, &cash);
- BlipSet();
- }
- else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
- {
- Print("Hint # 7 : FISHMARKET SOUTH , SKATEBOARD");
- DRAW_CHECKPOINT_WITH_ALPHA(241.3679, -397.4551, 8.0150, 1.0, R[C], G[C], B[C], 150);
- }
- else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
- {
- Print("Treasure # 7 Collected");
- RemoveBP();
- hint = 8;
- WAIT(3000);
- }
- }
- else if(hint == 8)
- {
- if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
- {
- CREATE_MONEY_PICKUP(152.8154, 74.7235, 14.7701, 50, TRUE, &cash);
- BlipSet();
- }
- else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
- {
- Print("Hint # 8 : PRESIDENT CITY , ALPHABET BROTHERHOOD CENTER");
- DRAW_CHECKPOINT_WITH_ALPHA(152.8154, 74.7235, 13.7701, 1.0, R[C], G[C], B[C], 150);
- }
- else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
- {
- Print("Treasure # 8 Collected");
- RemoveBP();
- hint = 9;
- WAIT(3000);
- }
- }
- else if(hint == 9)
- {
- if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
- {
- CREATE_MONEY_PICKUP(-117.4981, -254.0651, 12.7460, 50, TRUE, &cash);
- BlipSet();
- }
- else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
- {
- Print("Hint # 9 : LITTLE ITALY , DRUSILLA'S");
- DRAW_CHECKPOINT_WITH_ALPHA(-117.4981, -254.0651, 11.7460, 1.0, R[C], G[C], B[C], 150);
- }
- else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
- {
- Print("Treasure # 9 Collected");
- RemoveBP();
- hint = 10;
- WAIT(3000);
- }
- }
- else if(hint == 10)
- {
- if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
- {
- CREATE_MONEY_PICKUP(1001.6672, -655.6555, 17.7103, 50, TRUE, &cash);
- BlipSet();
- }
- else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
- {
- Print("Hint # 10 : FIREFLY ISLAND , LIBERTY EYE");
- DRAW_CHECKPOINT_WITH_ALPHA(1001.6672, -655.6555, 16.7103, 1.0, R[C], G[C], B[C], 150);
- }
- else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
- {
- Print("Treasure # 10 Collected");
- RemoveBP();
- hint = 11;
- WAIT(3000);
- }
- }
- else if(hint == 11)
- {
- if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
- {
- CREATE_MONEY_PICKUP(1368.5139, -26.3516, 25.3223, 50, TRUE, &cash);
- BlipSet();
- }
- else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
- {
- Print("Hint # 11 : SOUTH SLOPES , PURE LUBE CORP");
- DRAW_CHECKPOINT_WITH_ALPHA(1368.5139, -26.3516, 24.3223, 1.0, R[C], G[C], B[C], 150);
- }
- else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
- {
- Print("Treasure # 11 Collected");
- RemoveBP();
- hint = 12;
- WAIT(3000);
- }
- }
- else if(hint == 12)
- {
- if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
- {
- CREATE_MONEY_PICKUP(1240.4674, 723.1912, 45.8097, 50, TRUE, &cash);
- BlipSet();
- }
- else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
- {
- Print("Hint # 12 : EAST ISLAND CITY , PILL PHARM");
- DRAW_CHECKPOINT_WITH_ALPHA(1240.4674, 723.1912, 44.8097, 1.0, R[C], G[C], B[C], 150);
- }
- else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
- {
- Print("Treasure # 12 Collected");
- RemoveBP();
- hint = 13;
- WAIT(3000);
- }
- }
- else if(hint == 13)
- {
- if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
- {
- CREATE_MONEY_PICKUP(699.8542, 1512.4663, 14.8426, 50, TRUE, &cash);
- BlipSet();
- }
- else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
- {
- Print("Hint # 13 : SOUTH BOHAN , MUSCLE MARY'S AUTO SHOP");
- DRAW_CHECKPOINT_WITH_ALPHA(699.8542, 1512.4663, 13.8426, 1.0, R[C], G[C], B[C], 150);
- }
- else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
- {
- Print("Treasure # 13 Collected");
- RemoveBP();
- hint = 14;
- WAIT(3000);
- }
- }
- else if(hint == 14)
- {
- if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
- {
- CREATE_MONEY_PICKUP(-525.1293, 1743.8573, 8.9409, 50, TRUE, &cash);
- BlipSet();
- }
- else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
- {
- Print("Hint # 14 : NORTHWOOD , RUSTYSCHIT SALVAGE");
- DRAW_CHECKPOINT_WITH_ALPHA(-525.1293, 1743.8573, 7.9409, 1.0, R[C], G[C], B[C], 150);
- }
- else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
- {
- Print("Treasure # 14 Collected");
- RemoveBP();
- hint = 15;
- WAIT(3000);
- }
- }
- else if(hint == 15)
- {
- if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
- {
- CREATE_MONEY_PICKUP(-300.0976, 1541.5189, 24.8919, 50, TRUE, &cash);
- BlipSet();
- }
- else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
- {
- Print("Hint # 15 : NORTHWOOD , AUTO COWBOYS");
- DRAW_CHECKPOINT_WITH_ALPHA(-300.0976, 1541.5189, 23.8919, 1.0, R[C], G[C], B[C], 150);
- }
- else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
- {
- Print("Treasure # 15 Collected");
- RemoveBP();
- hint = 16;
- WAIT(3000);
- }
- }
- else if(hint == 16)
- {
- if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
- {
- CREATE_MONEY_PICKUP(472.8140, 1078.4895, 8.8609, 50, TRUE, &cash);
- BlipSet();
- }
- else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
- {
- Print("Hint # 16 : CHARGE ISLAND , BOAT HANGAR");
- DRAW_CHECKPOINT_WITH_ALPHA(472.8140, 1078.4895, 7.8609, 1.0, R[C], G[C], B[C], 150);
- }
- else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
- {
- Print("Treasure # 16 Collected");
- RemoveBP();
- hint = 17;
- WAIT(3000);
- }
- }
- else if(hint == 17)
- {
- if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
- {
- CREATE_MONEY_PICKUP(1154.3716, -589.7430, 39.0534, 50, TRUE, &cash);
- BlipSet();
- }
- else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
- {
- Print("Hint # 17 : FIREFLY ISLAND , SCREAMER");
- DRAW_CHECKPOINT_WITH_ALPHA(1154.3716, -589.7430, 38.0534, 1.0, R[C], G[C], B[C], 150);
- }
- else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
- {
- Print("Treasure # 17 Collected");
- RemoveBP();
- hint = 18;
- WAIT(3000);
- }
- }
- else if(hint == 18)
- {
- if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
- {
- CREATE_MONEY_PICKUP(1171.4799, 1082.5660, 26.3071, 50, TRUE, &cash);
- BlipSet();
- }
- else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
- {
- Print("Hint # 18 : STEINWAY , GANTRY PARK");
- DRAW_CHECKPOINT_WITH_ALPHA(1171.4799, 1082.5660, 25.3071, 1.0, R[C], G[C], B[C], 150);
- }
- else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
- {
- Print("Treasure # 18 Collected");
- RemoveBP();
- hint = 19;
- WAIT(3000);
- }
- }
- else if(hint == 19)
- {
- if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
- {
- CREATE_MONEY_PICKUP(72.8656, 436.1187, 14.7295, 50, TRUE, &cash);
- BlipSet();
- }
- else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
- {
- Print("Hint # 19 : HATTONS GARDENS , AFRICA TOWER");
- DRAW_CHECKPOINT_WITH_ALPHA(72.8656, 436.1187, 13.7295, 1.0, R[C], G[C], B[C], 150);
- }
- else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
- {
- Print("Treasure # 19 Collected");
- RemoveBP();
- hint = 20;
- WAIT(3000);
- }
- }
- else if(hint == 20)
- {
- if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
- {
- CREATE_MONEY_PICKUP(-1490.8306, 1111.7118, 32.0134, 50, TRUE, &cash);
- BlipSet();
- }
- else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
- {
- Print("Hint # 20 : ALDERNEY CITY , AUTOEROTICAR");
- DRAW_CHECKPOINT_WITH_ALPHA(-1490.8306, 1111.7118, 31.0134, 1.0, R[C], G[C], B[C], 150);
- }
- else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
- {
- Print("Treasure # 20 Collected");
- RemoveBP();
- hint = 21;
- WAIT(3000);
- }
- }
- else if(hint == 21)
- {
- if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
- {
- CREATE_MONEY_PICKUP(1230.2914, 27.8026, 43.2515, 125, TRUE, &cash);
- BlipSet();
- }
- else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
- {
- Print("Hint # 21 : SCHOTTLER , G.R. AVES FUNERALS");
- DRAW_CHECKPOINT_WITH_ALPHA(1230.2914, 27.8026, 42.2515, 1.0, R[C], G[C], B[C], 150);
- }
- else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
- {
- Print("Treasure # 21 Collected");
- RemoveBP();
- hint = 22;
- WAIT(3000);
- }
- }
- else if(hint == 22)
- {
- if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
- {
- CREATE_MONEY_PICKUP(875.1283, -537.8434, 19.6472, 125, TRUE, &cash);
- BlipSet();
- }
- else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
- {
- Print("Hint # 22 : HOVE BEACH , HOT COFFEE SHOP");
- DRAW_CHECKPOINT_WITH_ALPHA(875.1283, -537.8434, 18.6472, 1.0, R[C], G[C], B[C], 150);
- }
- else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
- {
- Print("Treasure # 22 Collected");
- RemoveBP();
- hint = 23;
- WAIT(3000);
- }
- }
- else if(hint == 23)
- {
- if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
- {
- CREATE_MONEY_PICKUP(-1347.7643, 501.7775, 14.3352, 125, TRUE, &cash);
- BlipSet();
- }
- else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
- {
- Print("Hint # 23 : ACTER, SCHORSCH & CO PAPER BAG");
- DRAW_CHECKPOINT_WITH_ALPHA(-1347.7643, 501.7775, 13.3352, 1.0, R[C], G[C], B[C], 150);
- }
- else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
- {
- Print("Treasure # 23 Collected");
- RemoveBP();
- hint = 24;
- WAIT(3000);
- }
- }
- else if(hint == 24)
- {
- if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
- {
- CREATE_MONEY_PICKUP(-412.0263, 1299.7247, 89.5138, 125, TRUE, &cash);
- BlipSet();
- }
- else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
- {
- Print("Hint # 24 : NORTH HOLLAND , HOLLAND HOSPITAL CENTER");
- DRAW_CHECKPOINT_WITH_ALPHA(-412.0263, 1299.7247, 88.5138, 1.0, R[C], G[C], B[C], 150);
- }
- else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
- {
- Print("Treasure # 24 Collected");
- RemoveBP();
- hint = 25;
- WAIT(3000);
- }
- }
- else if(hint == 25)
- {
- if(!DOES_PICKUP_EXIST(cash) && cashInt == 0)
- {
- CREATE_MONEY_PICKUP(615.3989, 1925.8347, 25.1730, 500, TRUE, &cash);
- BlipSet();
- }
- else if(DOES_PICKUP_EXIST(cash) && cashInt == 1)
- {
- Print("Hint # 25 : BOULEVARD , WELHAM PARKWAY");
- DRAW_CHECKPOINT_WITH_ALPHA(615.3989, 1925.8347, 24.1730, 1.0, R[C], G[C], B[C], 150);
- }
- else if(HAS_PICKUP_BEEN_COLLECTED(cash) && cashInt == 1)
- {
- Print("Treasure # 25 Collected");
- RemoveBP();
- hint = 26;
- WAIT(3000);
- }
- }
- else if(hint == 26)
- {
- Print("TREASURE HUNT 2ND EDITION COMPLETED !");
- WAIT(3200);
- Print("WELL DONE !");
- WAIT(3200);
- TERMINATE_THIS_SCRIPT();
- }
- }
- }
- void main(void)
- {
- THIS_SCRIPT_IS_SAFE_FOR_NETWORK_GAME();
- InitBlipColors();
- InitRGB();
- while (TRUE)
- {
- WAIT(0);
- TreasureHunt();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment