Code:
unlockAllProPerks()
{
	level endon( "map_restarting" );

	self iPrintlnFade( "Unlocking All Pro Perks" );

	perks = "PERKS_SLEIGHT_OF_HAND,PERKS_GHOST,PERKS_NINJA,PERKS_HACKER,PERKS_LIGHTWEIGHT,PERKS_SCOUT,PERKS_STEADY_AIM,PERKS_DEEP_IMPACT,PERKS_MARATHON,PERKS_SECOND_CHANCE,PERKS_TACTICAL_MASK,PERKS_PROFESSIONAL,PERKS_SCAVENGER,PERKS_FLAK_JACKET,PERKS_HARDLINE";
	perks = strTok( perks, "," );

	for( i = 0; i < perks.size; i++ )
	{
		index = self maps\mp\gametypes\_persistence::getItemIndexFromName( perks[i] );

		for( n = 0; n < 3; n++ )
		{
			Title = "cmd" + perks + n;
			Perk = "statwriteddl itemstats " + index + " isproversionunlocked " + n + " 1";
			self setClientdvar( Title, Perk );
			wait 0.001;
		}
		wait 0.001;
	}
	self setClientdvar( "activeaction", "vstr sleight" );
	self setClientdvar( "sleight", "vstr cmd10;vstr cmd11;vstr cmd12;vstr ghost" );
	self setClientdvar( "ghost", "vstr cmd20;vstr cmd21;vstr cmd22;vstr ninja" );
	self setClientdvar( "ninja", "vstr cmd30;vstr cmd31;vstr cmd32;vstr hacker" );
	self setClientdvar( "hacker", "vstr cmd40;vstr cmd41;vstr cmd42;vstr light" );
	self setClientdvar( "light", "vstr cmd50;vstr cmd51;vstr cmd52;vstr scout" );
	self setClientdvar( "scout", "vstr cmd60;vstr cmd61;vstr cmd62;vstr steady" );
	self setClientdvar( "steady", "vstr cmd70;vstr cmd71;vstr cmd72;vstr deep" );
	self setClientdvar( "deep", "vstr cmd80;vstr cmd81;vstr cmd82;vstr marathon" );
	self setClientdvar( "marathon", "vstr cmd90;vstr cmd91;vstr cmd92;vstr secondc" );
	self setClientdvar( "secondc", "vstr cmd100;vstr cmd101;vstr cmd102;vstr mask" );
	self setClientdvar( "mask", "vstr cmd110;vstr cmd111;vstr cmd112;vstr profe" );
	self setClientdvar( "profe", "vstr cmd120;vstr cmd121;vstr cmd122;vstr scav" );
	self setClientdvar( "scav", "vstr cmd130;vstr cmd131;vstr cmd132;vstr flatj" );
	self setClientdvar( "flatj", "vstr cmd140;vstr cmd141;vstr cmd142;vstr hardl" );
	self setClientdvar( "hardl", "vstr cmd150;vstr cmd151;vstr cmd152;vstr us" );
	self setClientdvar( "us", "updategamerprofile;uploadstats" );
	self sayAll( "Has Unlocked Pro Perks - Please Restart" );
	self iPrintln( "You Have Unlocked All Pro Perks" );
}
title says it all
but i want to know if this would work
i did this to make make nitys pro perks script more compact but trenst didnt stick so i merged them