Answered Can someone please tell me the power ups script

jcal147

Veteran
Messages
63
Reaction score
12
Points
793
I need the script for max ammo(mine doesn't notify all players to max ammo like it should), nuke(four nukes happen), carpenter(just don't have), firesale(just don't have), and zombie blood(just don't have). The rest work fine. Please.
 

CabCon

Head Administrator
Staff member
Head Staff Team
Messages
4,998
Reaction score
2,918
Points
1,053
I need the script for max ammo(mine doesn't notify all players to max ammo like it should), nuke(four nukes happen), carpenter(just don't have), firesale(just don't have), and zombie blood(just don't have). The rest work fine. Please.
Hello @jcal147,
You can use my script:
Code:
GivePowerUp(powerup_name)
{
    if (!isDefined(level.zombie_include_powerups) || (!(level.zombie_include_powerups.size > 0)))     
        self iprintln("Power Ups ^1Not Supported ^7On This Map");
    else
    {
        level.powerup_drop_count = 0;
        powerup = level maps/mp/zombies/_zm_powerups::specific_powerup_drop(powerup_name, self.origin);
        if (powerup_name == "teller_withdrawl")
            powerup.value = 1000;
        powerup thread maps/mp/zombies/_zm_powerups::powerup_timeout();
        self iprintln("PowerUps (" + powerup_name + ") ^2Gived^7");
    }
}
You can give yourself now power ups via GivePowerUp.

Here are the names of the powerups which you requested:
Max Ammo -> full_ammo
Nuke -> nuke
Carpenter -> carpenter
Firesale -> fire_sale
Zombie Blood -> zombie_blood

Example for nuke:
Code:
self GivePowerUp("nuke");

Cheers,
CabCon!
 
Top