Advertisement
DiGiTaL_AnGeL

FSevent - DM

Dec 12th, 2012
390
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 19.12 KB | None | 0 0
  1. /* DDDDD      @  GGGGGGGGGG  @  TTTTTTTTTTTTTT  AAAAAAAA LL              AAAAAAAA NN    NN GGGGGGGGGG EEEEEEEE LL
  2.    DDDDDDD   III GGGGGGGGGG III TTTTTT  TTTTTT  AA    AA LL              AA    AA NN    NN GGGGGGGGGG EE       LL
  3.    DD    DD  I I GG         I I      T  T       AA    AA LL              AA    AA NN    NN GG         EE       LL
  4.    DD    DDD I I GG         I I      T  T       AA    AA LL              AA    AA NNNN  NN GG         EE       LL
  5.    DD    DDD I I GG   GGGGG I I      T  T       AAAAAAAA LL              AAAAAAAA NN NN NN GG   GGGGG EEEEEE   LL
  6.    DD    DD  I I GG      GG I I      T  T       AA    AA LL              AA    AA NN  NNNN GG      GG EE       LL
  7.    DDDDDDD   I I GGGGGGG GG I I      T  T       AA    AA LL              AA    AA NN    NN GGGGGGG GG EE       LL
  8.    DDDDD     III GGGGGGGGGG III      TTTT       AA    AA LLLLLLLLL       AA    AA NN    NN GGGGGGGGGG EEEEEEEE LLLLLLLLL
  9.  
  10. ==============================================Fy Snow event - DM version ===============================================
  11.        
  12.     Fs made by me(DiGitaL AnGeL) Why? Cause I was boring. The map is not made by me, is made by Miron Dorin(well he told me that he made it). I asked
  13. for his permission to do a FS on his map, and he said it's OK. This is the version for DM servers. Why? Cause the event is always activated, and noone
  14. has to start the event. You spawn at the event after you die, unless you type /leavefs.
  15.     P.S. If you want to recompile the FS, you need DiGiTaL Colors, made by me. Or just change the colors code with others defined by you.
  16.     Credits to ~> DiGitaL AnGeL -> For making the FS + DiGitaL Colors
  17.                ~> Miron Dorin   -> For making the map
  18.                ~> Y_Less        -> For YCMD
  19.                ~> Kalcor        -> For SA:MP
  20.                ~> spookie       -> For the PAWN Compiler GUI
  21.                
  22.     Commands ~> /joinfsevent --> Allows you to choose a team for the event(CT or Terrorists)
  23.              ~> /snowoff --> Disables the snow
  24.              ~> /snow --> Enables the snow
  25.              ~> /leavefs --> Respawns youto your normal spawn.
  26.                                                                 DiGiTaL_AnGeL 2012(tm)                                          */
  27. #define FILTERSCRIPT
  28. //______________________________INCLUDES______________________________________________
  29. #include <a_samp>
  30. #include <YSI\y_commands>
  31. #include <digital_colors>
  32. //_______________________________DEFINES_______________________________________
  33. #define SCM SendClientMessage
  34. #define PTP PlayerToPoint
  35. #define SCMTA SendClientMessageToAll
  36. #define TSelect 364
  37. #define Help 365
  38. //________________________NEW________________________________
  39. new snow[3];
  40. new destroyedsnow = 0;
  41. new ct = 0;
  42. new terro = 0;
  43. //____________________FORWARDS_____________________________
  44. forward EC3();
  45. forward EC2();
  46. forward EC1();
  47. forward ES();
  48. //_________________________________________________________
  49. #if defined FILTERSCRIPT
  50.  
  51. public OnFilterScriptInit()
  52. {
  53.     snow[1] = CreateObject(18864, -164.14, 1418.76, 1119.20,   47.00, -91.00, 69.00);
  54.     snow[2] = CreateObject(18864, -148.04, 1411.10, 1119.20,   47.00, -91.00, 69.00);
  55.     CreateObject(8664, -249.62, 1403.76, 1131.98,   0.00, 0.00, 0.00);
  56.     CreateObject(8664, -249.62, 1403.76, 1131.98,   0.00, 0.00, 0.00);
  57.     CreateObject(3915, -166.23, 1431.95, 1132.33,   0.00, 0.00, 359.98);
  58.     CreateObject(3915, -166.29, 1390.17, 1132.33,   0.00, 0.00, 359.98);
  59.     CreateObject(3915, -219.29, 1325.08, 1132.33,   0.00, 0.00, 269.08);
  60.     CreateObject(3915, -166.29, 1348.73, 1132.33,   0.00, 0.00, 359.98);
  61.     CreateObject(3915, -260.81, 1325.57, 1132.33,   0.00, 0.00, 269.08);
  62.     CreateObject(3915, -292.01, 1386.37, 1132.33,   0.00, 0.00, 180.23);
  63.     CreateObject(3915, -302.68, 1325.94, 1132.33,   0.00, 0.00, 269.08);
  64.     CreateObject(3915, -292.15, 1428.38, 1132.33,   0.00, 0.00, 180.23);
  65.     CreateObject(3915, -292.05, 1344.85, 1132.35,   0.00, 0.00, 180.23);
  66.     CreateObject(3095, -199.14, 1357.15, 1131.30,   0.00, 90.00, 0.00);
  67.     CreateObject(3095, -216.23, 1361.94, 1136.66,   89.54, 6.00, 264.75);
  68.     CreateObject(3095, -203.24, 1361.68, 1140.66,   0.00, 0.00, 0.52);
  69.     CreateObject(3095, -203.30, 1370.63, 1140.71,   0.00, 0.00, 0.52);
  70.     CreateObject(3095, -212.30, 1370.61, 1140.71,   0.00, 0.00, 0.52);
  71.     CreateObject(3095, -212.15, 1361.86, 1140.69,   0.00, 0.00, 0.52);
  72.     CreateObject(3095, -212.27, 1374.89, 1136.66,   89.54, 6.00, 174.31);
  73.     CreateObject(3095, -216.36, 1370.60, 1136.66,   89.54, 6.00, 264.75);
  74.     CreateObject(3095, -203.26, 1374.97, 1136.66,   89.54, 6.00, 174.31);
  75.     CreateObject(3095, -199.08, 1370.83, 1136.66,   89.54, 6.00, 85.43);
  76.     CreateObject(3095, -198.85, 1361.81, 1136.66,   89.54, 6.00, 85.43);
  77.     CreateObject(3095, -202.77, 1357.69, 1136.66,   89.54, 6.00, 353.77);
  78.     CreateObject(3095, -211.80, 1357.73, 1136.66,   89.54, 6.00, 353.77);
  79.     CreateObject(3917, -205.22, 1382.71, 1115.81,   0.00, 270.00, 181.50);
  80.     CreateObject(3917, -205.15, 1378.79, 1115.81,   0.00, 270.00, 181.50);
  81.     CreateObject(3917, -220.25, 1369.06, 1115.81,   0.00, 270.00, 270.25);
  82.     CreateObject(3917, -224.42, 1369.01, 1115.81,   0.00, 270.00, 270.25);
  83.     CreateObject(3917, -210.27, 1353.62, 1115.81,   0.00, 270.00, 0.75);
  84.     CreateObject(3917, -210.24, 1349.84, 1115.81,   0.00, 270.00, 0.75);
  85.     CreateObject(3917, -194.64, 1363.52, 1115.81,   0.00, 270.00, 89.75);
  86.     CreateObject(3917, -190.37, 1363.49, 1115.81,   0.00, 270.00, 89.74);
  87.     CreateObject(3095, -199.19, 1391.67, 1136.66,   89.54, 6.00, 83.43);
  88.     CreateObject(3095, -199.12, 1400.57, 1136.66,   89.54, 6.00, 83.42);
  89.     CreateObject(3095, -203.64, 1391.61, 1140.71,   0.00, 0.00, 0.52);
  90.     CreateObject(3095, -203.71, 1400.52, 1140.71,   0.00, 0.00, 0.52);
  91.     CreateObject(3095, -212.72, 1400.48, 1140.71,   0.00, 0.00, 0.52);
  92.     CreateObject(3095, -212.63, 1391.54, 1140.68,   0.00, 0.00, 0.52);
  93.     CreateObject(3095, -203.21, 1387.41, 1136.66,   89.54, 6.00, 354.67);
  94.     CreateObject(3095, -212.25, 1387.33, 1136.66,   89.54, 6.00, 354.67);
  95.     CreateObject(3095, -216.90, 1391.27, 1136.66,   89.54, 6.00, 264.92);
  96.     CreateObject(3095, -217.05, 1400.27, 1136.66,   89.54, 6.00, 264.92);
  97.     CreateObject(3095, -213.13, 1404.45, 1136.66,   89.54, 6.00, 174.92);
  98.     CreateObject(3095, -203.94, 1404.60, 1136.66,   89.54, 6.00, 174.91);
  99.     CreateObject(3917, -204.90, 1408.50, 1115.81,   0.00, 270.00, 179.50);
  100.     CreateObject(3917, -204.81, 1412.58, 1115.81,   0.00, 270.00, 179.49);
  101.     CreateObject(3917, -220.36, 1398.63, 1115.81,   0.00, 270.00, 270.49);
  102.     CreateObject(3917, -225.04, 1398.60, 1115.81,   0.00, 270.00, 270.49);
  103.     CreateObject(3917, -210.91, 1383.21, 1115.81,   0.00, 270.00, 0.99);
  104.     CreateObject(3917, -210.89, 1379.22, 1115.81,   0.00, 270.00, 0.74);
  105.     CreateObject(3917, -195.10, 1393.38, 1115.81,   0.00, 270.00, 90.74);
  106.     CreateObject(3917, -191.08, 1393.41, 1115.81,   0.00, 270.00, 90.74);
  107.     CreateObject(3095, -199.14, 1404.94, 1131.30,   0.00, 90.00, 0.00);
  108.     CreateObject(3095, -231.59, 1391.62, 1140.58,   0.00, 0.00, 0.52);
  109.     CreateObject(3095, -231.56, 1387.20, 1136.66,   89.54, 6.00, 354.67);
  110.     CreateObject(3095, -231.68, 1400.62, 1140.59,   0.00, 0.00, 0.52);
  111.     CreateObject(3095, -240.68, 1400.52, 1140.63,   0.00, 0.00, 0.52);
  112.     CreateObject(3095, -240.61, 1391.54, 1140.59,   0.00, 0.00, 0.52);
  113.     CreateObject(3095, -240.58, 1387.09, 1136.66,   89.54, 6.00, 354.67);
  114.     CreateObject(3095, -227.55, 1391.65, 1136.66,   89.54, 6.00, 84.67);
  115.     CreateObject(3095, -227.65, 1400.67, 1136.66,   89.54, 6.00, 84.67);
  116.     CreateObject(3095, -231.96, 1404.77, 1136.66,   89.54, 6.00, 174.67);
  117.     CreateObject(3095, -240.73, 1404.67, 1136.66,   89.54, 6.00, 174.67);
  118.     CreateObject(3095, -245.02, 1400.12, 1136.66,   89.54, 6.00, 264.67);
  119.     CreateObject(3095, -244.94, 1391.11, 1136.66,   89.54, 6.00, 264.66);
  120.     CreateObject(3917, -252.97, 1398.67, 1115.81,   0.00, 270.00, 270.75);
  121.     CreateObject(3917, -248.54, 1398.71, 1115.81,   0.00, 270.00, 270.75);
  122.     CreateObject(3917, -233.67, 1412.65, 1115.81,   0.00, 270.00, 180.75);
  123.     CreateObject(3917, -233.57, 1408.30, 1115.81,   0.00, 270.00, 180.75);
  124.     CreateObject(3917, -220.02, 1393.21, 1115.81,   0.00, 270.00, 90.74);
  125.     CreateObject(3917, -238.97, 1383.16, 1115.81,   0.00, 270.00, 0.74);
  126.     CreateObject(3917, -238.94, 1379.19, 1115.81,   0.00, 270.00, 0.74);
  127.     CreateObject(3917, -223.42, 1393.18, 1115.81,   0.00, 270.00, 90.74);
  128.     CreateObject(3095, -231.22, 1358.17, 1136.66,   89.54, 6.00, 353.77);
  129.     CreateObject(3095, -240.23, 1358.21, 1136.66,   89.54, 6.00, 353.77);
  130.     CreateObject(3095, -240.25, 1362.62, 1140.68,   0.00, 0.00, 0.52);
  131.     CreateObject(3095, -231.26, 1362.71, 1140.69,   0.00, 0.00, 0.52);
  132.     CreateObject(3095, -231.36, 1371.70, 1140.68,   0.00, 0.00, 0.52);
  133.     CreateObject(3095, -240.36, 1371.61, 1140.69,   0.00, 0.00, 0.52);
  134.     CreateObject(3095, -226.88, 1362.42, 1136.66,   89.54, 6.00, 83.52);
  135.     CreateObject(3095, -226.87, 1371.40, 1136.66,   89.54, 6.00, 83.51);
  136.     CreateObject(3095, -231.05, 1375.74, 1136.66,   89.54, 6.00, 173.51);
  137.     CreateObject(3095, -240.16, 1375.84, 1136.66,   89.54, 6.00, 173.51);
  138.     CreateObject(3095, -244.34, 1371.63, 1136.66,   89.54, 6.00, 264.51);
  139.     CreateObject(3095, -244.26, 1362.63, 1136.66,   89.54, 6.00, 264.51);
  140.     CreateObject(3917, -232.65, 1379.38, 1115.81,   0.00, 270.00, 179.74);
  141.     CreateObject(3917, -232.67, 1383.69, 1115.81,   0.00, 270.00, 179.74);
  142.     CreateObject(3917, -247.97, 1370.11, 1115.81,   0.00, 270.00, 269.24);
  143.     CreateObject(3917, -252.50, 1370.18, 1115.81,   0.00, 270.00, 269.23);
  144.     CreateObject(3917, -238.32, 1353.95, 1115.81,   0.00, 270.00, 0.48);
  145.     CreateObject(3917, -238.28, 1350.23, 1115.81,   0.00, 270.00, 0.48);
  146.     CreateObject(3917, -222.97, 1364.04, 1115.81,   0.00, 270.00, 89.98);
  147.     CreateObject(3917, -218.97, 1364.01, 1115.81,   0.00, 270.00, 89.97);
  148.     CreateObject(3095, -245.31, 1404.89, 1131.30,   0.00, 90.00, 0.00);
  149.     CreateObject(9163, -168.89, 1351.02, 1136.60,   0.00, 0.00, 0.00);
  150.     CreateObject(9163, -197.00, 1329.27, 1136.60,   0.00, 0.00, 270.00);
  151.     CreateObject(9163, -235.81, 1329.25, 1136.60,   0.00, 0.00, 270.00);
  152.     CreateObject(9163, -275.02, 1329.21, 1136.60,   0.00, 0.00, 270.00);
  153.     CreateObject(9163, -271.39, 1357.41, 1136.60,   0.00, 0.00, 180.00);
  154.     CreateObject(9163, -271.37, 1396.86, 1136.60,   0.00, 0.00, 179.99);
  155.     CreateObject(9163, -271.35, 1435.19, 1136.60,   0.00, 0.00, 179.99);
  156.     CreateObject(9163, -244.80, 1432.33, 1136.60,   0.00, 0.00, 89.99);
  157.     CreateObject(9163, -206.27, 1432.36, 1136.60,   0.00, 0.00, 89.99);
  158.     CreateObject(9163, -166.67, 1432.32, 1136.60,   0.00, 0.00, 89.99);
  159.     CreateObject(9163, -169.16, 1405.46, 1136.60,   0.00, 0.00, 359.99);
  160.     CreateObject(9163, -169.07, 1389.82, 1136.60,   0.00, 0.00, 359.99);
  161.     CreateObject(9163, -271.37, 1357.30, 1144.55,   0.00, 0.00, 179.99);
  162.     CreateObject(9163, -275.02, 1329.21, 1144.58,   0.00, 0.00, 270.00);
  163.     CreateObject(9163, -235.81, 1329.25, 1144.53,   0.00, 0.00, 270.00);
  164.     CreateObject(9163, -197.00, 1329.27, 1144.55,   0.00, 0.00, 270.00);
  165.     CreateObject(9163, -168.89, 1351.02, 1144.60,   0.00, 0.00, 0.00);
  166.     CreateObject(9163, -169.07, 1389.82, 1144.60,   0.00, 0.00, 359.99);
  167.     CreateObject(9163, -169.16, 1405.46, 1144.55,   0.00, 0.00, 359.99);
  168.     CreateObject(9163, -166.67, 1432.32, 1144.58,   0.00, 0.00, 89.99);
  169.     CreateObject(9163, -206.27, 1432.36, 1144.58,   0.00, 0.00, 89.99);
  170.     CreateObject(9163, -244.80, 1432.33, 1144.55,   0.00, 0.00, 89.99);
  171.     CreateObject(9163, -271.35, 1434.81, 1144.58,   0.00, 0.00, 179.99);
  172.     CreateObject(9163, -271.33, 1397.00, 1144.53,   0.00, 0.00, 179.99);
  173.     CreateObject(3915, -219.76, 1432.81, 1132.33,   0.00, 0.00, 89.98);
  174.     CreateObject(3915, -250.99, 1433.00, 1132.33,   0.00, 0.00, 89.98);
  175.     CreateObject(3915, -270.43, 1378.81, 1132.33,   0.00, 0.00, 179.98);
  176.     CreateObject(3915, -270.80, 1380.86, 1132.28,   0.00, 0.00, 179.97);
  177.     CreateObject(3917, -241.97, 1379.26, 1125.60,   0.00, 0.00, 0.00);
  178.     CreateObject(3917, -242.42, 1366.28, 1125.60,   0.00, 0.00, 0.00);
  179.     CreateObject(3917, -252.79, 1365.78, 1125.60,   0.00, 0.00, 0.00);
  180.     CreateObject(3917, -241.34, 1353.32, 1125.60,   0.00, 0.00, 0.00);
  181.     CreateObject(3917, -241.79, 1340.29, 1125.60,   0.00, 0.00, 0.00);
  182.     CreateObject(3917, -223.99, 1367.25, 1125.60,   0.00, 0.00, 0.00);
  183.     CreateObject(3917, -231.74, 1367.62, 1125.88,   0.00, 0.00, 0.00);
  184.     CreateObject(3915, -241.45, 1423.45, 1116.10,   0.00, 90.00, 270.08);
  185.     CreateObject(3915, -200.81, 1423.49, 1116.10,   0.00, 90.00, 270.07);
  186.     CreateObject(3915, -165.13, 1423.29, 1116.10,   0.00, 90.00, 270.07);
  187.     CreateObject(3915, -178.04, 1402.66, 1116.10,   0.00, 90.00, 180.07);
  188.     CreateObject(3915, -177.92, 1360.46, 1116.10,   0.00, 90.00, 180.07);
  189.     CreateObject(3915, -199.14, 1338.15, 1116.10,   0.00, 90.00, 90.07);
  190.     CreateObject(3915, -241.66, 1338.36, 1116.10,   0.00, 90.00, 90.06);
  191.     CreateObject(3915, -262.38, 1359.60, 1116.10,   0.00, 90.00, 0.06);
  192.     CreateObject(3915, -262.44, 1401.90, 1116.10,   0.00, 90.00, 0.06);
  193.     CreateObject(3915, -262.48, 1443.27, 1116.10,   0.00, 90.00, 0.06);
  194.     CreateObject(3915, -178.04, 1318.20, 1116.10,   0.00, 90.00, 180.06);
  195.     CreateObject(3095, -244.20, 1357.31, 1131.30,   0.00, 90.00, 0.00);
  196.     CreateObject(1224, -244.04, 1405.98, 1132.74,   0.00, 0.00, 0.00);
  197.     CreateObject(1224, -199.85, 1405.97, 1132.74,   0.00, 0.00, 0.00);
  198.     CreateObject(1224, -242.94, 1356.84, 1132.74,   0.00, 0.00, 0.00);
  199.     CreateObject(1224, -199.95, 1356.23, 1132.74,   0.00, 0.00, 0.00);
  200. //_______________________________The CT & T neons + angels______________________
  201.     CreateObject(18647, -258.73, 1419.59, 1132.17,   0.00, 0.00, 45.00);
  202.     CreateObject(18647, -260.15, 1421.00, 1132.17,   0.00, 0.00, 45.00);
  203.     CreateObject(18647, -260.21, 1422.38, 1132.17,   0.00, 0.00, 135.00);
  204.     CreateObject(18647, -261.57, 1421.02, 1132.17,   0.00, 0.00, 135.00);
  205.     CreateObject(18648, -180.98, 1343.22, 1132.14,   0.00, 0.00, 142.00);
  206.     CreateObject(18648, -181.68, 1340.75, 1132.14,   0.00, 0.00, 45.00);
  207.     CreateObject(18648, -180.96, 1340.07, 1132.14,   0.00, 0.00, 142.00);
  208.     CreateObject(18648, -179.58, 1341.84, 1132.14,   0.00, 0.00, 142.00);
  209.     CreateObject(18648, -179.68, 1343.31, 1132.14,   0.00, 0.00, 45.00);
  210.     CreateObject(3462, -179.12, 1422.37, 1133.63,   0.00, 0.00, 47.00);
  211.     CreateObject(3462, -261.00, 1339.45, 1133.63,   0.00, 0.00, 229.00);
  212. //______________________________________________________________________________
  213.     print(" ______________________ ");
  214.     print("| FY_Snow event loaded |");
  215.     print("|      by DiGiTaL_AnGeL|");
  216.     print("|______________________|");
  217.     return 1;
  218. }
  219.  
  220. public OnFilterScriptExit()
  221. {
  222.     print(" ________________________");
  223.     print("| FY_Snow event unloaded |");
  224.     print("|       by DiGiTaL_AnGeL |");
  225.     print("|________________________|");
  226.     return 1;
  227. }
  228. //_________________________________OnDialogResponse_____________________________
  229. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  230. {
  231.     if(dialogid == TSelect)
  232.     {
  233.         if(response)
  234.         {
  235.             if(listitem == 0)
  236.             {
  237.                 SetPlayerPos(playerid, -181.5529, 1342.0728, 1133.0503);
  238.                 SetPlayerSkin(playerid, 285);
  239.                 SCM(playerid, ALBASTRU, "You have chosen the CT team! Your objective is to kill the terrorists!");
  240.                 ResetPlayerWeapons(playerid);
  241.                 GivePlayerWeapon(playerid, 4, 1);//Knife
  242.                 GivePlayerWeapon(playerid, 16, 1);//Grenade
  243.                 GivePlayerWeapon(playerid, 23, 200);//SD Pistol
  244.                 GivePlayerWeapon(playerid, 29, 500);//MP5
  245.                 GivePlayerWeapon(playerid, 31, 500);//M4
  246.                 GivePlayerWeapon(playerid, 34, 100);//Sniper
  247.                 ct = 1;
  248.             }
  249.             if(listitem == 1)
  250.             {
  251.                 SetPlayerPos(playerid, -259.5252, 1420.4543, 1133.0581);
  252.                 SetPlayerSkin(playerid, 122);
  253.                 SCM(playerid, ROSU, "You have chosen the Terrorists team! You objective is to kill all the CTs. Exterminate!");
  254.                 ResetPlayerWeapons(playerid);
  255.                 GivePlayerWeapon(playerid, 4, 1);//Knife
  256.                 GivePlayerWeapon(playerid, 16, 1);//Grenade
  257.                 GivePlayerWeapon(playerid, 24, 500);//Deagle
  258.                 GivePlayerWeapon(playerid, 28, 500);//Uzi
  259.                 GivePlayerWeapon(playerid, 30, 500);//AK 47
  260.                 GivePlayerWeapon(playerid, 34, 100);//Sniper
  261.                 GivePlayerWeapon(playerid, 39, 1);//C4
  262.                 terro = 1;
  263.             }
  264.         }
  265.         return 1;
  266.     }
  267.     return 0;
  268. }
  269.  
  270. public OnPlayerDeath(playerid, killerid, reason)
  271. {
  272.     if (terro == 1)
  273.     {
  274.         SetPlayerPos(playerid, -181.5529, 1342.0728, 1133.0503);
  275.         SetPlayerSkin(playerid, 285);
  276.         ResetPlayerWeapons(playerid);
  277.         GivePlayerWeapon(playerid, 4, 1);//Knife
  278.         GivePlayerWeapon(playerid, 16, 1);//Grenade
  279.         GivePlayerWeapon(playerid, 23, 200);//SD Pistol
  280.         GivePlayerWeapon(playerid, 29, 500);//MP5
  281.         GivePlayerWeapon(playerid, 31, 500);//M4
  282.         GivePlayerWeapon(playerid, 34, 100);//Sniper
  283.     }
  284.     else if (ct == 1)
  285.     {
  286.         SetPlayerPos(playerid, -181.5529, 1342.0728, 1133.0503);
  287.         SetPlayerSkin(playerid, 285);
  288.         ResetPlayerWeapons(playerid);
  289.         GivePlayerWeapon(playerid, 4, 1);//Knife
  290.         GivePlayerWeapon(playerid, 16, 1);//Grenade
  291.         GivePlayerWeapon(playerid, 23, 200);//SD Pistol
  292.         GivePlayerWeapon(playerid, 29, 500);//MP5
  293.         GivePlayerWeapon(playerid, 31, 500);//M4
  294.         GivePlayerWeapon(playerid, 34, 100);//Sniper
  295.     }
  296.     return 1;
  297. }
  298. //__________________________________<+>COMMANDS<+>______________________________
  299. YCMD:joinfsevent(playerid, params[], help)
  300. {
  301.     #pragma unused params, help
  302.     ShowPlayerDialog(playerid, TSelect, DIALOG_STYLE_LIST, "Choose a team!", "{0000FF}Counter Terrorists\n{FF0000}Terrorists", "OK", "Abort");
  303.     return 1;
  304. }
  305. YCMD:snowoff(playerid, params[], help)
  306. {
  307.     #pragma unused params, help
  308.     if(IsPlayerAdmin(playerid))
  309.     {
  310.         if(destroyedsnow == 1)
  311.         {
  312.             SCM(playerid, GRI, "The snow is already disabled!");
  313.         }
  314.         else
  315.         {
  316.             DestroyObject(snow[1]);
  317.             DestroyObject(snow[2]);
  318.             SCM(playerid, VERDE, "You have disabled the snow! To activate it type /snow!");
  319.             destroyedsnow = 1;
  320.         }
  321.     }
  322.     else
  323.     {
  324.         SCM(playerid, ROSU, "You don't have the permission to do that!");
  325.     }
  326.     return 1;
  327. }
  328. YCMD:snow(playerid, params[], help)
  329. {
  330.     #pragma unused params, help
  331.     if(IsPlayerAdmin(playerid))
  332.     {
  333.         if(destroyedsnow == 0)
  334.         {
  335.             SCM(playerid, MOV, "The snow it's already enabled!");
  336.         }
  337.         else
  338.         {
  339.             SCM(playerid, GRI, "The snow is enabled again!");
  340.             snow[1] = CreateObject(18864, -164.14, 1418.76, 1119.20,   47.00, -91.00, 69.00);
  341.             snow[2] = CreateObject(18864, -148.04, 1411.10, 1119.20,   47.00, -91.00, 69.00);
  342.             destroyedsnow = 0;
  343.         }
  344.     }
  345.     else
  346.     {
  347.         SCM(playerid, ROSU, "You don't have the permission to do that!");
  348.     }
  349.     return 1;
  350. }
  351. YCMD:leavefs(playerid, params[], help)
  352. {
  353.     #pragma unused params, help
  354.     if(ct == 1 || terro == 1)
  355.     {
  356.         SpawnPlayer(playerid);
  357.         SCM(playerid, MOV, "You have left the event and lost $500!");
  358.         ResetPlayerWeapons(playerid);
  359.         GivePlayerMoney(playerid, -500);
  360.         ct = 0;
  361.         terro = 0;
  362.     }
  363.     else
  364.     {
  365.         SCM(playerid, ROSU, "You are not at the event!");
  366.     }
  367.     return 1;
  368. }
  369. YCMD:fshelp(playerid, params[], help)
  370. {
  371.     #pragma unused params, help
  372.     new info[300];
  373.     if(IsPlayerAdmin(playerid))
  374.     {
  375.         strcat(info, "{0000FF}To disable the snow ~> /snowoff\n", sizeof(info));
  376.         strcat(info, "{FFFF00}To enable the snow ~> /snpw\n", sizeof(info));
  377.         strcat(info, "{FF00FF}To join the event ~> /joinfsevent\n", sizeof(info));
  378.         strcat(info, "{00FFFF}To leave the event ~> /leavefs\n", sizeof(info));
  379.         ShowPlayerDialog(playerid, Help, DIALOG_STYLE_MSGBOX, "Fy Snow help", info, "OK", "");
  380.     }
  381.     return 1;
  382. }
  383. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement