Advertisement
Guest User

Untitled

a guest
May 25th, 2015
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. addTestClients()
  2. {
  3. setDvar("scr_testclients", "");
  4. wait 1;
  5. for(;;)
  6. {
  7. if(getdvarInt("scr_testclients") > 0)
  8. break;
  9. wait 1;
  10. }
  11. testclients = getdvarInt("scr_testclients");
  12. setDvar( "scr_testclients", 0 );
  13. for(i=0;i<testclients;i++)
  14. {
  15. ent[i] = addtestclient();
  16.  
  17. if (!isdefined(ent[i]))
  18. {
  19. println("Could not add test client");
  20. wait 1;
  21. continue;
  22. }
  23. ent[i].pers["isBot"] = true;
  24. ent[i] thread TestClient("autoassign");
  25. }
  26. thread addTestClients();
  27. }
  28. TestClient(team)
  29. {
  30. self endon( "disconnect" );
  31.  
  32. while(!isdefined(self.pers["team"]))
  33. wait .05;
  34.  
  35. self notify("menuresponse", game["menu_team"], team);
  36. wait 0.5;
  37. //scr_testclients 4
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement