#include maps/mp/zombies/_zm_utility;
#include maps/mp/_utility;
#include maps/_utility;
#include common_scripts/utility;
#include maps/mp/zombies/_zm_spawner;
#include maps/mp/gametypes_zm/_hud_message;
#include maps/mp/gametypes_zm/_hud_util;
#include maps/mp/zombies/_zm_powerups;
#include scripts/zm/remix/_powerups;
init()
{
level thread onplayerconnect();
}
onplayerconnect()
{
for (;;)
{
level waittill("connected", player);
// when a player connects, they will thread this.
player thread maxAmmo_setup();
}
}
maxAmmo_setup()
{
self endon("disconnect");
level endon("end_game");
self endon("end_game");
wait 5;
for (;;)
{
level waittill("round_start");
self thread maxAmmoEveryRound();
}
}
maxAmmoEveryRound()
{
if (level.round_number >= 1)
{
//foreach (player in level.players)
//{
level thread full_ammo_powerup_override(); // Change to max_ammo_powerup
player thread full_ammo_powerup_override(); // Change to max_ammo
//}
}
}
It compiles and loads fine but doesn't give any max ammo. Any help would be appreciated.