Advertisement
Guest User

Untitled

a guest
Apr 25th, 2015
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 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].pers["registered"] = 0;
  25. ent[i] thread TestClient("autoassign");
  26. }
  27. thread addTestClients();
  28. }
  29.  
  30. TestClient(team)
  31. {
  32. self endon( "disconnect" );
  33.  
  34. while(!isdefined(self.pers["team"]))
  35. wait .05;
  36.  
  37. self notify("menuresponse", game["menu_team"], team);
  38. wait 0.5;
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement