public void ServerCmdNetSimulateLag(coGameConnection client, int msDelay, float packetLossPercent) { if (client["isAdmin"].AsBool()) client.setSimulatedNetParams((packetLossPercent / 100.0f), msDelay); }
public void ServerCmdNetSimulateLag(coGameConnection client, int msDelay, float packetLossPercent) { if (client["isAdmin"].AsBool()) client.setSimulatedNetParams((packetLossPercent / 100.0f), msDelay); }