Results 1 to 2 of 2
  1. #1

    Where did I go wrong?


    I made some code that changes the preset settings based on certain events. This code is set to on round end:

    if (preset == 0){
    	// Hybrid settings
    	plugin.SendGlobalMessage("Setting preset to Hybrid", 5);
    	plugin.ServerCommand("vars.preset", "custom");
    	plugin.ServerCommand("vars.friendlyFire", "false");
    	plugin.ServerCommand("vars.idleTimeout", "300");
    	plugin.ServerCommand("vars.killCam", "false");
    	plugin.ServerCommand("vars.miniMap", "false");
    	plugin.ServerCommand("vars.3dSpotting", "false");
    	plugin.ServerCommand("vars.nameTag", "false");
    	plugin.ServerCommand("vars.regenerateHealth", "true");
    	plugin.ServerCommand("vars.soldierHealth", "60");
    	plugin.ServerCommand("vars.hud", "true");
    	plugin.ServerCommand("vars.hitIndicatorsEnabled", "true");
    }else if (preset == 1){
    	// Normal settings
    	plugin.SendGlobalMessage("Setting preset to Normal", 5);
    	plugin.ServerCommand("vars.preset", "normal");
    }else if (preset == 2){
    	// Hardcore settings
    	plugin.SendGlobalMessage("Setting preset to Hardcore", 5);
    	plugin.ServerCommand("vars.preset", "hardcore");
    I can confirm the "Setting preset to" messages work properly, but nothing changes. Any thoughts?

    Update: I failed to mention this code is in Insane Limits
    Last edited by Link4134; 08-08-2017 at 18:32.

  2. #2
    Turns out the plugin "Adaptive Ticket Count" was overriding it, so I made my own version with insane limits and disabled it. It works now!



Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts