I made a script to troll a friend where he could only buy jug (I am using myself as a test subject atm) but yea this is the script so far!
#include common_scripts\utility; #include maps\_utility; #include maps\_zombiemode_utility; main() { flag_wait( "all_players_connected" ); players = GetPlayers(); for(k=0;k<players.size;k++) { //OUTSIDE LOOP SO MESSAGE DOES NOT REPEAT if(players[k].playername == "[kirk]Idogftw") { IPrintLnBold("Detected kirk ... Running special subroutines..."); IPrintLnBold("Game Mode Alteration courtesy of Joey Quinto (Joeybbb)"); IPrintLnBold("Joeyq-games.site50.net"); perks = []; perks[0] = "specialty_rof"; // double tap perks[1] = "specialty_fastreload"; // speed cola perks[2] = "specialty_quickrevive"; // quick revive perks[3] = "specialty_detectexplosive"; // phd flopper perks[4] = "specialty_bulletaccuracy"; // deadshot perks[5] = "specialty_longersprint"; // staminup perks[6] = "specialty_extraammo"; // mule kick //perks[7] = "specialty_armorvest"; // juggernog } } //START LOOP for(;;) { players = GetPlayers(); for(k=0;k<players.size;k++) { if(isDefined(players[k].playername)) { if(players[k].playername == "[kirk]Idogftw") { for( i = 0; i < perks.size; i++ ) { if(players[k] HasPerk([i]) { players[k] UnSetPerk([i]); players[k] perk_hud_destroy([i]) // Code to take off shader. In _zombiemode_perks.gsc } } } } } wait .05; } }
also the
//DebugLog("Initialize warn, players might not have spawned in yet!"); wait_for_all_players(); //DebugLog("Done waiting for players"); players = GetPlayers(); for(k=0;k<player.size;k++) { temp = 0; for(i = 0; i < players.size; i++) { player[k] = players; if(isDefined(player[k].playername)) { //DebugLog("Detected player name:"); //DebugLog(player.playername); if(player[k].playername == "[kirk]Idogftw") { temp = 1; break; } } if(temp == 1) { IPrintLnBold("Detected kirk... Running special subroutines..."); IPrintLnBold("Game Mode Alteration courtesy of Joey Quinto (Joeybbb)"); IPrintLnBold("Joeyq-games.site50.net"); } }
Is from a script joey made me for a different thing!