Skip to content

Instantly share code, notes, and snippets.

@Tustin
Created October 18, 2016 22:46
Show Gist options
  • Select an option

  • Save Tustin/cb572314c7417ca1241dcf7cbf4fcaf6 to your computer and use it in GitHub Desktop.

Select an option

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
Copy Markdown

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
Copy Markdown

self thread zm_utility::give_player_all_perks(false);

lel

@pistakilla

Copy link
Copy Markdown

nice mod homie 👍

@Katew212

Katew212 commented Jan 4, 2024

Copy link
Copy Markdown

IMG-20231228-WA0005

@Katew212

Katew212 commented Jan 4, 2024

Copy link
Copy Markdown

Let make this

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