Results 1 to 1 of 1
  1. #1
    Senior Member
    Join Date
    Nov 2011
    Location
    Germany
    Posts
    154

    [BF4] Insane Limits: Infantry only with Servermode Normal/Hardcore v1.0

    Infantry only with Servermode Normal/Hardcore for Insane Limits [BF4]

    With this script you can deactivate vehicle spawn with servermode Normal/Hardcore on all maps, only transport vehicles spawn

    Functions:
    - no vehicle spawn on all maps

    ATTENTION:
    This script works only with 1 round each map!


    SETUP LIMIT#1
    limit_evaluation: OnRoundOver
    limit_first_check: Code
    limit_first_check_code: paste the CODE#1 here

    CODE#1
    Code:
    if(!double.IsNaN(server.RemainTicketsPercent(1)) && !double.IsNaN(server.RemainTicketsPercent(2))) {
    	plugin.PRoConChat("^b^1NoVehicles^0:^n " + plugin.FriendlyMapName(server.NextMapFileName) + " load without vehicles");
    	
    	Thread voff = new Thread(
    		new ThreadStart(
    			delegate {
    				try {			
    					Thread.Sleep(45 * 1000);
    					plugin.ServerCommand("vars.vehicleSpawnAllowed", "false");
    					plugin.PRoConChat("^b^1NoVehicles^0:^n Vehicles deactivated");
    					
    					Thread.Sleep(10 * 1000);
    					plugin.ServerCommand("mapList.runNextRound");
    					plugin.PRoConChat("^b^1NoVehicles^0:^n Load nextmap");
    					
    					Thread.Sleep(2 * 1000);
    					plugin.ServerCommand("mapList.restartRound");
    					plugin.PRoConChat("^b^1NoVehicles^0:^n Restart map");
    					
    					Thread.Sleep(10 * 1000);
    					plugin.ServerCommand("vars.vehicleSpawnAllowed", "true");
    					plugin.PRoConChat("^b^1NoVehicles^0:^n Servermode loaded");
    				}
    				catch (Exception e) {
    					plugin.ConsoleException(e.ToString());
    				}
    			}
    		)
    	);
    
    	voff.Name = "VOFF";
    	voff.Start();
    } else {
    	plugin.PRoConChat("^b^1NoVehicles^0:^n Warmup Roundend detected");
    }
    
    return false;

    --------------------------------------------
    v1.0 (27-04-2017)
    - original version
    Last edited by Grovax; 05-05-2017 at 22:26.

 

 

Posting Permissions

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