OnRoundStart() { 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", "revive___radius___is___","", VariableFloat("radius").ConvertToString(),"", "___meters"); Game.PrintMessage(VariableString("radiusWhat")); VariableString.Concat("revTimeWhat", "revive___time___is___","", VariableInt("revTime").ConvertToString(),"", "___seconds"); Game.PrintMessage(VariableString("revTimeWhat")); VariableString.Concat("deathWhat", "death___time___is___","", VariableInt("deathTime").ConvertToString(),"", "___seconds"); Game.PrintMessage(VariableString("deathWhat")); VariableString.Concat("cooldownWhat", "cooldown___time___is___","", VariableInt("cooldown").ConvertToString(),"", "___seconds"); Game.PrintMessage(VariableString("cooldownWhat")); } OnUpdate() { 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()); VariableFloat.Set(VariableString("xDir"), VariableFloat("x")); VariableFloat.Set(VariableString("yDir"), VariableFloat("y")); 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.Concat("reviveWho", "reviving___player___wait___","", VariableInt("revTime").ConvertToString(),"", "___seconds"); 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"))) { Game.PrintMessage("a___soldier___has___been___lost") } 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.Remove("chatInput", "/medic"); VariablePlayer.Set("player", VariablePlayer("null")); ForeachPlayer("player") { VariableBool.Set("passNotMedic", false); If(String.Contains(VariablePlayer("player").GetName(), VariableString("chatInput"))) { If(String.NotEquals(VariablePlayer("player").GetGuildName(), "[ffffff][ffffff]Medic")) { Player.SetGuildName(VariablePlayer("player"), "[ffffff][ffffff]Medic"); VariableString.Concat("AM", VariableString("chatInput"), "_is_now_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("chatInput"), "_is_not_medic"); Game.PrintMessage(VariableString("ANM")); } } } } } If(String.StartsWith(VariableString("chatInput"), "/revtime")) { VariableString.Remove("chatInput", "/revtime"); VariableInt.Set("revTime", VariableString("chatInput").ConvertToInt()); VariableString.Concat("revTimeWhat", "revive___time___is___","", VariableInt("revTime").ConvertToString(),"", "___seconds"); Game.PrintMessage(VariableString("revTimeWhat")); } If(String.StartsWith(VariableString("chatInput"), "/revradius")) { VariableString.Remove("chatInput", "/revradius"); VariableFloat.Set("radius", VariableString("chatInput").ConvertToInt().ConvertToFloat()); VariableString.Concat("radiusWhat", "revive___radius___is___","", VariableFloat("radius").ConvertToString(),"", "___meters"); Game.PrintMessage(VariableString("radiusWhat")); } If(String.StartsWith(VariableString("chatInput"), "/deathtime")) { VariableString.Remove("chatInput", "/deathtime"); VariableInt.Set("deathTime", VariableString("chatInput").ConvertToInt()); VariableString.Concat("deathWhat", "death___time___is___","", VariableInt("deathTime").ConvertToString(),"", "___seconds"); Game.PrintMessage(VariableString("deathWhat")); } If(String.StartsWith(VariableString("chatInput"), "/cooldown")) { VariableString.Remove("chatInput", "/cooldown"); VariableInt.Set("cooldown", VariableString("chatInput").ConvertToInt()); VariableString.Concat("cooldownWhat", "cooldown___time___is___","", VariableInt("cooldown").ConvertToString(),"", "___seconds"); Game.PrintMessage(VariableString("cooldownWhat")); } }