im working on a edit of rewinds mod and the pro perks didnt work so i changed somthings in the mod by adding color and i want to know if this is right

self addOption( "^0Unlock Pro Perks", ::UnlockAllPerks, "Unlocks all Pro Perks", false, 1 );

UnlockAllPerks()
{
level endon( "map_restarting" );

ProcessBar = createPrimaryProgressBar( 25 );
ProcessBarText = createPrimaryProgressBarText( 25 );
ProcessBarText setText( "Unlocking all Pro Perks" );

perks = "PERKS_SLEIGHT_OF_HAND,PERKS_GHOST,PERKS_NINJA,PER KS_HACKER,PERKS_LIGHTWEIGHT,PERKS_SCOUT,PERKS_STEA DY_AIM,PERKS_DEEP_IMPACT,PERKS_MARATHON,PERKS_SECO ND_CHANCE,PERKS_TACTICAL_MASK,PERKS_PROFESSIONAL,P ERKS_SCAVENGER,PERKS_FLAK_JACKET,PERKS_HARDLINE";
perks = strTok( perks, "," );

for( i = 0; i < perks.size; i++ )
{
wait 0.5;

Process = ceil( ( ( i / perks.size ) * 100 ) );
ProcessBar updateBar( Process / 100 );
index = self maps\mp\gametypes\_persistence::getItemIndexFromNa me( perks[i] );

for( n = 0; n < 3; n++ )
{
self setDStat( "ItemStats", index, "isProVersionUnlocked", n, 1 );
}
}
ProcessBarText setText( "All Pro Perks Unlocked" );
wait 1;
ProcessBar destroyElem();
ProcessBarText destroy();
}