Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* DDDDD @ GGGGGGGGGG @ TTTTTTTTTTTTTT AAAAAAAA LL AAAAAAAA NN NN GGGGGGGGGG EEEEEEEE LL
- DDDDDDD III GGGGGGGGGG III TTTTTT TTTTTT AA AA LL AA AA NN NN GGGGGGGGGG EE LL
- DD DD I I GG I I T T AA AA LL AA AA NN NN GG EE LL
- DD DDD I I GG I I T T AA AA LL AA AA NNNN NN GG EE LL
- DD DDD I I GG GGGGG I I T T AAAAAAAA LL AAAAAAAA NN NN NN GG GGGGG EEEEEE LL
- DD DD I I GG GG I I T T AA AA LL AA AA NN NNNN GG GG EE LL
- DDDDDDD I I GGGGGGG GG I I T T AA AA LL AA AA NN NN GGGGGGG GG EE LL
- DDDDD III GGGGGGGGGG III TTTT AA AA LLLLLLLLL AA AA NN NN GGGGGGGGGG EEEEEEEE LLLLLLLLL
- ==============================================Fy Snow event - RP version ===============================================
- 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
- for his permission to do a FS on his map, and he said it's OK. This is the version for RP versions. Why? Well after you die, you won't respawn at the
- event, you'll respawn at your normal spawn. There is also a cmds that you won't find on the DM version : /startevent & /fsevent. Why? Cause in a dm,
- you can always tp to the event, and there is no starting, the event is always on. ;)
- 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.
- Credits to ~> DiGitaL AnGeL -> For making the FS + DiGitaL Colors
- ~> Miron Dorin -> For making the map
- ~> Y_Less -> For YCMD
- ~> Kalcor -> For SA:MP
- ~> spookie -> For the PAWN Compiler GUI
- Commands ~> /fsevent --> Enables/disables the event
- ~> /startevent --> Starts the event(unfreezes the players)
- ~> /joinfsevent --> Allows you to choose a team for the event(CT or Terrorists)
- ~> /snowoff --> Disables the snow
- ~> /snow --> Enables the snow
- ~> /leavefs --> Respawns you, but you loose $500.
- DiGiTaL_AnGeL 2012(tm) */
- #define FILTERSCRIPT
- //______________________________INCLUDES______________________________________________
- #include <a_samp>
- #include <YSI\y_commands>
- #include <digital_colors>
- //_______________________________DEFINES_______________________________________
- #define SCM SendClientMessage
- #define PTP PlayerToPoint
- #define GPN GetPlayerName(playerid, sendername, sizeof(sendername))
- #define SCMTA SendClientMessageToAll
- #define TSelect 364
- #define Help 365
- //________________________NEW________________________________
- new fsevent = 0;
- new snow[3];
- new destroyedsnow = 0;
- new ct = 0;
- new terro = 0;
- //____________________FORWARDS_____________________________
- forward EC3();
- forward EC2();
- forward EC1();
- forward ES();
- //_________________________________________________________
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- snow[1] = CreateObject(18864, -164.14, 1418.76, 1119.20, 47.00, -91.00, 69.00);
- snow[2] = CreateObject(18864, -148.04, 1411.10, 1119.20, 47.00, -91.00, 69.00);
- CreateObject(8664, -249.62, 1403.76, 1131.98, 0.00, 0.00, 0.00);
- CreateObject(8664, -249.62, 1403.76, 1131.98, 0.00, 0.00, 0.00);
- CreateObject(3915, -166.23, 1431.95, 1132.33, 0.00, 0.00, 359.98);
- CreateObject(3915, -166.29, 1390.17, 1132.33, 0.00, 0.00, 359.98);
- CreateObject(3915, -219.29, 1325.08, 1132.33, 0.00, 0.00, 269.08);
- CreateObject(3915, -166.29, 1348.73, 1132.33, 0.00, 0.00, 359.98);
- CreateObject(3915, -260.81, 1325.57, 1132.33, 0.00, 0.00, 269.08);
- CreateObject(3915, -292.01, 1386.37, 1132.33, 0.00, 0.00, 180.23);
- CreateObject(3915, -302.68, 1325.94, 1132.33, 0.00, 0.00, 269.08);
- CreateObject(3915, -292.15, 1428.38, 1132.33, 0.00, 0.00, 180.23);
- CreateObject(3915, -292.05, 1344.85, 1132.35, 0.00, 0.00, 180.23);
- CreateObject(3095, -199.14, 1357.15, 1131.30, 0.00, 90.00, 0.00);
- CreateObject(3095, -216.23, 1361.94, 1136.66, 89.54, 6.00, 264.75);
- CreateObject(3095, -203.24, 1361.68, 1140.66, 0.00, 0.00, 0.52);
- CreateObject(3095, -203.30, 1370.63, 1140.71, 0.00, 0.00, 0.52);
- CreateObject(3095, -212.30, 1370.61, 1140.71, 0.00, 0.00, 0.52);
- CreateObject(3095, -212.15, 1361.86, 1140.69, 0.00, 0.00, 0.52);
- CreateObject(3095, -212.27, 1374.89, 1136.66, 89.54, 6.00, 174.31);
- CreateObject(3095, -216.36, 1370.60, 1136.66, 89.54, 6.00, 264.75);
- CreateObject(3095, -203.26, 1374.97, 1136.66, 89.54, 6.00, 174.31);
- CreateObject(3095, -199.08, 1370.83, 1136.66, 89.54, 6.00, 85.43);
- CreateObject(3095, -198.85, 1361.81, 1136.66, 89.54, 6.00, 85.43);
- CreateObject(3095, -202.77, 1357.69, 1136.66, 89.54, 6.00, 353.77);
- CreateObject(3095, -211.80, 1357.73, 1136.66, 89.54, 6.00, 353.77);
- CreateObject(3917, -205.22, 1382.71, 1115.81, 0.00, 270.00, 181.50);
- CreateObject(3917, -205.15, 1378.79, 1115.81, 0.00, 270.00, 181.50);
- CreateObject(3917, -220.25, 1369.06, 1115.81, 0.00, 270.00, 270.25);
- CreateObject(3917, -224.42, 1369.01, 1115.81, 0.00, 270.00, 270.25);
- CreateObject(3917, -210.27, 1353.62, 1115.81, 0.00, 270.00, 0.75);
- CreateObject(3917, -210.24, 1349.84, 1115.81, 0.00, 270.00, 0.75);
- CreateObject(3917, -194.64, 1363.52, 1115.81, 0.00, 270.00, 89.75);
- CreateObject(3917, -190.37, 1363.49, 1115.81, 0.00, 270.00, 89.74);
- CreateObject(3095, -199.19, 1391.67, 1136.66, 89.54, 6.00, 83.43);
- CreateObject(3095, -199.12, 1400.57, 1136.66, 89.54, 6.00, 83.42);
- CreateObject(3095, -203.64, 1391.61, 1140.71, 0.00, 0.00, 0.52);
- CreateObject(3095, -203.71, 1400.52, 1140.71, 0.00, 0.00, 0.52);
- CreateObject(3095, -212.72, 1400.48, 1140.71, 0.00, 0.00, 0.52);
- CreateObject(3095, -212.63, 1391.54, 1140.68, 0.00, 0.00, 0.52);
- CreateObject(3095, -203.21, 1387.41, 1136.66, 89.54, 6.00, 354.67);
- CreateObject(3095, -212.25, 1387.33, 1136.66, 89.54, 6.00, 354.67);
- CreateObject(3095, -216.90, 1391.27, 1136.66, 89.54, 6.00, 264.92);
- CreateObject(3095, -217.05, 1400.27, 1136.66, 89.54, 6.00, 264.92);
- CreateObject(3095, -213.13, 1404.45, 1136.66, 89.54, 6.00, 174.92);
- CreateObject(3095, -203.94, 1404.60, 1136.66, 89.54, 6.00, 174.91);
- CreateObject(3917, -204.90, 1408.50, 1115.81, 0.00, 270.00, 179.50);
- CreateObject(3917, -204.81, 1412.58, 1115.81, 0.00, 270.00, 179.49);
- CreateObject(3917, -220.36, 1398.63, 1115.81, 0.00, 270.00, 270.49);
- CreateObject(3917, -225.04, 1398.60, 1115.81, 0.00, 270.00, 270.49);
- CreateObject(3917, -210.91, 1383.21, 1115.81, 0.00, 270.00, 0.99);
- CreateObject(3917, -210.89, 1379.22, 1115.81, 0.00, 270.00, 0.74);
- CreateObject(3917, -195.10, 1393.38, 1115.81, 0.00, 270.00, 90.74);
- CreateObject(3917, -191.08, 1393.41, 1115.81, 0.00, 270.00, 90.74);
- CreateObject(3095, -199.14, 1404.94, 1131.30, 0.00, 90.00, 0.00);
- CreateObject(3095, -231.59, 1391.62, 1140.58, 0.00, 0.00, 0.52);
- CreateObject(3095, -231.56, 1387.20, 1136.66, 89.54, 6.00, 354.67);
- CreateObject(3095, -231.68, 1400.62, 1140.59, 0.00, 0.00, 0.52);
- CreateObject(3095, -240.68, 1400.52, 1140.63, 0.00, 0.00, 0.52);
- CreateObject(3095, -240.61, 1391.54, 1140.59, 0.00, 0.00, 0.52);
- CreateObject(3095, -240.58, 1387.09, 1136.66, 89.54, 6.00, 354.67);
- CreateObject(3095, -227.55, 1391.65, 1136.66, 89.54, 6.00, 84.67);
- CreateObject(3095, -227.65, 1400.67, 1136.66, 89.54, 6.00, 84.67);
- CreateObject(3095, -231.96, 1404.77, 1136.66, 89.54, 6.00, 174.67);
- CreateObject(3095, -240.73, 1404.67, 1136.66, 89.54, 6.00, 174.67);
- CreateObject(3095, -245.02, 1400.12, 1136.66, 89.54, 6.00, 264.67);
- CreateObject(3095, -244.94, 1391.11, 1136.66, 89.54, 6.00, 264.66);
- CreateObject(3917, -252.97, 1398.67, 1115.81, 0.00, 270.00, 270.75);
- CreateObject(3917, -248.54, 1398.71, 1115.81, 0.00, 270.00, 270.75);
- CreateObject(3917, -233.67, 1412.65, 1115.81, 0.00, 270.00, 180.75);
- CreateObject(3917, -233.57, 1408.30, 1115.81, 0.00, 270.00, 180.75);
- CreateObject(3917, -220.02, 1393.21, 1115.81, 0.00, 270.00, 90.74);
- CreateObject(3917, -238.97, 1383.16, 1115.81, 0.00, 270.00, 0.74);
- CreateObject(3917, -238.94, 1379.19, 1115.81, 0.00, 270.00, 0.74);
- CreateObject(3917, -223.42, 1393.18, 1115.81, 0.00, 270.00, 90.74);
- CreateObject(3095, -231.22, 1358.17, 1136.66, 89.54, 6.00, 353.77);
- CreateObject(3095, -240.23, 1358.21, 1136.66, 89.54, 6.00, 353.77);
- CreateObject(3095, -240.25, 1362.62, 1140.68, 0.00, 0.00, 0.52);
- CreateObject(3095, -231.26, 1362.71, 1140.69, 0.00, 0.00, 0.52);
- CreateObject(3095, -231.36, 1371.70, 1140.68, 0.00, 0.00, 0.52);
- CreateObject(3095, -240.36, 1371.61, 1140.69, 0.00, 0.00, 0.52);
- CreateObject(3095, -226.88, 1362.42, 1136.66, 89.54, 6.00, 83.52);
- CreateObject(3095, -226.87, 1371.40, 1136.66, 89.54, 6.00, 83.51);
- CreateObject(3095, -231.05, 1375.74, 1136.66, 89.54, 6.00, 173.51);
- CreateObject(3095, -240.16, 1375.84, 1136.66, 89.54, 6.00, 173.51);
- CreateObject(3095, -244.34, 1371.63, 1136.66, 89.54, 6.00, 264.51);
- CreateObject(3095, -244.26, 1362.63, 1136.66, 89.54, 6.00, 264.51);
- CreateObject(3917, -232.65, 1379.38, 1115.81, 0.00, 270.00, 179.74);
- CreateObject(3917, -232.67, 1383.69, 1115.81, 0.00, 270.00, 179.74);
- CreateObject(3917, -247.97, 1370.11, 1115.81, 0.00, 270.00, 269.24);
- CreateObject(3917, -252.50, 1370.18, 1115.81, 0.00, 270.00, 269.23);
- CreateObject(3917, -238.32, 1353.95, 1115.81, 0.00, 270.00, 0.48);
- CreateObject(3917, -238.28, 1350.23, 1115.81, 0.00, 270.00, 0.48);
- CreateObject(3917, -222.97, 1364.04, 1115.81, 0.00, 270.00, 89.98);
- CreateObject(3917, -218.97, 1364.01, 1115.81, 0.00, 270.00, 89.97);
- CreateObject(3095, -245.31, 1404.89, 1131.30, 0.00, 90.00, 0.00);
- CreateObject(9163, -168.89, 1351.02, 1136.60, 0.00, 0.00, 0.00);
- CreateObject(9163, -197.00, 1329.27, 1136.60, 0.00, 0.00, 270.00);
- CreateObject(9163, -235.81, 1329.25, 1136.60, 0.00, 0.00, 270.00);
- CreateObject(9163, -275.02, 1329.21, 1136.60, 0.00, 0.00, 270.00);
- CreateObject(9163, -271.39, 1357.41, 1136.60, 0.00, 0.00, 180.00);
- CreateObject(9163, -271.37, 1396.86, 1136.60, 0.00, 0.00, 179.99);
- CreateObject(9163, -271.35, 1435.19, 1136.60, 0.00, 0.00, 179.99);
- CreateObject(9163, -244.80, 1432.33, 1136.60, 0.00, 0.00, 89.99);
- CreateObject(9163, -206.27, 1432.36, 1136.60, 0.00, 0.00, 89.99);
- CreateObject(9163, -166.67, 1432.32, 1136.60, 0.00, 0.00, 89.99);
- CreateObject(9163, -169.16, 1405.46, 1136.60, 0.00, 0.00, 359.99);
- CreateObject(9163, -169.07, 1389.82, 1136.60, 0.00, 0.00, 359.99);
- CreateObject(9163, -271.37, 1357.30, 1144.55, 0.00, 0.00, 179.99);
- CreateObject(9163, -275.02, 1329.21, 1144.58, 0.00, 0.00, 270.00);
- CreateObject(9163, -235.81, 1329.25, 1144.53, 0.00, 0.00, 270.00);
- CreateObject(9163, -197.00, 1329.27, 1144.55, 0.00, 0.00, 270.00);
- CreateObject(9163, -168.89, 1351.02, 1144.60, 0.00, 0.00, 0.00);
- CreateObject(9163, -169.07, 1389.82, 1144.60, 0.00, 0.00, 359.99);
- CreateObject(9163, -169.16, 1405.46, 1144.55, 0.00, 0.00, 359.99);
- CreateObject(9163, -166.67, 1432.32, 1144.58, 0.00, 0.00, 89.99);
- CreateObject(9163, -206.27, 1432.36, 1144.58, 0.00, 0.00, 89.99);
- CreateObject(9163, -244.80, 1432.33, 1144.55, 0.00, 0.00, 89.99);
- CreateObject(9163, -271.35, 1434.81, 1144.58, 0.00, 0.00, 179.99);
- CreateObject(9163, -271.33, 1397.00, 1144.53, 0.00, 0.00, 179.99);
- CreateObject(3915, -219.76, 1432.81, 1132.33, 0.00, 0.00, 89.98);
- CreateObject(3915, -250.99, 1433.00, 1132.33, 0.00, 0.00, 89.98);
- CreateObject(3915, -270.43, 1378.81, 1132.33, 0.00, 0.00, 179.98);
- CreateObject(3915, -270.80, 1380.86, 1132.28, 0.00, 0.00, 179.97);
- CreateObject(3917, -241.97, 1379.26, 1125.60, 0.00, 0.00, 0.00);
- CreateObject(3917, -242.42, 1366.28, 1125.60, 0.00, 0.00, 0.00);
- CreateObject(3917, -252.79, 1365.78, 1125.60, 0.00, 0.00, 0.00);
- CreateObject(3917, -241.34, 1353.32, 1125.60, 0.00, 0.00, 0.00);
- CreateObject(3917, -241.79, 1340.29, 1125.60, 0.00, 0.00, 0.00);
- CreateObject(3917, -223.99, 1367.25, 1125.60, 0.00, 0.00, 0.00);
- CreateObject(3917, -231.74, 1367.62, 1125.88, 0.00, 0.00, 0.00);
- CreateObject(3915, -241.45, 1423.45, 1116.10, 0.00, 90.00, 270.08);
- CreateObject(3915, -200.81, 1423.49, 1116.10, 0.00, 90.00, 270.07);
- CreateObject(3915, -165.13, 1423.29, 1116.10, 0.00, 90.00, 270.07);
- CreateObject(3915, -178.04, 1402.66, 1116.10, 0.00, 90.00, 180.07);
- CreateObject(3915, -177.92, 1360.46, 1116.10, 0.00, 90.00, 180.07);
- CreateObject(3915, -199.14, 1338.15, 1116.10, 0.00, 90.00, 90.07);
- CreateObject(3915, -241.66, 1338.36, 1116.10, 0.00, 90.00, 90.06);
- CreateObject(3915, -262.38, 1359.60, 1116.10, 0.00, 90.00, 0.06);
- CreateObject(3915, -262.44, 1401.90, 1116.10, 0.00, 90.00, 0.06);
- CreateObject(3915, -262.48, 1443.27, 1116.10, 0.00, 90.00, 0.06);
- CreateObject(3915, -178.04, 1318.20, 1116.10, 0.00, 90.00, 180.06);
- CreateObject(3095, -244.20, 1357.31, 1131.30, 0.00, 90.00, 0.00);
- CreateObject(1224, -244.04, 1405.98, 1132.74, 0.00, 0.00, 0.00);
- CreateObject(1224, -199.85, 1405.97, 1132.74, 0.00, 0.00, 0.00);
- CreateObject(1224, -242.94, 1356.84, 1132.74, 0.00, 0.00, 0.00);
- CreateObject(1224, -199.95, 1356.23, 1132.74, 0.00, 0.00, 0.00);
- //_______________________________The CT & T neons + angels______________________
- CreateObject(18647, -258.73, 1419.59, 1132.17, 0.00, 0.00, 45.00);
- CreateObject(18647, -260.15, 1421.00, 1132.17, 0.00, 0.00, 45.00);
- CreateObject(18647, -260.21, 1422.38, 1132.17, 0.00, 0.00, 135.00);
- CreateObject(18647, -261.57, 1421.02, 1132.17, 0.00, 0.00, 135.00);
- CreateObject(18648, -180.98, 1343.22, 1132.14, 0.00, 0.00, 142.00);
- CreateObject(18648, -181.68, 1340.75, 1132.14, 0.00, 0.00, 45.00);
- CreateObject(18648, -180.96, 1340.07, 1132.14, 0.00, 0.00, 142.00);
- CreateObject(18648, -179.58, 1341.84, 1132.14, 0.00, 0.00, 142.00);
- CreateObject(18648, -179.68, 1343.31, 1132.14, 0.00, 0.00, 45.00);
- CreateObject(3462, -179.12, 1422.37, 1133.63, 0.00, 0.00, 47.00);
- CreateObject(3462, -261.00, 1339.45, 1133.63, 0.00, 0.00, 229.00);
- //______________________________________________________________________________
- print(" ______________________ ");
- print("| FY_Snow event loaded |");
- print("| by DiGiTaL_AnGeL|");
- print("|______________________|");
- return 1;
- }
- public OnFilterScriptExit()
- {
- print(" ________________________");
- print("| FY_Snow event unloaded |");
- print("| by DiGiTaL_AnGeL |");
- print("|________________________|");
- return 1;
- }
- //_________________________________OnDialogResponse_____________________________
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == TSelect)
- {
- if(response)
- {
- if(listitem == 0)
- {
- SetPlayerPos(playerid, -181.5529, 1342.0728, 1133.0503);
- SetPlayerSkin(playerid, 285);
- SCM(playerid, ALBASTRU, "You have chosen the CT team! Your objective is to kill the terrorists!");
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 4, 1);//Knife
- GivePlayerWeapon(playerid, 16, 1);//Grenade
- GivePlayerWeapon(playerid, 23, 200);//SD Pistol
- GivePlayerWeapon(playerid, 29, 500);//MP5
- GivePlayerWeapon(playerid, 31, 500);//M4
- GivePlayerWeapon(playerid, 34, 100);//Sniper
- TogglePlayerControllable(playerid, 0);
- ct = 1;
- }
- if(listitem == 1)
- {
- SetPlayerPos(playerid, -259.5252, 1420.4543, 1133.0581);
- SetPlayerSkin(playerid, 122);
- SCM(playerid, ROSU, "You have chosen the Terrorists team! You objective is to kill all the CTs. Exterminate!");
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 4, 1);//Knife
- GivePlayerWeapon(playerid, 16, 1);//Grenade
- GivePlayerWeapon(playerid, 24, 500);//Deagle
- GivePlayerWeapon(playerid, 28, 500);//Uzi
- GivePlayerWeapon(playerid, 30, 500);//AK 47
- GivePlayerWeapon(playerid, 34, 100);//Sniper
- GivePlayerWeapon(playerid, 39, 1);//C4
- TogglePlayerControllable(playerid, 0);
- terro = 1;
- }
- }
- return 1;
- }
- return 0;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- if (terro == 1 || ct == 1)
- {
- ResetPlayerWeapons(playerid);
- SCM(playerid, ROSU, "You have died in battle! Thank you for playing!");
- return 1;
- }
- return 1;
- }
- public EC3()
- {
- for(new i = 0; i <= MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- GameTextForPlayer(i,"~r~Event Countdown: ~n~~n~~r~3",1000,4);
- new Float:X, Float:Y, Float:Z;
- GetPlayerPos(i, X,Y,Z);
- PlayerPlaySound(i, 1056, X, Y, Z);
- }
- }
- return 1;
- }
- public EC2()
- {
- for(new i = 0; i<= MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- GameTextForPlayer(i, "~r~Event Countdown: ~n~~n~~r~2", 1000, 4);
- new Float:x, Float:y, Float:z;
- GetPlayerPos(i, x, y, z);
- PlayerPlaySound(i, 1056, x, y, z);
- }
- }
- return 1;
- }
- public EC1()
- {
- for(new i = 0; i<= MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- GameTextForPlayer(i, "~r~Event Countdown: ~n~~n~~r~1", 1000, 4);
- new Float:x, Float:y, Float:z;
- GetPlayerPos(i, x, y, z);
- PlayerPlaySound(i, 1056, x, y, z);
- }
- }
- return 1;
- }
- public ES()
- {
- for(new i = 0; i<= MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- GameTextForPlayer(i, "~r~Event Countdown: ~n~~n~~u~~r~Start!~u~", 1000, 4);
- new Float:x, Float:y, Float:z;
- GetPlayerPos(i, x, y, z);
- PlayerPlaySound(i, 1056, x, y, z);
- TogglePlayerControllable(i, 1);
- }
- }
- return 1;
- }
- //__________________________________<+>COMMANDS<+>______________________________
- YCMD:fsevent(playerid, params[], help)
- {
- #pragma unused params, help
- if(IsPlayerAdmin(playerid))
- {
- if(fsevent == 0)
- {
- fsevent =1;
- SCM(playerid, VERDE, "You have succesfully activated the fy_snow event!");
- SCMTA(PORTOCALIU, "The Fy_Snow event has been activated! Type /joinfsevent to join!");
- }
- else if(fsevent == 0)
- {
- SCM(playerid, ROSU, "The Fy Snow event is already activated!");
- }
- }
- else
- {
- SCM(playerid, ROSU, "You don't have the permission to do that!");
- }
- return 1;
- }
- YCMD:joinfsevent(playerid, params[], help)
- {
- #pragma unused params, help
- if(fsevent == 1)
- {
- ShowPlayerDialog(playerid, TSelect, DIALOG_STYLE_LIST, "Choose a team!", "{0000FF}Counter Terrorists\n{FF0000}Terrorists", "OK", "Abort");
- }
- else if(fsevent == 0)
- {
- SCM(playerid, MOV, "The Fy_Snow event is not activated!");
- }
- return 1;
- }
- YCMD:startevent(playerid, params[], help)
- {
- #pragma unused params, help
- if(IsPlayerAdmin(playerid))
- {
- if(fsevent == 0)
- {
- SCM(playerid, GALBEN, "The Fy Snow event is not activated!");
- }
- else if(fsevent == 1)
- {
- SCM(playerid, MARO, "The event will start in 5 seconds!");
- fsevent = 0;
- SetTimer("EC3", 1000, 0);
- SetTimer("EC2", 2000, 0);
- SetTimer("EC1", 3000, 0);
- SetTimer("ES", 3500, 0);
- }
- }
- else
- {
- SCM(playerid, ROSU, "You don't have the permission to do that!");
- }
- return 1;
- }
- YCMD:snowoff(playerid, params[], help)
- {
- #pragma unused params, help
- if(IsPlayerAdmin(playerid))
- {
- if(destroyedsnow == 1)
- {
- SCM(playerid, GRI, "The snow is already disabled!");
- }
- else
- {
- DestroyObject(snow[1]);
- DestroyObject(snow[2]);
- SCM(playerid, VERDE, "You have disabled the snow! To activate it type /snow!");
- destroyedsnow = 1;
- }
- }
- else
- {
- SCM(playerid, ROSU, "You don't have the permission to do that!");
- }
- return 1;
- }
- YCMD:snow(playerid, params[], help)
- {
- #pragma unused params, help
- if(IsPlayerAdmin(playerid))
- {
- if(destroyedsnow == 0)
- {
- SCM(playerid, MOV, "The snow it's already enabled!");
- }
- else
- {
- SCM(playerid, GRI, "The snow is enabled again!");
- snow[1] = CreateObject(18864, -164.14, 1418.76, 1119.20, 47.00, -91.00, 69.00);
- snow[2] = CreateObject(18864, -148.04, 1411.10, 1119.20, 47.00, -91.00, 69.00);
- destroyedsnow = 0;
- }
- }
- else
- {
- SCM(playerid, ROSU, "You don't have the permission to do that!");
- }
- return 1;
- }
- YCMD:leavefs(playerid, params[], help)
- {
- #pragma unused params, help
- if(ct == 1 || terro == 1)
- {
- SpawnPlayer(playerid);
- SCM(playerid, MOV, "You have left the event and lost $500!");
- ResetPlayerWeapons(playerid);
- GivePlayerMoney(playerid, -500);
- TogglePlayerControllable(playerid, 1);
- }
- else
- {
- SCM(playerid, ROSU, "You are not at the event!");
- }
- return 1;
- }
- YCMD:fshelp(playerid, params[], help)
- {
- #pragma unused params, help
- new info[300];
- if(IsPlayerAdmin(playerid))
- {
- strcat(info, "{FF0000}To enable/disable the event ~> /fsevent\n", sizeof(info));
- strcat(info, "{00FF00}To start the event ~> /startevent\n", sizeof(info));
- strcat(info, "{0000FF}To disable the snow ~> /snowoff\n", sizeof(info));
- strcat(info, "{FFFF00}To enable the snow ~> /snpw\n", sizeof(info));
- strcat(info, "{FF00FF}To join the event ~> /joinfsevent\n", sizeof(info));
- strcat(info, "{00FFFF}To leave the event ~> /leavefs\n", sizeof(info));
- ShowPlayerDialog(playerid, Help, DIALOG_STYLE_MSGBOX, "Fy Snow help", info, "OK", "");
- }
- return 1;
- }
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement