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