Guest User

Untitled

a guest
Nov 20th, 2013
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.18 KB | None | 0 0
  1. //============================================================================//
  2. // //
  3. // CREADO POR THE_CRAZZY_BOY //
  4. // //
  5. // FECHA DE INICIO DE SCRIPT 20 DE NOVIEMBRE DE 2011 //
  6. // //
  7. // PROHIBIDO ROBAR CREDITOS //
  8. // //
  9. //============================================================================//
  10. /* INCLUDES */
  11. #include <a_samp>
  12. /* COLORES */
  13.  
  14. #define COLOR_WHITE 0xFFFFFFAA//Color
  15. /* NEWS */
  16. new EstaDeBasurero[MAX_PLAYERS];
  17. new Float:PuntosBasura[61][3] = {
  18. {351.8791,-1542.9525,32.8241},
  19. {528.3840,-1421.4326,15.5214},
  20. {540.4012,-1581.2511,15.5786},
  21. {717.4601,-1588.2983,13.7824},
  22. {641.3878,-1290.5045,14.7365},
  23. {697.1915,-1154.5682,15.0319},
  24. {624.9969,-1500.6953,14.2819},
  25. {657.1359,-1754.1011,12.9295},
  26. {807.3387,-1786.8031,12.9919},
  27. {855.5547,-1599.3353,12.9575},
  28. {920.0758,-1435.9244,12.9004},
  29. {829.3325,-1318.7393,12.9412},
  30. {800.4104,-1153.3473,23.5362},
  31. {919.1944,-983.7144,37.6564},
  32. {960.5366,-1125.8149,23.2350},
  33. {1027.4044,-1222.7533,16.3308},
  34. {1055.6002,-1347.0660,12.9492},
  35. {1035.0167,-1661.7706,12.9492},
  36. {1135.6582,-1714.5726,13.2095},
  37. {1199.2737,-1449.2653,12.9445},
  38. {1166.7722,-1279.0509,13.1084},
  39. {1175.7271,-1139.5891,23.2408},
  40. {1165.6539,-996.5869,36.7975},
  41. {1003.9905,-956.1555,41.1873},
  42. {1259.8721,-1006.3247,33.8007},
  43. {1328.4585,-1282.8423,12.9490},
  44. {1367.6403,-1077.8971,24.8246},
  45. {1479.8086,-1109.1764,23.2225},
  46. {1452.0596,-1320.6748,12.9491},
  47. {1427.4011,-1576.5649,12.9273},
  48. {1425.8943,-1669.9651,12.9492},
  49. {1487.8964,-1734.6465,12.9490},
  50. {1510.6815,-1735.1931,12.9490},
  51. {1532.3123,-1674.5083,12.9493},
  52. {1532.5154,-1663.3816,12.9490},
  53. {1566.7845,-1823.5012,12.9490},
  54. {1443.2334,-1869.8840,12.9569},
  55. {1691.9636,-1775.9987,12.9493},
  56. {1692.5615,-1628.3645,12.9492},
  57. {1848.1118,-1512.0933,12.9324},
  58. {1852.4690,-1359.8696,12.9649},
  59. {1869.1888,-1079.5444,23.2335},
  60. {1968.1589,-1195.7958,25.2591},
  61. {2020.4669,-1264.0336,23.3865},
  62. {2118.3831,-1222.1611,23.3709},
  63. {2178.0645,-1160.1169,24.2061},
  64. {2329.2275,-1156.1409,26.3632},
  65. {2269.0276,-1248.3162,23.3730},
  66. {2164.4541,-1366.1935,23.3944},
  67. {2109.7114,-1488.5392,23.3842},
  68. {2079.1208,-1842.4808,12.9491},
  69. {2185.7046,-1897.3514,12.9632},
  70. {2218.7041,-1798.5983,12.7617},
  71. {2349.9788,-1750.7246,12.9493},
  72. {2432.4709,-1653.3844,26.1642},
  73. {2453.5630,-1373.6967,23.4024},
  74. {2565.4963,-1260.5342,45.5413},
  75. {2640.2383,-1369.0193,30.8336},
  76. {2674.0586,-1448.9202,29.9459},
  77. {2719.6277,-1570.2716,18.7877},
  78. {2513.8059,-1599.9224,17.1046}
  79. };
  80. /* INICIO DEL SCRIPT */
  81. public OnPlayerCommandText(playerid, cmdtext[]) {
  82. if (strcmp("/EmpezarBasura", cmdtext, true, 10) == 0) {
  83. if(EstaDeBasurero[playerid] == 1) {
  84. SendClientMessage(playerid, COLOR_WHITE, "Ya estas Trabajando de basurero.");
  85. return true;
  86. }
  87. new randomize;
  88. randomize = random(sizeof(PuntosBasura));
  89. SetPlayerCheckpoint(playerid, PuntosBasura[randomize][0], PuntosBasura[randomize][1], PuntosBasura[randomize][2], 5.0);
  90. SendClientMessage(playerid, COLOR_WHITE, "Dirígete a los checkpoints.");
  91. EstaDeBasurero[playerid] = 1;
  92. return true;
  93. }
  94. if (strcmp("/Dejarbasura", cmdtext, true, 10) == 0) {
  95. SendClientMessage(playerid, COLOR_WHITE, "Has dejado de barrer.");
  96. EstaDeBasurero[playerid] = 0;
  97. return true;
  98. }
  99. return false;
  100. }
  101. forward EncontrarAlgo(listitem, playerid);
  102. public EncontrarAlgo(listitem, playerid) {
  103. switch(listitem) {
  104. case 0: {
  105. SendClientMessage(playerid, COLOR_WHITE, "Encontraste un sobre vacio.");
  106. }
  107. case 1: {
  108. SendClientMessage(playerid, COLOR_WHITE, "Encontraste algo de dinero.");//debajo de esto añade la funcion para dar dinero
  109. }
  110. case 2: {
  111. SendClientMessage(playerid, COLOR_WHITE, "Encontraste un sobre vacio.");
  112. }
  113. case 3: {
  114. SendClientMessage(playerid, COLOR_WHITE, "Encontraste un sobre vacio.");
  115. }
  116. case 4: {
  117. SendClientMessage(playerid, COLOR_WHITE, "Encontraste un sobre vacio.");
  118. }
  119. case 5: {
  120. SendClientMessage(playerid, COLOR_WHITE, "Encontraste un sobre vacio.");
  121. }
  122. case 6: {
  123. SendClientMessage(playerid, COLOR_WHITE, "Encontraste un sobre vacio.");
  124. }
  125. case 7: {
  126. SendClientMessage(playerid, COLOR_WHITE, "Encontraste un sobre vacio.");
  127. }
  128. }
  129. return true;
  130. }
  131. //============================================================================//
  132. // SI TE SIRVIO RESPETA EL TRABAJO DEL CREADOR //
  133. // //
  134. //=========================FINAL DEL FILESCRIPT===============================//
Advertisement
Add Comment
Please, Sign In to add comment