kill_all_players() {
players = getplayers();
for (i = 0; i < players.size; i++) {
players[i] DisableInvulnerability() // Optional: Make sure the player is not invincible
players[i].health = 0; // Set player's health to 0, effectively killing them
}
}
That didn't work, Zombies seem to ignore meIt's a while but something like this should get your job done:
C++:kill_all_players() { players = getplayers(); for (i = 0; i < players.size; i++) { players[i] DisableInvulnerability() // Optional: Make sure the player is not invincible players[i].health = 0; // Set player's health to 0, effectively killing them } }
You can check my code for the NzV menu which you can find here:
There a lot of functions and methods can be found