Advertisement
Guest User

Weed_

a guest
Apr 7th, 2009
352
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.72 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. #define FILTERSCRIPT
  4.  
  5. #define COLOR_YELLOW 0xFFFF00FF
  6. #define COLOR_LIGHTBLUE 0x00C2ECFF
  7. #define COLOR_ORANGE 0xF97804FF
  8.  
  9. new Oysters[MAX_PLAYERS];
  10.  
  11. new Oyster1;
  12. new Oyster2;
  13. new Oyster3;
  14. new Oyster4;
  15. new Oyster5;
  16. new Oyster6;
  17. new Oyster7;
  18. new Oyster8;
  19. new Oyster9;
  20. new Oyster10;
  21. new Oyster11;
  22. new Oyster12;
  23. new Oyster13;
  24. new Oyster14;
  25. new Oyster15;
  26.  
  27. #if defined FILTERSCRIPT
  28.  
  29. main()
  30. {
  31. print("20 Oysters around Los Santos");
  32. print("By Weed_");
  33. print("(c) 2009");
  34. }
  35.  
  36. #endif
  37.  
  38. public OnPlayerSpawn(playerid)
  39. {
  40. Oyster1 = CreatePickup(1274,3,346.3458,-1898.2368,1.3864);
  41. Oyster2 = CreatePickup(1274,3,98.3260,-1705.0507,10.3529);
  42. Oyster3 = CreatePickup(1274,3,-75.7051,-1633.2715,3.7328);
  43. Oyster4 = CreatePickup(1274,3,-234.8539,-1767.4536,5.9058);
  44. Oyster5 = CreatePickup(1274,3,-317.2898,-1858.8009,-0.3238);
  45. Oyster6 = CreatePickup(1274,3,2888.6104,-2163.7422,3.9428);
  46. Oyster7 = CreatePickup(1274,3,2356.4895,-2496.0344,-0.4923);
  47. Oyster8 = CreatePickup(1274,3,2576.1619,-2519.2100,-0.6037);
  48. Oyster9 = CreatePickup(1274,3,2819.5198,-2373.1494,-0.8556);
  49. Oyster10 = CreatePickup(1274,3,2872.7061,-1802.0498,11.6499);
  50. Oyster11 = CreatePickup(1274,3,2580.3853,-2207.1416,-0.2188);
  51. Oyster12 = CreatePickup(1274,3,840.4246,-1898.2656,-0.5307);
  52. Oyster13 = CreatePickup(1274,3,1553.5088,-2769.1963,1.3832);
  53. Oyster14 = CreatePickup(1274,3,2275.6672,-2482.4595,8.2896);
  54. Oyster15 = CreatePickup(1274,3,2808.1487,-2247.5713,1.5181);
  55. Oysters[playerid] = 0;
  56. return 1;
  57. }
  58.  
  59. public OnPlayerPickUpPickup(playerid, pickupid)
  60. {
  61. if(pickupid == Oyster1 || Oyster2 || Oyster3 || Oyster4 || Oyster5 || Oyster6 || Oyster7 || Oyster8 || Oyster9 || Oyster10 || Oyster11 || Oyster12 || Oyster13 || Oyster14 || Oyster15)
  62. {
  63. new string[128];
  64. Oysters[playerid] += 1;
  65. GameTextForPlayer(playerid, "You have found a~n~~r~Oyster", 5000, 5);
  66. format(string, sizeof(string), "You have found %d/15 Oysters!", Oysters[playerid]);
  67. SendClientMessage(playerid, COLOR_ORANGE, string);
  68. }
  69.  
  70. else if(pickupid == Oyster1 || Oyster2 || Oyster3 || Oyster4 || Oyster5 || Oyster6 || Oyster7 || Oyster8 || Oyster9 || Oyster10 || Oyster11 || Oyster12 || Oyster13 || Oyster14 || Oyster15)
  71. {
  72. if(Oysters[playerid] == 14)
  73. {
  74. new string[128];
  75. new name[MAX_PLAYER_NAME];
  76. Oysters[playerid] += 1;
  77. GameTextForPlayer(playerid, "You have found a~n~~r~Oyster", 5000, 5);
  78. SendClientMessage(playerid, COLOR_LIGHTBLUE, "Congratulations, you have found the last Oyster!");
  79. GetPlayerName(playerid, name, sizeof(name));
  80. format(string, sizeof(string), "~ %s has found all the Oysters!", name);
  81. SendClientMessageToAll(COLOR_YELLOW, string);
  82. }
  83. }
  84. return 1;
  85. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement