Guest User

» [FS] VodopadiSrece by Miki v1.0 «

a guest
May 14th, 2016
404
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 10.24 KB | None | 0 0
  1. /*>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
  2. <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
  3. >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
  4. >>>>>>>>>>>>>>>>>>>>>>> [FS] Vodopadi srece by Miki, v1.0 >>>>>>>>>>>>>>>>>>>>>>
  5. <<<<<<<<<<<<<<<<<<<<<<<<<<<<< OSTAVITE CREDITS >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
  6. */
  7.  
  8. //               INCLUDE              //
  9. #include <a_samp>
  10.  
  11.  
  12. //              FORWARD              //
  13. forward VodopadRadosti(playerid);
  14. //              DEFINE               //
  15. #define MAX_NOVAC 12000//(Ovdje stavite svotu novca koju vi zelite da server daje, ovo je maximalni iznos i davace random pa moze 12k i manje
  16. #define CRVENA                  0xFF0000FF
  17. #define SCM                     SendClientMessage
  18. #define SCMTA                   SendClientMessageToAll
  19. //              NEW                  //
  20. new RandomNovac;
  21. //              POCETAK              //
  22. public OnFilterScriptInit()
  23. {
  24.     print("\n--------------------------------------");
  25.     print("  FS Vodopadi srece v1.0 by: Miki  ");
  26.     print("  FS   ");
  27.     print("--------------------------------------\n");
  28. //              TIMERI               //
  29.     SetTimer("VodopadRadosti",90000*30,1);
  30. //              REMOVE OBJEKTI       //   ( Ovo ubacite u vas mod nisam define nista od toga )
  31. /*RemoveBuildingForPlayer(playerid, 3685, 1249.5547, -905.4609, 45.0313, 0.25);
  32. RemoveBuildingForPlayer(playerid, 3685, 1287.6875, -900.4609, 45.0625, 0.25);
  33. RemoveBuildingForPlayer(playerid, 3685, 1284.2031, -871.2969, 45.2734, 0.25);
  34. RemoveBuildingForPlayer(playerid, 3685, 1245.4609, -874.7031, 45.0703, 0.25);
  35. RemoveBuildingForPlayer(playerid, 617, 1235.8281, -917.5234, 41.8750, 0.25);
  36. RemoveBuildingForPlayer(playerid, 617, 1231.4141, -886.9297, 41.8750, 0.25);
  37. RemoveBuildingForPlayer(playerid, 1232, 1241.1953, -886.8438, 44.3594, 0.25);
  38. RemoveBuildingForPlayer(playerid, 617, 1227.6094, -870.8047, 41.8750, 0.25);
  39. RemoveBuildingForPlayer(playerid, 1294, 1246.4531, -924.3047, 46.2969, 0.25);
  40. RemoveBuildingForPlayer(playerid, 617, 1261.9531, -913.7813, 41.8750, 0.25);
  41. RemoveBuildingForPlayer(playerid, 1294, 1297.4375, -918.6328, 43.5703, 0.25);
  42. RemoveBuildingForPlayer(playerid, 1232, 1266.4219, -913.1797, 44.3594, 0.25);
  43. RemoveBuildingForPlayer(playerid, 1308, 1280.2422, -912.5234, 41.3047, 0.25);
  44. RemoveBuildingForPlayer(playerid, 1232, 1272.3516, -912.4531, 44.3594, 0.25);
  45. RemoveBuildingForPlayer(playerid, 617, 1275.6016, -911.9609, 41.8750, 0.25);
  46. RemoveBuildingForPlayer(playerid, 3684, 1249.5547, -905.4609, 45.0313, 0.25);
  47. RemoveBuildingForPlayer(playerid, 617, 1263.8828, -894.3516, 41.8750, 0.25);
  48. RemoveBuildingForPlayer(playerid, 1232, 1270.9609, -896.6172, 44.3594, 0.25);
  49. RemoveBuildingForPlayer(playerid, 1232, 1265.0313, -897.3516, 44.3594, 0.25);
  50. RemoveBuildingForPlayer(playerid, 617, 1271.8672, -892.3672, 41.8750, 0.25);
  51. RemoveBuildingForPlayer(playerid, 617, 1299.5000, -909.1406, 41.8750, 0.25);
  52. RemoveBuildingForPlayer(playerid, 3684, 1287.6875, -900.4609, 45.0625, 0.25);
  53. RemoveBuildingForPlayer(playerid, 5847, 1295.8594, -895.0938, 41.7109, 0.25);
  54. RemoveBuildingForPlayer(playerid, 1232, 1252.2578, -885.8750, 44.3594, 0.25);
  55. RemoveBuildingForPlayer(playerid, 617, 1262.9844, -882.2188, 41.8750, 0.25);
  56. RemoveBuildingForPlayer(playerid, 617, 1271.2031, -882.3984, 41.8750, 0.25);
  57. RemoveBuildingForPlayer(playerid, 1232, 1285.6484, -881.3125, 44.3594, 0.25);
  58. RemoveBuildingForPlayer(playerid, 3684, 1245.4609, -874.7031, 45.0703, 0.25);
  59. RemoveBuildingForPlayer(playerid, 3684, 1284.2031, -871.2969, 45.2734, 0.25);*/
  60. //              OBJEKTI              //
  61.     CreateObject(7916, 1248.08838, -857.54773, 66.96918,   0.00000, 0.00000, 0.00000);
  62.     CreateObject(8483, 1247.03296, -909.94312, 47.50089,   0.00000, 0.00000, 270.00000);
  63.     CreateObject(8483, 1290.00610, -902.85248, 47.50089,   0.00000, 0.00000, 270.00000);
  64.     CreateObject(7916, 1253.51501, -858.45447, 59.21590,   0.00000, 0.00000, 0.00000);
  65.     CreateObject(7916, 1253.51501, -858.45447, 60.89894,   0.00000, 0.00000, 0.00000);
  66.     CreateObject(7916, 1253.51501, -858.45447, 52.69496,   0.00000, 0.00000, 0.00000);
  67.     CreateObject(9833, 1266.27124, -887.73615, 44.75004,   0.00000, 0.00000, 0.00000);
  68.     CreateObject(869, 1229.04370, -867.38440, 42.28136,   0.00000, 0.00000, 0.00000);
  69.     CreateObject(869, 1233.81970, -866.53424, 42.28136,   0.00000, 0.00000, 0.00000);
  70.     CreateObject(869, 1238.28784, -865.61115, 42.28136,   0.00000, 0.00000, 0.00000);
  71.     CreateObject(869, 1230.05383, -871.28973, 42.28136,   0.00000, 0.00000, 0.00000);
  72.     CreateObject(869, 1234.43652, -870.63116, 42.28136,   0.00000, 0.00000, 0.00000);
  73.     CreateObject(869, 1239.21875, -869.39911, 42.28136,   0.00000, 0.00000, 0.00000);
  74.     CreateObject(869, 1243.15796, -864.83667, 42.28136,   0.00000, 0.00000, 0.00000);
  75.     CreateObject(869, 1243.48364, -868.07294, 42.28136,   0.00000, 0.00000, 0.00000);
  76.     CreateObject(869, 1247.82324, -863.29321, 42.28136,   0.00000, 0.00000, 0.00000);
  77.     CreateObject(869, 1248.10498, -866.76678, 42.28136,   0.00000, 0.00000, 0.00000);
  78.     CreateObject(869, 1252.25537, -862.30182, 42.28136,   0.00000, 0.00000, 0.00000);
  79.     CreateObject(869, 1252.86633, -865.94110, 42.28136,   0.00000, 0.00000, 0.00000);
  80.     CreateObject(869, 1257.13379, -861.11731, 42.28136,   0.00000, 0.00000, 0.00000);
  81.     CreateObject(869, 1257.61475, -864.39752, 42.28136,   0.00000, 0.00000, 0.00000);
  82.     CreateObject(869, 1230.24487, -875.17175, 42.28136,   0.00000, 0.00000, 0.00000);
  83.     CreateObject(869, 1230.80847, -878.35266, 42.28136,   0.00000, 0.00000, 0.00000);
  84.     CreateObject(869, 1231.15906, -881.11389, 42.28136,   0.00000, 0.00000, 0.00000);
  85.     CreateObject(869, 1231.64355, -884.15015, 42.28136,   0.00000, 0.00000, 0.00000);
  86.     CreateObject(869, 1235.99170, -883.54883, 42.28136,   0.00000, 0.00000, 0.00000);
  87.     CreateObject(869, 1235.40344, -879.87823, 42.28136,   0.00000, 0.00000, 0.00000);
  88.     CreateObject(869, 1234.70850, -876.66968, 42.28136,   0.00000, 0.00000, 0.00000);
  89.     CreateObject(869, 1234.27380, -873.26904, 42.28136,   0.00000, 0.00000, 0.00000);
  90.     CreateObject(869, 1238.45142, -872.56793, 42.28136,   0.00000, 0.00000, 0.00000);
  91.     CreateObject(869, 1242.89709, -871.54834, 42.28136,   0.00000, 0.00000, 0.00000);
  92.     CreateObject(869, 1247.45813, -870.63989, 42.28136,   0.00000, 0.00000, 0.00000);
  93.     CreateObject(869, 1252.21802, -869.70135, 42.28136,   0.00000, 0.00000, 0.00000);
  94.     CreateObject(869, 1257.33569, -868.31683, 42.28136,   0.00000, 0.00000, 0.00000);
  95.     CreateObject(869, 1258.00879, -871.90778, 42.28136,   0.00000, 0.00000, 0.00000);
  96.     CreateObject(869, 1258.01550, -875.08002, 42.28136,   0.00000, 0.00000, 0.00000);
  97.     CreateObject(869, 1258.96216, -878.99615, 42.28136,   0.00000, 0.00000, 0.00000);
  98.     CreateObject(869, 1253.76062, -872.76532, 42.28136,   0.00000, 0.00000, 0.00000);
  99.     CreateObject(869, 1249.31140, -873.82520, 42.28136,   0.00000, 0.00000, 0.00000);
  100.     CreateObject(869, 1250.14966, -877.14966, 42.28136,   0.00000, 0.00000, 0.00000);
  101.     CreateObject(869, 1250.73975, -880.77380, 42.28136,   0.00000, 0.00000, 0.00000);
  102.     CreateObject(869, 1244.75037, -875.05658, 42.28136,   0.00000, 0.00000, 0.00000);
  103.     CreateObject(869, 1245.21692, -878.48907, 42.28136,   0.00000, 0.00000, 0.00000);
  104.     CreateObject(869, 1246.04810, -881.65259, 42.28136,   0.00000, 0.00000, 0.00000);
  105.     CreateObject(869, 1239.66333, -876.08185, 42.28136,   0.00000, 0.00000, 0.00000);
  106.     CreateObject(869, 1240.57324, -879.73340, 42.28136,   0.00000, 0.00000, 0.00000);
  107.     CreateObject(869, 1241.39490, -883.23724, 42.28136,   0.00000, 0.00000, 0.00000);
  108.     CreateObject(869, 1254.13074, -876.37000, 42.28136,   0.00000, 0.00000, 0.00000);
  109.     CreateObject(869, 1254.62671, -880.14655, 42.28136,   0.00000, 0.00000, 0.00000);
  110.     CreateObject(896, 1290.33423, -850.39142, 46.79693,   0.00000, 0.00000, 0.00000);
  111.     CreateObject(751, 1290.48376, -868.23926, 50.21722,   0.00000, 0.00000, 0.00000);
  112.     CreateObject(751, 1272.64221, -868.93481, 50.21722,   0.00000, 0.00000, 0.00000);
  113.     CreateObject(751, 1277.93848, -871.68103, 50.21722,   0.00000, 0.00000, 0.00000);
  114.     CreateObject(880, 1271.30176, -875.54047, 42.18048,   0.00000, 0.00000, 0.00000);
  115.     CreateObject(880, 1289.76025, -867.51605, 42.18048,   0.00000, 0.00000, 0.00000);
  116.     CreateObject(879, 1287.29553, -871.72736, 42.18050,   0.00000, 0.00000, 0.00000);
  117.     CreateObject(879, 1277.27051, -866.57092, 42.18050,   0.00000, 0.00000, 0.00000);
  118.     CreateObject(900, 1242.04199, -854.93579, 42.18050,   0.00000, 0.00000, 0.00000);
  119.     CreateObject(1211, 1271.57385, -905.39008, 42.39844,   356.85840, 0.00000, 3.14159);
  120.     CreateObject(19054, 1267.03198, -866.97131, 42.50000,   9.96000, -40.19999, 0.00000);
  121.     CreateObject(19055, 1284.28406, -858.69342, 42.50000,   85.86000, -133.86000, 0.00000);
  122.     CreateObject(19056, 1273.35840, -858.04498, 43.07180,   0.00000, 0.00000, 0.00000);
  123.     CreateObject(19056, 1265.99609, -860.36060, 43.07180,   -7.08000, 22.62000, 146.70000);
  124.     CreateObject(19057, 1280.13940, -869.48187, 43.07180,   -250.31996, 45.60000, 0.00000);
  125.     CreateObject(19054, 1271.16614, -856.70129, 52.34388,   9.96000, -40.19999, 0.00000);
  126.     CreateObject(19055, 1257.44958, -861.52228, 61.17740,   9.96000, -40.20000, 0.00000);
  127.     CreateObject(19056, 1240.80933, -863.65448, 61.17740,   9.96000, -40.20000, 0.00000);
  128.     CreateObject(19057, 1253.07849, -855.71179, 61.17740,   32.70000, -146.94000, 51.12000);
  129.     CreateObject(19941, 1260.91711, -853.86346, 66.35549,   0.00000, 0.00000, 0.00000);
  130.     CreateObject(19941, 1252.68408, -861.57184, 66.35549,   0.00000, 0.00000, 0.00000);
  131.     CreateObject(19941, 1245.90625, -859.73132, 66.35549,   0.00000, 0.00000, 0.00000);
  132.     CreateObject(19941, 1251.32739, -863.98364, 66.35549,   0.00000, 0.00000, 0.00000);
  133.     CreateObject(19941, 1263.25134, -859.02277, 66.35549,   0.00000, 0.00000, 0.00000);
  134.     CreateObject(698, 1290.11877, -901.62048, 47.44410,   0.00000, 0.00000, 0.00000);
  135.     CreateObject(698, 1245.30115, -907.70905, 47.44410,   0.00000, 0.00000, 0.00000);
  136.     return 1;
  137. }
  138.  
  139. public VodopadRadosti(playerid)
  140. {
  141.     if(IsPlayerInRangeOfPoint(playerid, 10, 1144.0874, -929.6754, 43.1901))
  142.     {
  143.         RandomNovac = random(MAX_NOVAC);
  144.         GivePlayerMoney(playerid,RandomNovac);
  145.         SCM(playerid, CRVENA, "Cestitamo!Dobili ste novac od Vodopada Srece!!!.");
  146.         SCMTA(CRVENA,"VODOPADI SRECE SU SE AKTIVIRALI I DAJU NOVAC IGRACIMA OKO SEBE!!!.");
  147.        
  148.     }
  149.     return 1;
  150. }
Advertisement
Add Comment
Please, Sign In to add comment