Created
October 18, 2016 22:46
-
-
Save Tustin/cb572314c7417ca1241dcf7cbf4fcaf6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#using scripts\codescripts\struct; | |
#using scripts\shared\callbacks_shared; | |
#insert scripts\shared\shared.gsh; | |
#insert scripts\zm\_zm_utility.gsh; | |
//Perks | |
#using scripts\zm\_zm_perks; | |
//include these because not all maps have them | |
#using scripts\zm\_zm_perk_deadshot; | |
#using scripts\zm\_zm_perk_widows_wine; | |
#using scripts\zm\_zm_perk_electric_cherry; | |
#namespace all_perks; | |
function __init__() { | |
callback::on_spawned(&on_player_spawned); | |
} | |
function on_player_spawned() { | |
wait 5; | |
perkaholic(); | |
self thread revived(); | |
} | |
function revived() { | |
self endon("death"); | |
self endon("disconnect"); | |
while (true) { | |
self waittill("player_revived"); | |
perkaholic(); | |
WAIT_SERVER_FRAME; | |
} | |
} | |
function perkaholic() { | |
all_perks = GetArrayKeys(level._custom_perks); | |
foreach (value in all_perks){ | |
self zm_perks::give_perk(value, false); | |
} | |
self IPrintLnBold("All perks given."); | |
} |
self thread zm_utility::give_player_all_perks(false);
lel
nice mod homie 👍
Let make this
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What do we do with this? I've created a mod and dragged this inside it but I didn't get any perks. If you could please help me, would be greatly appreciated.