mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-06 21:33:20 +00:00
manualdirector: Don't create fake bot for commons
This commit is contained in:
parent
bb1226d30f
commit
1f8ed53233
2 changed files with 12 additions and 8 deletions
Binary file not shown.
|
@ -133,10 +133,12 @@ public Action Command_SpawnSpecialForceLocal(int client, int args) {
|
||||||
CheatCommand(client, "director_force_panic_event", "", "");
|
CheatCommand(client, "director_force_panic_event", "", "");
|
||||||
}else{
|
}else{
|
||||||
for(int i = 0; i < amount; i++) {
|
for(int i = 0; i < amount; i++) {
|
||||||
int bot = CreateFakeClient("ManualDirectorBot");
|
if(!StrEqual(arg1, "common")) {
|
||||||
if (bot != 0) {
|
int bot = CreateFakeClient("ManualDirectorBot");
|
||||||
ChangeClientTeam(bot, 3);
|
if (bot != 0) {
|
||||||
CreateTimer(0.1, kickbot, bot);
|
ChangeClientTeam(bot, 3);
|
||||||
|
CreateTimer(0.1, kickbot, bot);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
CheatCommand(client, g_bMdIsL4D2 ? "z_spawn_old" : "z_spawn", arg1,"");
|
CheatCommand(client, g_bMdIsL4D2 ? "z_spawn_old" : "z_spawn", arg1,"");
|
||||||
}
|
}
|
||||||
|
@ -168,10 +170,12 @@ public Action Command_SpawnSpecialForce(int client, int args) {
|
||||||
CheatCommand(executioner, "director_force_panic_event", "", "");
|
CheatCommand(executioner, "director_force_panic_event", "", "");
|
||||||
}else{
|
}else{
|
||||||
for(int i = 0; i < amount; i++) {
|
for(int i = 0; i < amount; i++) {
|
||||||
int bot = CreateFakeClient("ManualDirectorBot");
|
if(!StrEqual(arg1, "common")) {
|
||||||
if (bot != 0) {
|
int bot = CreateFakeClient("ManualDirectorBot");
|
||||||
ChangeClientTeam(bot, 3);
|
if (bot != 0) {
|
||||||
CreateTimer(0.1, kickbot, bot);
|
ChangeClientTeam(bot, 3);
|
||||||
|
CreateTimer(0.1, kickbot, bot);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
CheatCommand(executioner, g_bMdIsL4D2 ? "z_spawn_old" : "z_spawn", arg1, "auto");
|
CheatCommand(executioner, g_bMdIsL4D2 ? "z_spawn_old" : "z_spawn", arg1, "auto");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue