Skip to content

Instantly share code, notes, and snippets.

@Tustin
Created October 18, 2016 22:46
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Tustin/cb572314c7417ca1241dcf7cbf4fcaf6 to your computer and use it in GitHub Desktop.
Save Tustin/cb572314c7417ca1241dcf7cbf4fcaf6 to your computer and use it in GitHub Desktop.
#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.");
}
@Lucario443
Copy link

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.

@WacistDolphin
Copy link

self thread zm_utility::give_player_all_perks(false);

lel

@pistakilla
Copy link

nice mod homie 👍

@Katew212
Copy link

Katew212 commented Jan 4, 2024

IMG-20231228-WA0005

@Katew212
Copy link

Katew212 commented Jan 4, 2024

Let make this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment