Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- OnRoundStart()
- {
- Game.PrintMessage("Please<size=1>____</size>type<size=1>____</size>'/init<size=1>____</size>'<size=1>____</size>to<size=1>____</size>initialize<size=1>____</size>the<size=1>____</size>script");
- Game.PrintMessage("Include<size=1>____</size>the<size=1>____</size>space");
- VariableBool.Set("runScript", false);
- VariableBool.Set("firstRun", true);
- }
- OnUpdate()
- {
- If(Bool.Equals(VariableBool("runScript"), true))
- {
- If(Bool.Equals(VariableBool("firstRun"), true))
- {
- VariableString.Set("char0", "0");
- VariableString.Set("char1", "1");
- VariableString.Set("char2", "2");
- VariableString.Set("char3", "3");
- VariableString.Set("char4", "4");
- VariableString.Set("char5", "5");
- VariableString.Set("char6", "6");
- VariableString.Set("char7", "7");
- VariableString.Set("char8", "8");
- VariableString.Set("char9", "9");
- VariableString.Set("char10", "a");
- VariableString.Set("char11", "b");
- VariableString.Set("char12", "c");
- VariableString.Set("char13", "d");
- VariableString.Set("char14", "e");
- VariableString.Set("char15", "f");
- VariableString.Set("char16", "A");
- VariableString.Set("char17", "B");
- VariableString.Set("char18", "C");
- VariableString.Set("char19", "D");
- VariableString.Set("char20", "E");
- VariableString.Set("char21", "F");
- VariableString.Set("char22", "g");
- VariableString.Set("char23", "h");
- VariableString.Set("char24", "i");
- VariableString.Set("char25", "j");
- VariableString.Set("char26", "k");
- VariableString.Set("char27", "l");
- VariableString.Set("char28", "m");
- VariableString.Set("char29", "n");
- VariableString.Set("char30", "o");
- VariableString.Set("char31", "p");
- VariableString.Set("char32", "q");
- VariableString.Set("char33", "r");
- VariableString.Set("char34", "s");
- VariableString.Set("char35", "t");
- VariableString.Set("char36", "u");
- VariableString.Set("char37", "v");
- VariableString.Set("char38", "w");
- VariableString.Set("char39", "x");
- VariableString.Set("char40", "y");
- VariableString.Set("char41", "z");
- VariableString.Set("char42", "G");
- VariableString.Set("char43", "H");
- VariableString.Set("char44", "I");
- VariableString.Set("char45", "J");
- VariableString.Set("char46", "K");
- VariableString.Set("char47", "L");
- VariableString.Set("char48", "M");
- VariableString.Set("char49", "N");
- VariableString.Set("char50", "O");
- VariableString.Set("char51", "P");
- VariableString.Set("char52", "Q");
- VariableString.Set("char53", "R");
- VariableString.Set("char54", "S");
- VariableString.Set("char55", "T");
- VariableString.Set("char56", "U");
- VariableString.Set("char57", "V");
- VariableString.Set("char58", "W");
- VariableString.Set("char59", "X");
- VariableString.Set("char60", "Y");
- VariableString.Set("char61", "Z");
- VariableString.Set("char62", "'");
- VariableFloat.Set("radius", 50.0);
- VariableInt.Set("revTime", 5);
- VariableInt.Set("deathTime", 120);
- VariableInt.Set("cooldown", 30);
- VariableInt.Set("counterMain", 0);
- VariableInt.Set("cooldown0", 0);
- VariableInt.Set("cooldown1", 0);
- VariableInt.Set("cooldown2", 0);
- VariableInt.Set("cooldown3", 0);
- VariableInt.Set("cooldown4", 0);
- VariableInt.Set("cooldown5", 0);
- VariableInt.Set("cooldown6", 0);
- VariableInt.Set("cooldown7", 0);
- VariableInt.Set("cooldown8", 0);
- VariableInt.Set("cooldown9", 0);
- VariableInt.Set("cooldown10", 0);
- VariableInt.Set("cooldown11", 0);
- VariableInt.Set("cooldown12", 0);
- VariableInt.Set("cooldown13", 0);
- VariableInt.Set("cooldown14", 0);
- VariableInt.Set("cooldown15", 0);
- VariableInt.Set("cooldown16", 0);
- VariableInt.Set("cooldown17", 0);
- VariableInt.Set("cooldown18", 0);
- VariableInt.Set("cooldown19", 0);
- VariableInt.Set("cooldown20", 0);
- VariableInt.Set("cooldown21", 0);
- VariableInt.Set("cooldown22", 0);
- VariableInt.Set("cooldown23", 0);
- VariableInt.Set("cooldown24", 0);
- VariableInt.Set("cooldown25", 0);
- VariableInt.Set("cooldown26", 0);
- VariableInt.Set("cooldown27", 0);
- VariableInt.Set("cooldown28", 0);
- VariableInt.Set("cooldown29", 0);
- VariableString.Concat("radiusWhat", "<size=10>revive</size><size=1>___</size><size=10>radius</size><size=1>___</size><size=10>is</size><size=1>___</size>","<size=12><color=#ff4444>", VariableFloat("radius").ConvertToString(),"</color></size>", "<size=1>___</size><size=10>meters</size>");
- Game.PrintMessage(VariableString("radiusWhat"));
- VariableString.Concat("revTimeWhat", "<size=10>revive</size><size=1>___</size><size=10>time</size><size=1>___</size><size=10>is</size><size=1>___</size>","<size=12><color=#ff4444>", VariableInt("revTime").ConvertToString(),"</color></size>", "<size=1>___</size><size=10>seconds</size>");
- Game.PrintMessage(VariableString("revTimeWhat"));
- VariableString.Concat("deathWhat", "<size=10>death</size><size=1>___</size><size=10>time</size><size=1>___</size><size=10>is</size><size=1>___</size>","<size=12><color=#ff4444>", VariableInt("deathTime").ConvertToString(),"</color></size>", "<size=1>___</size><size=10>seconds</size>");
- Game.PrintMessage(VariableString("deathWhat"));
- VariableString.Concat("cooldownWhat", "<size=10>cooldown</size><size=1>___</size><size=10>time</size><size=1>___</size><size=10>is</size><size=1>___</size>","<size=12><color=#ff4444>", VariableInt("cooldown").ConvertToString(),"</color></size>", "<size=1>___</size><size=10>seconds</size>");
- Game.PrintMessage(VariableString("cooldownWhat"));
- Game.PrintMessage("Script<size=1>____</size>initialized");
- VariableBool.Set("firstRun", false);
- }
- VariableInt.Set("counterPlayer", 0);
- VariablePlayer.Set("player", VariablePlayer("null"));
- ForeachPlayer("player")
- {
- VariableString.Concat("xDir","x",VariableInt("counterPlayer").ConvertToString());
- VariableString.Concat("yDir","y",VariableInt("counterPlayer").ConvertToString());
- VariableString.Concat("zDir","z",VariableInt("counterPlayer").ConvertToString());
- VariableString.Concat("revDir","rev",VariableInt("counterPlayer").ConvertToString());
- VariableString.Concat("deathDir","death",VariableInt("counterPlayer").ConvertToString());
- VariableString.Concat("cooldownDirMain","cooldown",VariableInt("counterPlayer").ConvertToString());
- If(Bool.Equals(VariablePlayer("player").GetIsAlive(), true))
- {
- VariableFloat.Set("x", VariablePlayer("player").GetPositionX());
- VariableFloat.Set("y", VariablePlayer("player").GetPositionY());
- VariableFloat.Set("z", VariablePlayer("player").GetPositionZ());
- If(Float.NotEquals(VariableFloat("x"), 0.0))
- {
- VariableFloat.Set(VariableString("xDir"), VariableFloat("x"));
- }
- If(Float.NotEquals(VariableFloat("y"), 0.0))
- {
- VariableFloat.Set(VariableString("yDir"), VariableFloat("y"));
- }
- If(Float.NotEquals(VariableFloat("z"), 0.0))
- {
- VariableFloat.Set(VariableString("zDir"), VariableFloat("z"));
- }
- VariableInt.Set(VariableString("revDir"), 0);
- VariableInt.Set(VariableString("deathDir"), 0);
- }
- If(Bool.Equals(VariablePlayer("player").GetIsAlive(), false))
- {
- If(Int.LessThan(VariableInt(VariableString("deathDir")), VariableInt("deathTime")))
- {
- VariableInt.Set("counterPlayerMedic", 0);
- VariablePlayer.Set("playerMedic", VariablePlayer("null"));
- ForeachPlayer("playerMedic")
- {
- VariableString.Concat("cooldownDirSub","cooldown",VariableInt("counterPlayer").ConvertToString());
- If(Player.NotEquals(VariablePlayer("player"), VariablePlayer("playerMedic")))
- {
- If(String.Equals(VariablePlayer("playerMedic").GetGuildName(), "[ffffff][ffffff]Medic"))
- {
- If(Bool.Equals(VariablePlayer("playerMedic").GetIsAlive(), true))
- {
- If(Int.LessThanOrEqual(VariableInt(VariableString("cooldownDirSub")), 0))
- {
- VariableFloat.Set("xgreater", VariableFloat(VariableString("xDir")));
- VariableFloat.Add("xgreater", VariableFloat("radius"));
- If(Float.LessThan(VariablePlayer("playerMedic").GetPositionX(), VariableFloat("xgreater")))
- {
- VariableFloat.Set("xless", VariableFloat(VariableString("xDir")));
- VariableFloat.Subtract("xless", VariableFloat("radius"));
- If(Float.GreaterThan(VariablePlayer("playerMedic").GetPositionX(), VariableFloat("xless")))
- {
- VariableFloat.Set("zgreater", VariableFloat(VariableString("zDir")));
- VariableFloat.Add("zgreater", VariableFloat("radius"));
- If(Float.LessThan(VariablePlayer("playerMedic").GetPositionZ(), VariableFloat("zgreater")))
- {
- VariableFloat.Set("zless", VariableFloat(VariableString("zDir")));
- VariableFloat.Subtract("zless", VariableFloat("radius"));
- If(Float.GreaterThan(VariablePlayer("playerMedic").GetPositionZ(), VariableFloat("zless")))
- {
- VariableInt.Add(VariableString("revDir"), 1);
- If(Int.Equals(VariableInt(VariableString("revDir")), 1))
- {
- VariableString.Set("playerName", VariablePlayer("player").GetName())
- VariableInt.Set("playerPartCounter", 0);
- While(String.StartsWith(VariableString("playerName"), "["))
- {
- VariableString.Concat("playerName", "```", VariableString("playerName"));
- VariableString.Replace("playerName", "```[", "");
- VariableString.Concat("playerHexDir", "playerHex", VariableInt("playerPartCounter").ConvertToString())
- VariableString.Set(VariableString("playerHexDir"), "")
- VariableInt.Set("hexCounterMaster", 0);
- While(Int.LessThan(VariableInt("hexCounterMaster"), 6))
- {
- VariableInt.Set("hexCounter", 0);
- While(Int.LessThan(VariableInt("hexCounter"), 22))
- {
- VariableString.Concat("charDir", "char", VariableInt("hexCounter").ConvertToString());
- If(String.StartsWith(VariableString("playerName"), VariableString(VariableString("charDir"))))
- {
- VariableString.Append(VariableString("playerHexDir"), VariableString(VariableString("charDir")));
- VariableString.Concat("playerName", "```", VariableString("playerName"));
- VariableString.Concat("playerCharScraper", "```", VariableString(VariableString("charDir")));
- VariableString.Replace("playerName", VariableString("playerCharScraper"), "");
- }
- VariableInt.Add("hexCounter", 1);
- }
- VariableInt.Add("hexCounterMaster", 1);
- }
- VariableString.Concat("playerName", "```", VariableString("playerName"));
- VariableString.Replace("playerName", "```]", "");
- VariableString.Concat("playerABCDir", "playerABC", VariableInt("playerPartCounter").ConvertToString())
- VariableString.Set(VariableString("playerABCDir"), "")
- VariableInt.Set("ABCCounterMaster", 0);
- While(Int.LessThan(VariableInt("ABCCounterMaster"), 30))
- {
- VariableInt.Set("ABCCounter", 0);
- While(Int.LessThan(VariableInt("ABCCounter"), 64))
- {
- VariableString.Concat("charDir", "char", VariableInt("ABCCounter").ConvertToString());
- If(String.StartsWith(VariableString("playerName"), VariableString(VariableString("charDir"))))
- {
- VariableString.Append(VariableString("playerABCDir"), VariableString(VariableString("charDir")));
- VariableString.Concat("playerName", "```", VariableString("playerName"));
- VariableString.Concat("playerCharScraper", "```", VariableString(VariableString("charDir")));
- VariableString.Replace("playerName", VariableString("playerCharScraper"), "");
- }
- VariableInt.Add("ABCCounter", 1);
- }
- VariableInt.Add("ABCCounterMaster", 1);
- }
- VariableInt.Add("playerPartCounter", 1);
- }
- VariableString.Set("playerPrintName", "");
- VariableInt.Set("printNameCounter", 0);
- While(Int.LessThan(VariableInt("printNameCounter"), VariableInt("playerPartCounter")))
- {
- VariableString.Concat("playerABCDir", "playerABC", VariableInt("printNameCounter").ConvertToString());
- VariableString.Concat("playerHexDir", "playerHex", VariableInt("printNameCounter").ConvertToString());
- VariableString.Append("playerPrintName", "<color=#");
- VariableString.Append("playerPrintName", VariableString(VariableString("playerHexDir")));
- VariableString.Append("playerPrintName", ">");
- VariableString.Append("playerPrintName", VariableString(VariableString("playerABCDir")));
- VariableString.Append("playerPrintName", "</color>");
- VariableInt.Add("printNameCounter", 1);
- }
- VariableString.Concat("reviveWho", "<size=10>reviving</size><size=1>___</size><size=13>", VariableString("playerPrintName"), "</size><size=1>___</size><size=10>wait</size><size=1>___</size>","<size=15><color=#ff0000>", VariableInt("revTime").ConvertToString(),"</color></size>", "<size=1>___</size><size=10>seconds</size>");
- Game.PrintMessage(VariableString("reviveWho"));
- }
- If(Int.GreaterThanOrEqual(VariableInt(VariableString("revDir")), VariableInt("revTime")))
- {
- Player.SpawnPlayerAt(VariablePlayer("player"), VariablePlayer("playerMedic").GetPositionX(), VariablePlayer("playerMedic").GetPositionY(), VariablePlayer("playerMedic").GetPositionZ());
- VariableInt.Set(VariableString("revDir"), 0);
- VariableInt.Set(VariableString("cooldownDirSub"), VariableInt("cooldown"));
- }
- }
- }
- }
- }
- }
- }
- }
- }
- VariableInt.Add("counterPlayerMedic", 1);
- }
- }
- If(Int.Equals(VariableInt(VariableString("deathDir")), VariableInt("deathTime")))
- {
- VariableString.Set("playerName", VariablePlayer("player").GetName())
- VariableInt.Set("playerPartCounter", 0);
- While(String.StartsWith(VariableString("playerName"), "["))
- {
- VariableString.Concat("playerName", "```", VariableString("playerName"));
- VariableString.Replace("playerName", "```[", "");
- VariableString.Concat("playerHexDir", "playerHex", VariableInt("playerPartCounter").ConvertToString())
- VariableString.Set(VariableString("playerHexDir"), "")
- VariableInt.Set("hexCounterMaster", 0);
- While(Int.LessThan(VariableInt("hexCounterMaster"), 6))
- {
- VariableInt.Set("hexCounter", 0);
- While(Int.LessThan(VariableInt("hexCounter"), 22))
- {
- VariableString.Concat("charDir", "char", VariableInt("hexCounter").ConvertToString());
- If(String.StartsWith(VariableString("playerName"), VariableString(VariableString("charDir"))))
- {
- VariableString.Append(VariableString("playerHexDir"), VariableString(VariableString("charDir")));
- VariableString.Concat("playerName", "```", VariableString("playerName"));
- VariableString.Concat("playerCharScraper", "```", VariableString(VariableString("charDir")));
- VariableString.Replace("playerName", VariableString("playerCharScraper"), "");
- }
- VariableInt.Add("hexCounter", 1);
- }
- VariableInt.Add("hexCounterMaster", 1);
- }
- VariableString.Concat("playerName", "```", VariableString("playerName"));
- VariableString.Replace("playerName", "```]", "");
- VariableString.Concat("playerABCDir", "playerABC", VariableInt("playerPartCounter").ConvertToString())
- VariableString.Set(VariableString("playerABCDir"), "")
- VariableInt.Set("ABCCounterMaster", 0);
- While(Int.LessThan(VariableInt("ABCCounterMaster"), 30))
- {
- VariableInt.Set("ABCCounter", 0);
- While(Int.LessThan(VariableInt("ABCCounter"), 64))
- {
- VariableString.Concat("charDir", "char", VariableInt("ABCCounter").ConvertToString());
- If(String.StartsWith(VariableString("playerName"), VariableString(VariableString("charDir"))))
- {
- VariableString.Append(VariableString("playerABCDir"), VariableString(VariableString("charDir")));
- VariableString.Concat("playerName", "```", VariableString("playerName"));
- VariableString.Concat("playerCharScraper", "```", VariableString(VariableString("charDir")));
- VariableString.Replace("playerName", VariableString("playerCharScraper"), "");
- }
- VariableInt.Add("ABCCounter", 1);
- }
- VariableInt.Add("ABCCounterMaster", 1);
- }
- VariableInt.Add("playerPartCounter", 1);
- }
- VariableString.Set("playerPrintName", "");
- VariableInt.Set("printNameCounter", 0);
- While(Int.LessThan(VariableInt("printNameCounter"), VariableInt("playerPartCounter")))
- {
- VariableString.Concat("playerABCDir", "playerABC", VariableInt("printNameCounter").ConvertToString());
- VariableString.Concat("playerHexDir", "playerHex", VariableInt("printNameCounter").ConvertToString());
- VariableString.Append("playerPrintName", "<color=#");
- VariableString.Append("playerPrintName", VariableString(VariableString("playerHexDir")));
- VariableString.Append("playerPrintName", ">");
- VariableString.Append("playerPrintName", VariableString(VariableString("playerABCDir")));
- VariableString.Append("playerPrintName", "</color>");
- VariableInt.Add("printNameCounter", 1);
- }
- VariableString.Concat("whoHasBeenLost", "<size=13>", VariableString("playerPrintName"), "</size><size=1>___</size><size=10>has</size><size=1>___</size><size=10>been</size><size=1>___</size><size=10>lost</size>");
- Game.PrintMessage(VariableString("whoHasBeenLost"));
- }
- VariableInt.Add(VariableString("deathDir"), 1);
- }
- VariableInt.Add("counterPlayer", 1);
- VariableInt.Subtract(VariableString("cooldownDirMain"), 1);
- }
- VariableInt.Add("counterMain", 1);
- }
- }
- OnChatInput("chatInput")
- {
- If(String.StartsWith(VariableString("chatInput"), "/medic"))
- {
- VariableString.Concat("medicScraper", "/medic", VariableString("char63"));
- VariableString.Remove("chatInput", VariableString("medicScraper"));
- VariablePlayer.Set("player", VariablePlayer("null"));
- ForeachPlayer("player")
- {
- VariableBool.Set("passNotMedic", false);
- VariableString.Set("playerName", VariablePlayer("player").GetName())
- VariableInt.Set("playerPartCounter", 0);
- While(String.StartsWith(VariableString("playerName"), "["))
- {
- VariableString.Concat("playerName", "```", VariableString("playerName"));
- VariableString.Replace("playerName", "```[", "");
- VariableString.Concat("playerHexDir", "playerHex", VariableInt("playerPartCounter").ConvertToString())
- VariableString.Set(VariableString("playerHexDir"), "")
- VariableInt.Set("hexCounterMaster", 0);
- While(Int.LessThan(VariableInt("hexCounterMaster"), 6))
- {
- VariableInt.Set("hexCounter", 0);
- While(Int.LessThan(VariableInt("hexCounter"), 22))
- {
- VariableString.Concat("charDir", "char", VariableInt("hexCounter").ConvertToString());
- If(String.StartsWith(VariableString("playerName"), VariableString(VariableString("charDir"))))
- {
- VariableString.Append(VariableString("playerHexDir"), VariableString(VariableString("charDir")));
- VariableString.Concat("playerName", "```", VariableString("playerName"));
- VariableString.Concat("playerCharScraper", "```", VariableString(VariableString("charDir")));
- VariableString.Replace("playerName", VariableString("playerCharScraper"), "");
- }
- VariableInt.Add("hexCounter", 1);
- }
- VariableInt.Add("hexCounterMaster", 1);
- }
- VariableString.Concat("playerName", "```", VariableString("playerName"));
- VariableString.Replace("playerName", "```]", "");
- VariableString.Concat("playerABCDir", "playerABC", VariableInt("playerPartCounter").ConvertToString())
- VariableString.Set(VariableString("playerABCDir"), "")
- VariableInt.Set("ABCCounterMaster", 0);
- While(Int.LessThan(VariableInt("ABCCounterMaster"), 30))
- {
- VariableInt.Set("ABCCounter", 0);
- While(Int.LessThan(VariableInt("ABCCounter"), 64))
- {
- VariableString.Concat("charDir", "char", VariableInt("ABCCounter").ConvertToString());
- If(String.StartsWith(VariableString("playerName"), VariableString(VariableString("charDir"))))
- {
- VariableString.Append(VariableString("playerABCDir"), VariableString(VariableString("charDir")));
- VariableString.Concat("playerName", "```", VariableString("playerName"));
- VariableString.Concat("playerCharScraper", "```", VariableString(VariableString("charDir")));
- VariableString.Replace("playerName", VariableString("playerCharScraper"), "");
- }
- VariableInt.Add("ABCCounter", 1);
- }
- VariableInt.Add("ABCCounterMaster", 1);
- }
- VariableInt.Add("playerPartCounter", 1);
- }
- VariableString.Set("playerPrintName", "");
- VariableInt.Set("printNameCounter", 0);
- While(Int.LessThan(VariableInt("printNameCounter"), VariableInt("playerPartCounter")))
- {
- VariableString.Concat("playerABCDir", "playerABC", VariableInt("printNameCounter").ConvertToString());
- VariableString.Concat("playerHexDir", "playerHex", VariableInt("printNameCounter").ConvertToString());
- VariableString.Append("playerPrintName", VariableString(VariableString("playerABCDir")));
- VariableInt.Add("printNameCounter", 1);
- }
- If(String.Contains(VariableString("playerPrintName"), VariableString("chatInput")))
- {
- VariableString.Set("playerName", VariablePlayer("player").GetName())
- VariableInt.Set("playerPartCounter", 0);
- While(String.StartsWith(VariableString("playerName"), "["))
- {
- VariableString.Concat("playerName", "```", VariableString("playerName"));
- VariableString.Replace("playerName", "```[", "");
- VariableString.Concat("playerHexDir", "playerHex", VariableInt("playerPartCounter").ConvertToString())
- VariableString.Set(VariableString("playerHexDir"), "")
- VariableInt.Set("hexCounterMaster", 0);
- While(Int.LessThan(VariableInt("hexCounterMaster"), 6))
- {
- VariableInt.Set("hexCounter", 0);
- While(Int.LessThan(VariableInt("hexCounter"), 22))
- {
- VariableString.Concat("charDir", "char", VariableInt("hexCounter").ConvertToString());
- If(String.StartsWith(VariableString("playerName"), VariableString(VariableString("charDir"))))
- {
- VariableString.Append(VariableString("playerHexDir"), VariableString(VariableString("charDir")));
- VariableString.Concat("playerName", "```", VariableString("playerName"));
- VariableString.Concat("playerCharScraper", "```", VariableString(VariableString("charDir")));
- VariableString.Replace("playerName", VariableString("playerCharScraper"), "");
- }
- VariableInt.Add("hexCounter", 1);
- }
- VariableInt.Add("hexCounterMaster", 1);
- }
- VariableString.Concat("playerName", "```", VariableString("playerName"));
- VariableString.Replace("playerName", "```]", "");
- VariableString.Concat("playerABCDir", "playerABC", VariableInt("playerPartCounter").ConvertToString())
- VariableString.Set(VariableString("playerABCDir"), "")
- VariableInt.Set("ABCCounterMaster", 0);
- While(Int.LessThan(VariableInt("ABCCounterMaster"), 30))
- {
- VariableInt.Set("ABCCounter", 0);
- While(Int.LessThan(VariableInt("ABCCounter"), 64))
- {
- VariableString.Concat("charDir", "char", VariableInt("ABCCounter").ConvertToString());
- If(String.StartsWith(VariableString("playerName"), VariableString(VariableString("charDir"))))
- {
- VariableString.Append(VariableString("playerABCDir"), VariableString(VariableString("charDir")));
- VariableString.Concat("playerName", "```", VariableString("playerName"));
- VariableString.Concat("playerCharScraper", "```", VariableString(VariableString("charDir")));
- VariableString.Replace("playerName", VariableString("playerCharScraper"), "");
- }
- VariableInt.Add("ABCCounter", 1);
- }
- VariableInt.Add("ABCCounterMaster", 1);
- }
- VariableInt.Add("playerPartCounter", 1);
- }
- VariableString.Set("playerPrintName", "");
- VariableInt.Set("printNameCounter", 0);
- While(Int.LessThan(VariableInt("printNameCounter"), VariableInt("playerPartCounter")))
- {
- VariableString.Concat("playerABCDir", "playerABC", VariableInt("printNameCounter").ConvertToString());
- VariableString.Concat("playerHexDir", "playerHex", VariableInt("printNameCounter").ConvertToString());
- VariableString.Append("playerPrintName", "<color=#");
- VariableString.Append("playerPrintName", VariableString(VariableString("playerHexDir")));
- VariableString.Append("playerPrintName", ">");
- VariableString.Append("playerPrintName", VariableString(VariableString("playerABCDir")));
- VariableString.Append("playerPrintName", "</color>");
- VariableInt.Add("printNameCounter", 1);
- }
- If(String.NotEquals(VariablePlayer("player").GetGuildName(), "[ffffff][ffffff]Medic"))
- {
- Player.SetGuildName(VariablePlayer("player"), "[ffffff][ffffff]Medic");
- VariableString.Concat("AM", VariableString("playerPrintName"), "<size=1>____</size>is<size=1>____</size>now<size=1>____</size>medic");
- Game.PrintMessage(VariableString("AM"));
- VariableBool.Set("passNotMedic", true);
- }
- If(Bool.Equals(VariableBool("passNotMedic"), false))
- {
- If(String.Equals(VariablePlayer("player").GetGuildName(), "[ffffff][ffffff]Medic"))
- {
- Player.SetGuildName(VariablePlayer("player"), "");
- VariableString.Concat("ANM", VariableString("playerPrintName"), "<size=1>____</size>is<size=1>____</size>no<size=1>____</size>longer<size=1>____</size>medic");
- Game.PrintMessage(VariableString("ANM"));
- }
- }
- }
- }
- }
- If(String.StartsWith(VariableString("chatInput"), "/revtime"))
- {
- VariableString.Remove("chatInput", "/revtime");
- VariableInt.Set("revTime", VariableString("chatInput").ConvertToInt());
- VariableString.Concat("revTimeWhat", "<size=10>revive</size><size=1>___</size><size=10>time</size><size=1>___</size><size=10>is</size><size=1>___</size>","<size=12><color=#ff4444>", VariableInt("revTime").ConvertToString(),"</color></size>", "<size=1>___</size><size=10>seconds</size>");
- Game.PrintMessage(VariableString("revTimeWhat"));
- }
- If(String.StartsWith(VariableString("chatInput"), "/revradius"))
- {
- VariableString.Remove("chatInput", "/revradius");
- VariableFloat.Set("radius", VariableString("chatInput").ConvertToInt().ConvertToFloat());
- VariableString.Concat("radiusWhat", "<size=10>revive</size><size=1>___</size><size=10>radius</size><size=1>___</size><size=10>is</size><size=1>___</size>","<size=12><color=#ff4444>", VariableFloat("radius").ConvertToString(),"</color></size>", "<size=1>___</size><size=10>meters</size>");
- Game.PrintMessage(VariableString("radiusWhat"));
- }
- If(String.StartsWith(VariableString("chatInput"), "/deathtime"))
- {
- VariableString.Remove("chatInput", "/deathtime");
- VariableInt.Set("deathTime", VariableString("chatInput").ConvertToInt());
- VariableString.Concat("deathWhat", "<size=10>death</size><size=1>___</size><size=10>time</size><size=1>___</size><size=10>is</size><size=1>___</size>","<size=12><color=#ff4444>", VariableInt("deathTime").ConvertToString(),"</color></size>", "<size=1>___</size><size=10>seconds</size>");
- Game.PrintMessage(VariableString("deathWhat"));
- }
- If(String.StartsWith(VariableString("chatInput"), "/cooldown"))
- {
- VariableString.Remove("chatInput", "/cooldown");
- VariableInt.Set("cooldown", VariableString("chatInput").ConvertToInt());
- VariableString.Concat("cooldownWhat", "<size=10>cooldown</size><size=1>___</size><size=10>time</size><size=1>___</size><size=10>is</size><size=1>___</size>","<size=12><color=#ff4444>", VariableInt("cooldown").ConvertToString(),"</color></size>", "<size=1>___</size><size=10>seconds</size>");
- Game.PrintMessage(VariableString("cooldownWhat"));
- }
- If(String.StartsWith(VariableString("chatInput"), "/init"))
- {
- VariableString.Set("char63", VariableString("chatInput"));
- VariableString.Replace("char63", "/init", "");
- VariableBool.Set("runScript", true);
- }
- If(String.Equals(VariableString("chatInput"), "/players"))
- {
- VariablePlayer.Set("player", VariablePlayer("null"));
- ForeachPlayer("player")
- {
- VariableString.Set("playerName", VariablePlayer("player").GetName())
- VariableInt.Set("playerPartCounter", 0);
- While(String.StartsWith(VariableString("playerName"), "["))
- {
- VariableString.Concat("playerName", "```", VariableString("playerName"));
- VariableString.Replace("playerName", "```[", "");
- VariableString.Concat("playerHexDir", "playerHex", VariableInt("playerPartCounter").ConvertToString())
- VariableString.Set(VariableString("playerHexDir"), "")
- VariableInt.Set("hexCounterMaster", 0);
- While(Int.LessThan(VariableInt("hexCounterMaster"), 6))
- {
- VariableInt.Set("hexCounter", 0);
- While(Int.LessThan(VariableInt("hexCounter"), 22))
- {
- VariableString.Concat("charDir", "char", VariableInt("hexCounter").ConvertToString());
- If(String.StartsWith(VariableString("playerName"), VariableString(VariableString("charDir"))))
- {
- VariableString.Append(VariableString("playerHexDir"), VariableString(VariableString("charDir")));
- VariableString.Concat("playerName", "```", VariableString("playerName"));
- VariableString.Concat("playerCharScraper", "```", VariableString(VariableString("charDir")));
- VariableString.Replace("playerName", VariableString("playerCharScraper"), "");
- }
- VariableInt.Add("hexCounter", 1);
- }
- VariableInt.Add("hexCounterMaster", 1);
- }
- VariableString.Concat("playerName", "```", VariableString("playerName"));
- VariableString.Replace("playerName", "```]", "");
- VariableString.Concat("playerABCDir", "playerABC", VariableInt("playerPartCounter").ConvertToString())
- VariableString.Set(VariableString("playerABCDir"), "")
- VariableInt.Set("ABCCounterMaster", 0);
- While(Int.LessThan(VariableInt("ABCCounterMaster"), 30))
- {
- VariableInt.Set("ABCCounter", 0);
- While(Int.LessThan(VariableInt("ABCCounter"), 64))
- {
- VariableString.Concat("charDir", "char", VariableInt("ABCCounter").ConvertToString());
- If(String.StartsWith(VariableString("playerName"), VariableString(VariableString("charDir"))))
- {
- VariableString.Append(VariableString("playerABCDir"), VariableString(VariableString("charDir")));
- VariableString.Concat("playerName", "```", VariableString("playerName"));
- VariableString.Concat("playerCharScraper", "```", VariableString(VariableString("charDir")));
- VariableString.Replace("playerName", VariableString("playerCharScraper"), "");
- }
- VariableInt.Add("ABCCounter", 1);
- }
- VariableInt.Add("ABCCounterMaster", 1);
- }
- VariableInt.Add("playerPartCounter", 1);
- }
- VariableString.Set("playerPrintName", "");
- VariableInt.Set("printNameCounter", 0);
- While(Int.LessThan(VariableInt("printNameCounter"), VariableInt("playerPartCounter")))
- {
- VariableString.Concat("playerABCDir", "playerABC", VariableInt("printNameCounter").ConvertToString());
- VariableString.Concat("playerHexDir", "playerHex", VariableInt("printNameCounter").ConvertToString());
- VariableString.Append("playerPrintName", "<color=#");
- VariableString.Append("playerPrintName", VariableString(VariableString("playerHexDir")));
- VariableString.Append("playerPrintName", ">");
- VariableString.Append("playerPrintName", VariableString(VariableString("playerABCDir")));
- VariableString.Append("playerPrintName", "</color>");
- VariableInt.Add("printNameCounter", 1);
- }
- Game.PrintMessage(VariableString("playerPrintName"));
- }
- }
- }
Add Comment
Please, Sign In to add comment