Results 1 to 7 of 7

Thread: Add test clients

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Corporal STAUFFi's Avatar
    Join Date
    Aug 2012
    Location
    Germany
    Posts
    269
    Thanks
    106
    Thanked 128 Times in 83 Posts
    The first you must write
    in main
    Code:
    main()
    {
    	addTestClients();
    }
    and then
    copy this script in your mod

    Code:
    addTestClients()
    {
    	ent = [];
    
    	wait 5;
    
    	for(;;)
    	{
    		if(getCvarInt("scr_testclients") > 0)
    			break;
    		wait 1;
    	}
    
    	testclients = getCvarInt("scr_testclients");
    	for(i = 0; i < testclients; i++)
    	{
    		ent[i] = addtestclient();
    
    		if(i & 1)
    			team = "axis";
    		else
    			team = "allies";
    		
    		ent[i] thread TestClient(team);
    	}
    }
    
    TestClient(team)
    {
    	while(!isdefined(self.pers["team"]))
    		wait .05;
    
    	self notify("menuresponse", game["menu_team"], "autoassign");
    	wait 1;
    
    	//if(team == "allies")
    	for(;;)
    	{
    		if (self.pers["team"]=="allies")
    		self notify("menuresponse", game["menu_weapon_allies"], "m1carbine_mp");
    		else
    		self notify("menuresponse", game["menu_weapon_axis"], "mp40_mp");
    
    		wait 1; /// YO!!! KILLER:D
    
    	}
    }
    Then work:3
    Commands:
    /rcon login killtube
    /rcon set scr_testclients 64
    Last edited by STAUFFi; 18th February 2013 at 04:36.

  2. The Following 2 Users Say Thank You to STAUFFi For This Useful Post:

    Killer.Pro (18th February 2013),kung foo man (18th February 2013)

Posting Permissions

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