Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #define FILTERSCRIPT
- #define COLOR_YELLOW 0xFFFF00FF
- #define COLOR_LIGHTBLUE 0x00C2ECFF
- #define COLOR_ORANGE 0xF97804FF
- new Oysters[MAX_PLAYERS];
- new Oyster1;
- new Oyster2;
- new Oyster3;
- new Oyster4;
- new Oyster5;
- new Oyster6;
- new Oyster7;
- new Oyster8;
- new Oyster9;
- new Oyster10;
- new Oyster11;
- new Oyster12;
- new Oyster13;
- new Oyster14;
- new Oyster15;
- #if defined FILTERSCRIPT
- main()
- {
- print("20 Oysters around Los Santos");
- print("By Weed_");
- print("(c) 2009");
- }
- #endif
- public OnPlayerSpawn(playerid)
- {
- Oyster1 = CreatePickup(1274,3,346.3458,-1898.2368,1.3864);
- Oyster2 = CreatePickup(1274,3,98.3260,-1705.0507,10.3529);
- Oyster3 = CreatePickup(1274,3,-75.7051,-1633.2715,3.7328);
- Oyster4 = CreatePickup(1274,3,-234.8539,-1767.4536,5.9058);
- Oyster5 = CreatePickup(1274,3,-317.2898,-1858.8009,-0.3238);
- Oyster6 = CreatePickup(1274,3,2888.6104,-2163.7422,3.9428);
- Oyster7 = CreatePickup(1274,3,2356.4895,-2496.0344,-0.4923);
- Oyster8 = CreatePickup(1274,3,2576.1619,-2519.2100,-0.6037);
- Oyster9 = CreatePickup(1274,3,2819.5198,-2373.1494,-0.8556);
- Oyster10 = CreatePickup(1274,3,2872.7061,-1802.0498,11.6499);
- Oyster11 = CreatePickup(1274,3,2580.3853,-2207.1416,-0.2188);
- Oyster12 = CreatePickup(1274,3,840.4246,-1898.2656,-0.5307);
- Oyster13 = CreatePickup(1274,3,1553.5088,-2769.1963,1.3832);
- Oyster14 = CreatePickup(1274,3,2275.6672,-2482.4595,8.2896);
- Oyster15 = CreatePickup(1274,3,2808.1487,-2247.5713,1.5181);
- Oysters[playerid] = 0;
- return 1;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- if(pickupid == Oyster1 || Oyster2 || Oyster3 || Oyster4 || Oyster5 || Oyster6 || Oyster7 || Oyster8 || Oyster9 || Oyster10 || Oyster11 || Oyster12 || Oyster13 || Oyster14 || Oyster15)
- {
- new string[128];
- Oysters[playerid] += 1;
- GameTextForPlayer(playerid, "You have found a~n~~r~Oyster", 5000, 5);
- format(string, sizeof(string), "You have found %d/15 Oysters!", Oysters[playerid]);
- SendClientMessage(playerid, COLOR_ORANGE, string);
- }
- else if(pickupid == Oyster1 || Oyster2 || Oyster3 || Oyster4 || Oyster5 || Oyster6 || Oyster7 || Oyster8 || Oyster9 || Oyster10 || Oyster11 || Oyster12 || Oyster13 || Oyster14 || Oyster15)
- {
- if(Oysters[playerid] == 14)
- {
- new string[128];
- new name[MAX_PLAYER_NAME];
- Oysters[playerid] += 1;
- GameTextForPlayer(playerid, "You have found a~n~~r~Oyster", 5000, 5);
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "Congratulations, you have found the last Oyster!");
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string), "~ %s has found all the Oysters!", name);
- SendClientMessageToAll(COLOR_YELLOW, string);
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement