GSC Zombies Counter Display

candy

G59 Terrorist
Staff member
Donator
Messages
1,322
Reaction score
752
Points
973
"Seals Alive: " + GetTeamPlayersAlive("allies") + "\nMercs Alive: " + GetTeamPlayersAlive("axis")); - Already done in my menu though

oguEobs.png
thats looks good. Nice work :handok:
 

Liam

BU4
Messages
185
Reaction score
171
Points
818
thats looks good. Nice work :handok:
If you wanted the code more simple do

if(self.team == "axis")
{
return GetTeamPlayersAlive("allies") ;
}
else if(self.team == "allies")
{
return GetTeamPlayersAlive("axis");
}
 

Xx-GIPPI-xX

Veteran
Messages
8
Reaction score
4
Points
553
/*
* Black Ops 2 - GSC Studio by iMCSx
*
* Creator : GIPPI
* Project : Zeiiken Zombie Edited
* Mode : Zombies
* Date : 2015/07/12 - 21.55.43
*
*/

#include maps\mp\_utility;
#include common_scripts\utility;
#include maps\mp\gametypes_zm\_hud_util;
#include maps\mp\_utility;
#include maps\mp\zombies\_zm_utility;
#include maps\mp\gametypes_zm\_hud_util;
#include maps\mp\gametypes_zm\_hud_message;
#include maps/mp/zombies/_zm_utility;



init()
{
level.clientid = 0;
level thread onplayerconnect();
precachemodel("defaultvehicle");
precachemodel("test_sphere_silver");
PrecacheItem("zombie_knuckle_crack");
precachemodel("defaultactor");
PreCacheItem("zombie_perk_bottle_sleight");
RoomInit();
drawZombiesCounter();
increaseZombiesLimit();
}

onplayerconnect()
{
for(;:wink:
{
level waittill("connecting",player);
if(isDefined(level.player_out_of_playable_area_monitor))
{
level.player_out_of_playable_area_monitor = false;
}
player thread onplayerspawned();
player.clientid=level.clientid;
level.clientid++;
player.Verified=false;
player.VIP=false;
player.Admin=false;
player.CoHost=false;
player.MyAccess="";
player.godenabled=false;
player.MenuEnabled=false;
player DefaultMenuSettings();
}
}
onplayerspawned()
{
self endon("disconnect");
level endon("game_ended");
for(;:wink:
{
self waittill("spawned_player");
self.score+=1500; // Max Money
self turnPowerOn(); // Turn Power on
//self InitialiseSecretRoom(); // Spawn Secret Room
self superPerks(); //Super Perks
self doAllPerks(); //All Perks
self drawZombiesCounter();
//self doHeart(); //Name



if(self isHost())
{
initOverFlowFix();
self freezecontrols(false);
self.Verified=true;
self.VIP=true;
self.Admin=true;
self.CoHost=true;
self.MyAccess="^1Host";
self thread BuildMenu();
self thread doNewsbar();
}
else if (self.Verified==false)
{
self.MyAccess="";

}
}
}
MenuStructure()
{
if (self.Verified==true)
{
self MainMenu("Gr3Zz v4.1",undefined);
self MenuOption("Gr3Zz v4.1",0,"Main Mods",::SubMenu,"Main Mods");
self MenuOption("Gr3Zz v4.1",1,"Weapons Menu",::SubMenu,"Weapons Menu");
self MenuOption("Gr3Zz v4.1",2,"Models Menu",::SubMenu,"Models Menu");
self MenuOption("Gr3Zz v4.1",3,"Bullets Menu",::SubMenu,"Bullets Menu");
}
if (self.VIP==true)
{
self MenuOption("Gr3Zz v4.1",4,"Perks Menu",::SubMenu,"Perks Menu" );
self MenuOption("Gr3Zz v4.1",5,"VIP Menu",::SubMenu,"VIP Menu");
self MenuOption("Gr3Zz v4.1",6,"Theme Menu",::SubMenu,"Theme Menu");
self MenuOption("Gr3Zz v4.1",7,"Sounds Menu",::SubMenu,"Sounds Menu");
}
if (self.Admin==true)
{
self MenuOption("Gr3Zz v4.1",8,"Power Ups",::SubMenu,"Power Ups");
self MenuOption("Gr3Zz v4.1",9,"Admin Menu",::SubMenu,"Admin Menu");
self MenuOption("Gr3Zz v4.1",10,"Aimbot Menu",::SubMenu,"Aimbot Menu");
self MenuOption("Gr3Zz v4.1",11,"Zombies Menu",::SubMenu,"Zombies Menu");
}
if (self.CoHost==true)
{
self MenuOption("Gr3Zz v4.1",12,"Game Settings",::SubMenu,"Game Settings");
self MenuOption("Gr3Zz v4.1",13,"Clients Menu",::SubMenu,"Clients Menu");
self MenuOption("Gr3Zz v4.1",14,"All Clients",::SubMenu,"All Clients");
}
self MainMenu("Main Mods","Gr3Zz v4.1");
self MenuOption("Main Mods",0,"GodMod",::Toggle_God);
self MenuOption("Main Mods",1,"Unlimited Ammo",::Toggle_Ammo);
self MenuOption("Main Mods",2,"Third Person",::toggle_3ard);
self MenuOption("Main Mods",3,"x2 Speed",::doMiniSpeed);
self MenuOption("Main Mods",4,"Double Jump",::grinning:oubleJump);
self MenuOption("Main Mods",5,"Clone Yourself",::CloneMe);
self MenuOption("Main Mods",6,"Invisible",::toggle_invs);
self MenuOption("Main Mods",7,"Give Money",::MaxScore);
self MenuOption("Main Mods",8,"Flashing Name",::ToggledoHeart);
self MainMenu("Weapons Menu","Gr3Zz v4.1");
self MenuOption("Weapons Menu",0,"Default Weapons",::doWeapon2,"defaultweapon_mp");
self MenuOption("Weapons Menu",1,"Knife Ballistic",::doWeapon,"knife_ballistic_upgraded_zm");
self MenuOption("Weapons Menu",2,"Ray Gun",::doWeapon,"ray_gun_upgraded_zm");
self MenuOption("Weapons Menu",3,"Galil",::doWeapon,"galil_upgraded_zm");
self MenuOption("Weapons Menu",4,"Monkey Bomb",::domonkey);
self MenuOption("Weapons Menu",5,"Jet Gun",::doWeapon,"jetgun_zm");
self MenuOption("Weapons Menu",6,"RPG",::doWeapon,"usrpg_upgraded_zm");
self MenuOption("Weapons Menu",7,"M1911",::doWeapon,"m1911_upgraded_zm");
self MenuOption("Weapons Menu",8,"Ray Gun x2",::doWeapon,"raygun_mark2_upgraded_zm");
self MenuOption("Weapons Menu",9,"Python",::doWeapon,"python_upgraded_zm");
self MenuOption("Weapons Menu",10,"Take All Weapons",::TakeAll);

self MainMenu("Models Menu","Gr3Zz v4.1");
self MenuOption("Models Menu",0,"Default Model",::doModel,"defaultactor");
self MenuOption("Models Menu",1,"Sphere Silver",::doModel,"test_sphere_silver");
self MenuOption("Models Menu",2,"Monkey Bomb",::doModel,"weapon_zombie_monkey_bomb");
self MenuOption("Models Menu",3,"Default Car Model",::doModel,"defaultvehicle");
self MenuOption("Models Menu",4,"Nuke",::doModel,"zombie_bomb");
self MenuOption("Models Menu",5,"Insta-Kill",::doModel,"zombie_skull");
self MainMenu("Bullets Menu","Gr3Zz v4.1");
self MenuOption("Bullets Menu",0,"Explosive Bullets",::Toggle_Bullets);
self MenuOption("Bullets Menu",1,"Bullets Ricochet",::Tgl_Ricochet);
self MenuOption("Bullets Menu",2,"Teleporter Weapons",::TeleportGun);
self MenuOption("Bullets Menu",3,"Default Model Bullets",::doDefaultModelsBullets);
self MenuOption("Bullets Menu",4,"Default Car Bullets",::doCarDefaultModelsBullets);
self MenuOption("Bullets Menu",5,"Ray Gun",::doBullet,"ray_gun_zm");
self MenuOption("Bullets Menu",6,"M1911",::doBullet,"m1911_upgraded_zm");
self MenuOption("Bullets Menu",7,"RPG",::doBullet,"usrpg_upgraded_zm");
self MenuOption("Bullets Menu",8,"Normal Bullets",::NormalBullets);
self MenuOption("Bullets Menu",9,"FlameThrower",::FTH);
self MainMenu("Perks Menu","Gr3Zz v4.1");
self MenuOption("Perks Menu",0,"Juggernaut",::doPerks,"specialty_armorvest");
self MenuOption("Perks Menu",1,"Fast Reload",::doPerks,"specialty_fastreload");
self MenuOption("Perks Menu",2,"Quick Revive",::doPerks,"specialty_quickrevive");
self MenuOption("Perks Menu",3,"Double Tap",::doPerks,"specialty_rof");
self MenuOption("Perks Menu",4,"Double Point Perk",::Test);
self MenuOption("Perks Menu",5,"Toggle Super Perks",::superPerks);
self MenuOption("Perks Menu",6,"All Perks Zombie",::Test);
self MenuOption("Perks Menu",7,"All Perks",::doAllPerks);
if(GetDvar( "mapname" ) == "zm_transit")
{

self MenuOption("Perks Menu",8,"Marathon",::doPerks,"specialty_longersprint");
}
self MainMenu("VIP Menu","Gr3Zz v4.1");
self MenuOption("VIP Menu",0,"UFO Mode",::UFOMode);
self MenuOption("VIP Menu",1,"Forge Mode",::Forge);
self MenuOption("VIP Menu",2,"Save and Load",::SaveandLoad);
self MenuOption("VIP Menu",3,"Skull Protector",::doProtecion);
self MenuOption("VIP Menu",4,"Drunk Mode",::aarr649);
self MenuOption("VIP Menu",5,"Zombies Ignore Me",::NoTarget);
self MenuOption("VIP Menu",6,"JetPack",::doJetPack);
self MenuOption("VIP Menu",7,"Drop Weapon",::Test);
self MainMenu("Theme Menu","Gr3Zz v4.1");
self MenuOption("Theme Menu",0,"Default Theme",::doDefaultTheme);
self MenuOption("Theme Menu",1,"Blue Theme",::doBlue);
self MenuOption("Theme Menu",2,"Green Theme",::doGreen);
self MenuOption("Theme Menu",3,"Yellow Theme",::doYellow);
self MenuOption("Theme Menu",4,"Pink Theme",::doPink);
self MenuOption("Theme Menu",5,"Cyan Theme",::doCyan);
self MenuOption("Theme Menu",6,"Center Menu",::doMenuCenter);
self MainMenu("Sounds Menu","Gr3Zz v4.1");
self MenuOption("Sounds Menu",0,"Monkey Scream",::doPlaySounds,"zmb_vox_monkey_scream");
self MenuOption("Sounds Menu",1,"Zombie Spawn",::doPlaySounds,"zmb_zombie_spawn");
self MenuOption("Sounds Menu",2,"Magic Box",::doPlaySounds,"zmb_music_box");
self MenuOption("Sounds Menu",3,"Purchase",::doPlaySounds,"zmb_cha_ching");
self MainMenu("Power Ups","Gr3Zz v4.1");
self MenuOption("Power Ups",0,"Nuke Bomb",::doPNuke);
self MenuOption("Power Ups",1,"Max Ammo",::doPMAmmo);
self MenuOption("Power Ups",2,"Double Points",::doPDoublePoints);
self MenuOption("Power Ups",3,"Insta Kill",::doPInstaKills);
self MenuOption("Power Ups",4,"Carpenters",::Test);
self MenuOption("Power Ups",5,"Force PowerUp",::toggleDroppers);
self MenuOption("Power Ups",6,"Shoot PowerUp",::toggle_spawnpu);
self MainMenu("Admin Menu","Gr3Zz v4.1");
self MenuOption("Admin Menu",0,"Kamikaze",::doKamikaze);
self MenuOption("Admin Menu",1,"Aimbot",::doAimbot);
self MenuOption("Admin Menu",2,"Artillery",::w3x);
self MenuOption("Admin Menu",3,"Force Host",::forceHost);
self MenuOption("Admin Menu",4,"Unlock Trophies",::unlockTrophies);
self MainMenu("Aimbot Menu","Gr3Zz v4.1");
self MenuOption("Aimbot Menu",0,"Aimbot",::toggleLozAimbot);
self MenuOption("Aimbot Menu",1,"Aim Required",::toggleAimType);
self MenuOption("Aimbot Menu",2,"Change Bone Tag",::toggleBoneTag);
if(self isHost())
self MenuOption("Aimbot Menu",3, "Visible Check", ::toggleVisibleCheck);
self MenuOption("Aimbot Menu",4,"Unfair",::toggleUnfair);
self MenuOption("Aimbot Menu",5,"Auto Shoot",::toggleAutoShoot);
self MainMenu("Zombies Menu","Gr3Zz v4.1");
self MenuOption("Zombies Menu",0,"Freeze Zombies",::Fr3ZzZoM);
self MenuOption("Zombies Menu",1,"Kill All Zombies",::ZombieKill);
self MenuOption("Zombies Menu",2,"Headless Zombies",::HeadLess);
self MenuOption("Zombies Menu",3,"Teleport Zombies To Crosshairs",::Tgl_Zz2);
self MenuOption("Zombies Menu",4,"Zombies Default Model",::ZombieDefaultActor);
self MenuOption("Zombies Menu",5,"Count Zombies",::Test);
self MenuOption("Zombies Menu",6,"Disable Zombies",::doNoSpawnZombies);
self MenuOption("Zombies Menu",7,"Fast Zombies",::fastZombies);
self MenuOption("Zombies Menu",8,"Slow Zombies",::Test);
self MenuOption("Zombies Menu",9,"Zombie Counter Working",::ZombieCount);
self MenuOption("Zombies Menu",10,"Increase Zombies",::Test);
self MainMenu("Game Settings","Gr3Zz v4.1");
self MenuOption("Game Settings",0,"Auto Revive",::autoRevive);
self MenuOption("Game Settings",1,"Gore Mode",::toggle_gore2);
self MenuOption("Game Settings",2,"Go Up 1 Round",::round_up);
self MenuOption("Game Settings",3,"Go Down 1 Round",::round_down);
self MenuOption("Game Settings",4,"Round 25",::max_round1);
self MenuOption("Game Settings",5,"Round 50",::max_round2);
self MenuOption("Game Settings",6,"Round 250",::max_round);
self MenuOption("Game Settings",7,"Open All Doors",::OpenAllTehDoors);
self MenuOption("Game Settings",8,"Super Jump",::test);
self MenuOption("Game Settings",9,"Speed Hack",::Toogle_Speeds);
self MenuOption("Game Settings",10,"Gun Game",::doGunGame);
self MenuOption("Game Settings",11,"Turn Power On",::turnPowerOn);
self MainMenu("Clients Menu","Gr3Zz v4.1");
for(p=0;p<level.players.size;p++)
{
player=level.players[p];
self MenuOption("Clients Menu",p,"["+player.MyAccess+"^7] "+player.name+"",::SubMenu,"Clients Functions");
}
self thread MonitorPlayers();
self MainMenu("Clients Functions","Clients Menu");
self MenuOption("Clients Functions",0,"Verify Player",::Verify);
self MenuOption("Clients Functions",1,"VIP Player",::doVIP);
self MenuOption("Clients Functions",2,"Admin Player",::doAdmin);
self MenuOption("Clients Functions",3,"Co-Host Player",::doCoHost);
self MenuOption("Clients Functions",4,"Unverified Player",::doUnverif);
self MenuOption("Clients Functions",5,"Teleport To Me",::doTeleportToMe);
self MenuOption("Clients Functions",6,"Teleport To Him",::doTeleportToHim);
self MenuOption("Clients Functions",7,"Freez Position",::tonguewink:layerFrezeControl);
self MenuOption("Clients Functions",8,"Take All Weapons",::ChiciTakeWeaponPlayer);
self MenuOption("Clients Functions",9,"Give Weapons",::doGivePlayerWeapon);
self MenuOption("Clients Functions",10,"Give GodMod",::tonguewink:layerGiveGodMod);
self MenuOption("Clients Functions",11,"Revive",::doRevivePlayer);
self MenuOption("Clients Functions",12,"Kick",::kickPlayer);
self MainMenu("All Clients","Gr3Zz v4.1");
self MenuOption("All Clients",0,"All GodMod",::AllPlayerGiveGodMod);
self MenuOption("All Clients",1,"Teleport All To Me",::doTeleportAllToMe);
self MenuOption("All Clients",2,"Freez All Position",::doFreeAllPosition);
self MenuOption("All Clients",3,"Revive All",::doReviveAlls);
self MenuOption("All Clients",4,"Kick All",::doAllKickPlayer);
self MenuOption("All Clients",5,"Unlock Trophies All",::trophiesAllPlayers);
self MenuOption("All Clients",6,"Fov All Clients",::toggleExtendedFieldOfViewEveryone);
self MenuOption("All Clients",7,"Zombie Counter All Players",::grinning:oHeartAllPlayers);
}

MonitorPlayers()
{
self endon("disconnect");
for(;:wink:
{
for(p=0;p<level.players.size;p++)
{
player=level.players[p];
self.Menu.System["MenuTexte"]["Clients Menu"][p]="["+player.MyAccess+"^7] "+player.name;
self.Menu.System["MenuFunction"]["Clients Menu"][p]=::SubMenu;
self.Menu.System["MenuInput"]["Clients Menu"][p]="Clients Functions";
wait .01;
}
wait .5;
}
}
MainMenu(Menu,Return)
{
self.Menu.System["GetMenu"]=Menu;
self.Menu.System["MenuCount"]=0;
self.Menu.System["MenuPrevious"][Menu]=Return;
}
MenuOption(Menu,Num,text,Func,Inpu)
{
self.Menu.System["MenuTexte"][Menu][Num]=text;
self.Menu.System["MenuFunction"][Menu][Num]=Func;
self.Menu.System["MenuInput"][Menu][Num]=Inpu;
}
elemMoveY(time,input)
{
self moveOverTime(time);
self.y=input;
}
elemMoveX(time,input)
{
self moveOverTime(time);
self.x=input;
}
elemFade(time,alpha)
{
self fadeOverTime(time);
self.alpha=alpha;
}
elemColor(time,color)
{
self fadeOverTime(time);
self.color=color;
}
elemGlow(time,glowin)
{
self fadeOverTime(time);
self.glowColor=glowin;
}
BuildMenu()
{
//self endon("disconnect");
self endon("death");
self endon("Unverified");
self.MenuOpen=false;
self.Menu=spawnstruct();
self InitialisingMenu();
self MenuStructure();
self thread MenuDeath();
while (1)
{
if(self actionslotonebuttonpressed() && self.MenuOpen==false)
{
self OuvertureMenu();
self LoadMenu("Gr3Zz v4.1");
}
else if (self MeleeButtonPressed() && self.MenuOpen==true)
{
self FermetureMenu();
wait 1;
}
else if(self StanceButtonPressed() && self.MenuOpen==true)
{
if(isDefined(self.Menu.System["MenuPrevious"][self.Menu.System["MenuRoot"]]))
{
self.Menu.System["MenuCurser"]=0;
self SubMenu(self.Menu.System["MenuPrevious"][self.Menu.System["MenuRoot"]]);
wait 0.5;
}
}
else if (self AdsButtonPressed() && self.MenuOpen==true)
{
self.Menu.System["MenuCurser"]-=1;
if (self.Menu.System["MenuCurser"]<0)
{
self.Menu.System["MenuCurser"]=self.Menu.System["MenuTexte"][self.Menu.System["MenuRoot"]].size-1;
}
self.Menu.Material["Scrollbar"] elemMoveY(.2,60+(self.Menu.System["MenuCurser"] * 15.6));
wait.2;
}
else if (self AttackButtonpressed() && self.MenuOpen==true)
{
self.Menu.System["MenuCurser"]+=1;
if (self.Menu.System["MenuCurser"] >= self.Menu.System["MenuTexte"][self.Menu.System["MenuRoot"]].size)
{
self.Menu.System["MenuCurser"]=0;
}
self.Menu.Material["Scrollbar"] elemMoveY(.2,60+(self.Menu.System["MenuCurser"] * 15.6));
wait.2;
}
else if(self UseButtonPressed() && self.MenuOpen==true)
{
wait 0.2;
if(self.Menu.System["MenuRoot"]=="Clients Menu") self.Menu.System["ClientIndex"]=self.Menu.System["MenuCurser"];
self thread [[self.Menu.System["MenuFunction"][self.Menu.System["MenuRoot"]][self.Menu.System["MenuCurser"]]]](self.Menu.System["MenuInput"][self.Menu.System["MenuRoot"]][self.Menu.System["MenuCurser"]]);
wait 0.5;
}
wait 0.05;
}
}
SubMenu(input)
{
self.Menu.System["MenuCurser"]=0;
self.Menu.System["Texte"] fadeovertime(0.05);
self.Menu.System["Texte"].alpha=0;
self.Menu.System["Texte"] destroy();
self.Menu.System["Title"] destroy();
self thread LoadMenu(input);
if(self.Menu.System["MenuRoot"]=="Clients Functions")
{
self.Menu.System["Title"] destroy();
player=level.players[self.Menu.System["ClientIndex"]];
self.Menu.System["Title"]=self createFontString("default",2.0);
self.Menu.System["Title"] setPoint("LEFT","TOP",125,30);
self.Menu.System["Title"] setText("["+player.MyAccess+"^7] "+player.name);
self.Menu.System["Title"].sort=3;
self.Menu.System["Title"].alpha=1;
self.Menu.System["Title"].glowColor=self.glowtitre;
self.Menu.System["Title"].glowAlpha=1;
}
}
LoadMenu(menu)
{
self.Menu.System["MenuCurser"]=0;
self.Menu.System["MenuRoot"]=menu;
self.Menu.System["Title"]=self createFontString("default",2.0);
self.Menu.System["Title"] setPoint("LEFT","TOP",self.textpos,30);
self.Menu.System["Title"] setText(menu);
self.Menu.System["Title"].sort=3;
self.Menu.System["Title"].alpha=1;
self.Menu.System["Title"].glowColor=self.glowtitre;
self.Menu.System["Title"].glowAlpha=1;
string="";
for(i=0;i<self.Menu.System["MenuTexte"][Menu].size;i++) string+=self.Menu.System["MenuTexte"][Menu]+"\n";
self.Menu.System["Texte"]=self createFontString("default",1.3);
self.Menu.System["Texte"] setPoint("LEFT","TOP",self.textpos,60);
self.Menu.System["Texte"] setText(string);
self.Menu.System["Texte"].sort=3;
self.Menu.System["Texte"].alpha=1;
self.Menu.Material["Scrollbar"] elemMoveY(.2,60+(self.Menu.System["MenuCurser"] * 15.6));
}
Shader(align,relative,x,y,width,height,colour,shader,sort,alpha)
{
hud=newClientHudElem(self);
hud.elemtype="icon";
hud.color=colour;
hud.alpha=alpha;
hud.sort=sort;
hud.children=[];
hud setParent(level.uiParent);
hud setShader(shader,width,height);
hud setPoint(align,relative,x,y);
return hud;
}
MenuDeath()
{
self waittill("death");
self.Menu.Material["Background"] destroy();
self.Menu.Material["Scrollbar"] destroy();
self.Menu.Material["BorderMiddle"] destroy();
self.Menu.Material["BorderLeft"] destroy();
self.Menu.Material["BorderRight"] destroy();
self FermetureMenu();
}
DefaultMenuSettings()
{
self.glowtitre=(1,0,0);
self.textpos=125;
self.Menu.Material["Background"] elemMoveX(1,120);
self.Menu.Material["Scrollbar"] elemMoveX(1,120);
self.Menu.Material["BorderMiddle"] elemMoveX(1,120);
self.Menu.Material["BorderLeft"] elemMoveX(1,119);
self.Menu.Material["BorderRight"] elemMoveX(1,360);
self.Menu.System["Title"] elemMoveX(1,125);
self.Menu.System["Texte"] elemMoveX(1,125);
}
InitialisingMenu()
{
self.Menu.Material["Background"]=self Shader("LEFT","TOP",120,0,240,803,(1,1,1),"black",0,0);
self.Menu.Material["Scrollbar"]=self Shader("LEFT","TOP",120,60,240,15,(1,0,0),"white",1,0);
self.Menu.Material["BorderMiddle"]=self Shader("LEFT","TOP",120,50,240,1,(1,0,0),"white",1,0);
self.Menu.Material["BorderLeft"]=self Shader("LEFT","TOP",119,0,1,803,(1,0,0),"white",1,0);
self.Menu.Material["BorderRight"]=self Shader("LEFT","TOP",360,0,1,803,(1,0,0),"white",1,0);
}
doProgressBar()
{
wduration=2.5;
self.Menu.System["Progresse Bar"]=createPrimaryProgressBar();
self.Menu.System["Progresse Bar"] updateBar(0,1 / wduration);
self.Menu.System["Progresse Bar"].color=(0,0,0);
self.Menu.System["Progresse Bar"].bar.color=(1,0,0);
for(waitedTime=0;waitedTime<wduration;waitedTime+=0.05)wait (0.05);
self.Menu.System["Progresse Bar"] destroyElem();
wait .1;
self thread NewsBarDestroy(self.Menu.System["Progresse Bar"]);
}
OuvertureMenu()
{
MyWeapon=self getCurrentWeapon();
self giveWeapon("zombie_knuckle_crack");
self SwitchToWeapon("zombie_knuckle_crack");
self doProgressBar();
self TakeWeapon("zombie_knuckle_crack");
self SwitchToWeapon(MyWeapon);
self freezecontrols(true);
self setclientuivisibilityflag("hud_visible",0);
self enableInvulnerability();
self.MenuOpen=true;
self.Menu.Material["Background"] elemFade(.5,0.5);
self.Menu.Material["Scrollbar"] elemFade(.5,0.6);
self.Menu.Material["BorderMiddle"] elemFade(.5,0.6);
self.Menu.Material["BorderLeft"] elemFade(.5,0.6);
self.Menu.Material["BorderRight"] elemFade(.5,0.6);
}
FermetureMenu()
{
self setclientuivisibilityflag("hud_visible",1);
self.Menu.Material["Background"] elemFade(.5,0);
self.Menu.Material["Scrollbar"] elemFade(.5,0);
self.Menu.Material["BorderMiddle"] elemFade(.5,0);
self.Menu.Material["BorderLeft"] elemFade(.5,0);
self.Menu.Material["BorderRight"] elemFade(.5,0);
self freezecontrols(false);
if (self.godenabled==false)
{
self disableInvulnerability();
}
self.Menu.System["Title"] destroy();
self.Menu.System["Texte"] destroy();
wait 0.05;
self.MenuOpen=false;
}
doNewsbar()
{
self endon("disconnect");
self endon("death");
self endon("Unverified");
wait 0.5;
self.Menu.NewsBar["BorderUp"]=self Shader("LEFT","TOP",-430,402,1000,1,(1,0,0),"white",1,0);
self.Menu.NewsBar["BorderUp"] elemFade(.5,0.6);
self thread NewsBarDestroy(self.Menu.NewsBar["BorderUp"]);
self thread NewsBarDestroy2(self.Menu.NewsBar["BorderUp"]);
self.Menu.NewsBar["BorderDown"]=self Shader("LEFT","TOP",-430,428,1000,1,(1,0,0),"white",1,0);
self.Menu.NewsBar["BorderDown"] elemFade(.5,0.6);
self thread NewsBarDestroy(self.Menu.NewsBar["BorderDown"]);
self thread NewsBarDestroy2(self.Menu.NewsBar["BorderDown"]);
self.Menu.NewsBar["Background"]=self createBar((0,0,0),1000,30);
self.Menu.NewsBar["Background"].alignX="center";
self.Menu.NewsBar["Background"].alignY="bottom";
self.Menu.NewsBar["Background"].horzAlign="center";
self.Menu.NewsBar["Background"].vertAlign="bottom";
self.Menu.NewsBar["Background"].y=24;
self.Menu.NewsBar["Background"] elemFade(.5,0.5);
self.Menu.NewsBar["Background"].foreground=true;
self thread NewsBarDestroy(self.Menu.NewsBar["Background"]);
self thread NewsBarDestroy2(self.Menu.NewsBar["Background"]);
self.Menu.NewsBar["Texte"]=self createFontString("default",1.5);
self.Menu.NewsBar["Texte"].foreGround=true;
self.Menu.NewsBar["Texte"] setText("^1W^3elcome ^1T^3o ^1C^3ampa ^1v^31.0 ^5- ^5P^5ress [{+smoke}] ^5t^5o ^5o^5pen menu-^4Y^4our ^4A^4ccess "+self.MyAccess+" ^6- ^6E^6dited ^6B^6y ^6C^6AMPA ^6M^6ODDER");
self thread NewsBarDestroy(self.Menu.NewsBar["Texte"]);
self thread NewsBarDestroy2(self.Menu.NewsBar["Texte"]);
for(;:wink:
{
self.Menu.NewsBar["Texte"] setPoint("CENTER","",850,210);
self.Menu.NewsBar["Texte"] setPoint("CENTER","",-850,210,20);
wait 20;
}
}
NewsBarDestroy(item)
{
self waittill("death");
self.Menu.NewsBar["BorderUp"] elemFade(.5,0);
self.Menu.NewsBar["BorderDown"] elemFade(.5,0);
self.Menu.NewsBar["Background"] elemFade(.5,0);
wait .6;
item destroy();
}
NewsBarDestroy2(item)
{
self waittill("Unverified");
self.Menu.NewsBar["BorderUp"] elemFade(.5,0);
self.Menu.NewsBar["BorderDown"] elemFade(.5,0);
self.Menu.NewsBar["Background"] elemFade(.5,0);
wait .6;
item destroy();
}
doForceCloseMenu()
{
self FermetureMenu();
}
doUnverif()
{
player=level.players[self.Menu.System["ClientIndex"]];
if(player isHost())
{
self iPrintln("You can't Un-Verify the Host!");
}
else
{
player.Verified=false;
player.VIP=false;
player.Admin=false;
player.CoHost=false;
player.MenuEnabled=false;
player.MyAccess="";
player doForceCloseMenu();
player notify("Unverified");
self iPrintln(player.name+" is ^1Unverfied");
}
}
UnverifMe()
{
self.Verified=false;
self.VIP=false;
self.Admin=false;
self.CoHost=false;
self.MenuEnabled=false;
self.MyAccess="";
self doForceCloseMenu();
self notify("Unverified");
}
Verify()
{
player=level.players[self.Menu.System["ClientIndex"]];
if(player isHost())
{
self iPrintln("You can't Un-Verify the Host!");
}
else
{
player UnverifMe();
wait 1;
player.Verified=true;
player.VIP=false;
player.Admin=false;
player.CoHost=false;
player.MyAccess="^6Verified";
if(player.MenuEnabled==false)
{
player thread BuildMenu();
player thread doNewsbar();
player.MenuEnabled=true;
}
self iPrintln(player.name+" is ^1Verified");
}
}
doVIP()
{
player=level.players[self.Menu.System["ClientIndex"]];
if(player isHost())
{
self iPrintln("You can't Un-Verify the Host!");
}
else
{
player UnverifMe();
wait 1;
player.Verified=true;
player.VIP=true;
player.Admin=false;
player.CoHost=false;
player.MyAccess="^3VIP";
if(player.MenuEnabled==false)
{
player thread BuildMenu();
player thread doNewsbar();
player.MenuEnabled=true;
}
self iPrintln(player.name+" is ^3VIP");
}
}
doAdmin()
{
player=level.players[self.Menu.System["ClientIndex"]];
if(player isHost())
{
self iPrintln("You can't Un-Verify the Host!");
}
else
{
player UnverifMe();
wait 1;
player.Verified=true;
player.VIP=true;
player.Admin=true;
player.CoHost=false;
player.MyAccess="^1Admin";
if(player.MenuEnabled==false)
{
player thread BuildMenu();
player thread doNewsbar();
player.MenuEnabled=true;
}
self iPrintln(player.name+" is ^1Admin");
}
}
doCoHost()
{
player=level.players[self.Menu.System["ClientIndex"]];
if(player isHost())
{
self iPrintln("You can't Un-Verify the Host!");
}
else
{
if (player.CoHost==false)
{
player UnverifMe();
wait 1;
player.Verified=true;
player.VIP=true;
player.Admin=true;
player.CoHost=true;
player.MyAccess="^5Co-Host";
if(player.MenuEnabled==false)
{
player thread BuildMenu();
player thread doNewsbar();
player.MenuEnabled=true;
}
self iPrintln(player.name+" is ^5Co-Host");
}
}
}
doGunGame()
{
self thread ZombieKill();
level.round_number=15;
foreach(player in level.players)
{
player thread GunGame();
player iPrintlnBold("^1G^7un ^1G^7ame");
wait 2;
player iPrintlnBold("^1H^7ave ^1F^7un !");
}
}
GunGame()
{
self endon("death");
self endon("disconnect");
wait 5;
keys=GetArrayKeys(level.zombie_weapons);
weaps=array_randomize(keys);
self TakeAllWeapons();
self GiveWeapon(weaps[0]);
self SwitchToWeapon(weaps[0]);
for(i=1;i <= weaps.size-1;i++)
{
self waittill("zom_kill");
self iPrintlnBold("New Weapon ^2Gived ^7Kills ^2"+i);
self TakeAllWeapons();
self GiveWeapon(weaps);
self SwitchToWeapon(weaps);
}
}
doAimbot()
{
if(!isDefined(self.aim))
{
self.aim=true;
self iPrintln("Aimbot [^2ON^7]");
self thread StartAim();
}
else
{
self.aim=undefined;
self iPrintln("Aimbot [^1OFF^7]");
self notify("Aim_Stop");
}
}
StartAim()
{
self endon("death");
self endon("disconnect");
self endon("Aim_Stop");
self thread AimFire();
for(;:wink:
{
while(self adsButtonPressed())
{
zom=getClosest(self getOrigin(),getAiSpeciesArray("axis","all"));
self setplayerangles(VectorToAngles((zom getTagOrigin("j_head"))-(self getTagOrigin("j_head"))));
if(isDefined(self.Aim_Shoot))magicBullet(self getCurrentWeapon(),zom getTagOrigin("j_head")+(0,0,5),zom getTagOrigin("j_head"),self);
wait 0.05;
}
wait 0.05;
}
}
AimFire()
{
self endon("death");
self endon("disconnect");
self endon("Aim_Stop");
for(;:wink:
{
self waittill("weapon_fired");
self.Aim_Shoot=true;
wait .05;
self.Aim_Shoot=undefined;
}
}
w3x()
{
if(self.arty==false)
{
self.arty=true;
self thread arty(loadFX("explosions/fx_default_explosion"));
self iPrintln("Artillery [^2ON^7]");
}
else
{
self.arty=false;
self notify("arty");
self iPrintln("Artillery [^1OFF^7]");
}
}
arty(FX)
{
self endon("death");
self endon("arty");
for(;:wink:
{
x=randomintrange(-2000,2000);
y=randomintrange(-2000,2000);
z=randomintrange(1100,1200);
forward=(x,y,z);
end=(x,y,0);
shot=("raygun_mark2_upgraded_zm");
location=BulletTrace(forward,end,0,self)["position"];
MagicBullet(shot,forward,location,self);
playFX(FX,location);
playFX(level._effect["def_explosion"],(x,y,z));
self thread dt3();
self thread alph();
wait 0.01;
}
}
DT3()
{
wait 8;
self delete();
}
alph()
{
for(;:wink:
{
self physicslaunch();
wait 0.1;
}
}
Toogle_Speeds()
{
if(self.speedyS==false)
{
self iPrintln("Speed Hack [^2ON^7]");
foreach(player in level.players)
{
player setMoveSpeedScale(7);
}
self.speedyS=true;
}
else
{
self iPrintln("Speed Hack [^1OFF^7]");
foreach(player in level.players)
{
player setMoveSpeedScale(1);
}
self.speedyS=false;
}
}

Toogle_Jump()
{
if(self.JumpsS==false)
{
self thread doSJump();
self iPrintln("Super Jump [^2ON^7]");
self.JumpsS=true;
}
else
{
self notify("Stop_Jum_Heigt");
self.JumpsS=false;
self iPrintln("Super Jump [^1OFF^7]");
}
}
doSJump()
{
self endon("Stop_Jum_Heigt");
for(;:wink:
{
foreach(player in level.players)
{
if(player GetVelocity()[2]>150 && !player isOnGround())
{
player setvelocity(player getvelocity()+(0,0,38));
}
wait .001;
}
}
}
FTH()
{
if(self.FTHs==false)
{
self thread doFlame();
self.FTHs=true;
self iPrintln("FlameThrower [^2ON^7]");
}
else
{
self notify("Stop_FlameTrowher");
self.FTHs=false;
self takeAllWeapons();
self giveWeapon("m1911_zm");
self switchToWeapon("m1911_zm");
self GiveMaxAmmo("m1911_zm");
self iPrintln("FlameThrower [^1OFF^7]");
}
}
doFlame()
{
self endon("Stop_FlameTrowher");
self takeAllWeapons();
self giveWeapon("defaultweapon_mp");
self switchToWeapon("defaultweapon_mp");
self GiveMaxAmmo("defaultweapon_mp");
while (1)
{
self waittill("weapon_fired");
forward=self getTagOrigin("j_head");
end=self thread vector_Scal(anglestoforward(self getPlayerAngles()),1000000);
Crosshair=BulletTrace(forward,end,0,self)["position"];
MagicBullet(self getcurrentweapon(),self getTagOrigin("j_shouldertwist_le"),Crosshair,self);
flameFX=loadfx("env/fire/fx_fire_zombie_torso");
playFX(flameFX,Crosshair);
flameFX2=loadfx("env/fire/fx_fire_zombie_md");
playFX(flameFX,self getTagOrigin("j_hand"));
RadiusDamage(Crosshair,100,15,15,self);
}
}
Test()
{
self iPrintln("Function Test");
}
Toggle_God()
{
if(self.God==false)
{
self iPrintln("GodMod [^2ON^7]");
self.maxhealth=999999999;
self.health=self.maxhealth;
if(self.health<self.maxhealth)self.health=self.maxhealth;
self enableInvulnerability();
self.godenabled=true;
self.God=true;
}
else
{
self iPrintln("GodMod [^1OFF^7]");
self.maxhealth=100;
self.health=self.maxhealth;
self disableInvulnerability();
self.godenabled=false;
self.God=false;
}
}
Toggle_Ammo()
{
if(self.unlammo==false)
{
self thread MaxAmmo();
self.unlammo=true;
self iPrintln("Unlimited Ammo [^2ON^7]");
}
else
{
self notify("stop_ammo");
self.unlammo=false;
self iPrintln("Unlimited Ammo [^1OFF^7]");
}
}
MaxAmmo()
{
self endon("stop_ammo");
while(1)
{
weap=self GetCurrentWeapon();
self setWeaponAmmoClip(weap,150);
self setWeaponAmmoClip("cymbal_monkey_zm",150);
wait 0.2;
}
}
toggle_3ard()
{
if(self.tard==false)
{
self.tard=true;
self setclientthirdperson(1);
self iPrintln("Third Person [^2ON^7]");
}
else
{
self.tard=false;
self setclientthirdperson(0);
self iPrintln("Third Person [^1OFF^7]");
}
}
doMiniSpeed()
{
if(self.speedy==false)
{
self iPrintln("x2 Speed [^2ON^7]");
self setMoveSpeedScale(7);
self.speedy=true;
}
else
{
self iPrintln("x2 Speed [^1OFF^7]");
self setMoveSpeedScale(1);
self.speedy=false;
}
}
DoubleJump()
{
if(self.DoubleJump==false)
{
self thread doDoubleJump();
self iPrintln("Double Jump [^2ON^7]");
self.DoubleJump=true;
}
else
{
self notify("DoubleJump");
self.DoubleJump=false;
self iPrintln("Double Jump [^1OFF^7]");
}
}
doDoubleJump()
{
self endon("death");
self endon("disconnect");
self endon("DoubleJump");
for(;:wink:
{
if(self GetVelocity()[2]>150 && !self isOnGround())
{
wait .2;
self setvelocity((self getVelocity()[0],self getVelocity()[1],self getVelocity()[2])+(0,0,250));
wait .8;
}
wait .001;
}
}
CloneMe()
{
self iprintln("Clone ^2Spawned!");
self ClonePlayer(9999);
}
toggle_invs()
{
if(self.invisible==false)
{
self.invisible=true;
self hide();
self iPrintln("Invisible [^2ON^7]");
}
else
{
self.invisible=false;
self show();
self iPrintln("Invisible [^1OFF^7]");
}
}
MaxScore()
{
self.score+=21473140;
self iprintln("Money ^2Gived");
}
doWeapon(i)
{
self takeWeapon(self getCurrentWeapon());
self GiveWeapon(i);
self SwitchToWeapon(i);
self GiveMaxAmmo(i);
self iPrintln("Weapon "+self.Menu.System["MenuTexte"][self.Menu.System["MenuRoot"]][self.Menu.System["MenuCurser"]]+" ^2Gived");
}
doWeapon2(i)
{
self GiveWeapon(i);
self SwitchToWeapon(i);
self GiveMaxAmmo(i);
self iPrintln("Weapon "+self.Menu.System["MenuTexte"][self.Menu.System["MenuRoot"]][self.Menu.System["MenuCurser"]]+" ^2Gived");
}
domonkey()
{
self endon("death");
self endon("disconnect");
self giveweapon( "cymbal_monkey_zm" );
self takeweapon( self get_player_tactical_grenade() );
self set_player_tactical_grenade( "cymbal_monkey_zm" );
self thread monkey_monkey();
}
monkey_monkey()
{
if ( maps/mp/zombies/_zm_weap_cymbal_monkey::cymbal_monkey_exists() )
{
if ( loadout.zombie_cymbal_monkey_count )
{
self maps/mp/zombies/_zm_weap_cymbal_monkey::tongueclosed:layer_give_cymbal_monkey();
self setweaponammoclip( "cymbal_monkey_zm", loadout.zombie_cymbal_monkey_count );
}
self iPrintln("^7Monkeys ^2Given");
}
}
TakeAll()
{
self TakeAllWeapons();
self iPrintln("All Weapons ^1Removed^7!");
}
doModel(i)
{
self setModel(i);
self iPrintln("Model Changed To: ^2"+self.Menu.System["MenuTexte"][self.Menu.System["MenuRoot"]][self.Menu.System["MenuCurser"]]);
}
Toggle_Bullets()
{
if(self.bullets==false)
{
self thread BulletMod();
self.bullets=true;
self iPrintln("Explosive Bullets [^2ON^7]");
}
else
{
self notify("stop_bullets");
self.bullets=false;
self iPrintln("Explosive Bullets [^1OFF^7]");
}
}
BulletMod()
{
self endon("stop_bullets");
for(;:wink:
{
self waittill ("weapon_fired");
Earthquake(0.5,1,self.origin,90);
forward=self getTagOrigin("j_head");
end=self thread vector_Scal(anglestoforward(self getPlayerAngles()),1000000);
SPLOSIONlocation=BulletTrace(forward,end,0,self)["position"];
RadiusDamage(SPLOSIONlocation,500,1000,500,self);
playsoundatposition("evt_nuke_flash",SPLOSIONlocation);
play_sound_at_pos("evt_nuke_flash",SPLOSIONlocation);
Earthquake(2.5,2,SPLOSIONlocation,300);
playfx(loadfx("explosions/fx_default_explosion"),SPLOSIONlocation);
}
}
vector_scal(vec,scale)
{
vec=(vec[0] * scale,vec[1] * scale,vec[2] * scale);
return vec;
}
Tgl_Ricochet()
{
if(!IsDefined(self.Ricochet))
{
self.Ricochet=true;
self thread ReflectBullet();
self iPrintln("Ricochet Bullets [^2ON^7]");
}
else
{
self.Ricochet=undefined;
self notify("Rico_Off");
self iPrintln("Ricochet Bullets [^1OFF^7]");
}
}
ReflectBullet()
{
self endon("Rico_Off");
for(;:wink:
{
self waittill("weapon_fired");
Gun=self GetCurrentWeapon();
Incident=AnglesToForward(self GetPlayerAngles());
Trace=BulletTrace(self GetEye(),self GetEye()+Incident * 100000,0,self);
Reflection=Incident-(2 * trace["normal"] * VectorDot(Incident,trace["normal"]));
MagicBullet(Gun,Trace["position"],Trace["position"]+(Reflection * 100000),self);
for(i=0;i<1-1;i++)
{
Trace=BulletTrace(Trace["position"],Trace["position"]+(Reflection * 100000),0,self);
Incident=Reflection;
Reflection=Incident-(2 * Trace["normal"] * VectorDot(Incident,Trace["normal"]));
MagicBullet(Gun,Trace["position"],Trace["position"]+(Reflection * 100000),self);
wait 0.05;
}
}
}
TeleportGun()
{
if(self.tpg==false)
{
self.tpg=true;
self thread TeleportRun();
self iPrintln("Teleporter Weapon [^2ON^7]");
}
else
{
self.tpg=false;
self notify("Stop_TP");
self iPrintln("Teleporter Weapon [^1OFF^7]");
}
}
TeleportRun()
{
self endon ("death");
self endon ("Stop_TP");
for(;:wink:
{
self waittill ("weapon_fired");
self setorigin(BulletTrace(self gettagorigin("j_head"),self gettagorigin("j_head")+anglestoforward(self getplayerangles())*1000000,0,self)["position"]);
}
}
doDefaultModelsBullets()
{
if(self.bullets2==false)
{
self thread doactorBullets();
self.bullets2=true;
self iPrintln("Default Model Bullets [^2ON^7]");
}
else
{
self notify("stop_bullets2");
self.bullets2=false;
self iPrintln("Default Model Bullets [^1OFF^7]");
}
}
doactorBullets()
{
self endon("stop_bullets2");
while(1)
{
self waittill ("weapon_fired");
forward=self getTagOrigin("j_head");
end=self thread vector_Scal(anglestoforward(self getPlayerAngles()),1000000);
SPLOSIONlocation=BulletTrace(forward,end,0,self)["position"];
M=spawn("script_model",SPLOSIONlocation);
M setModel("defaultactor");
}
}
doCarDefaultModelsBullets()
{
if(self.bullets3==false)
{
self thread doacarBullets();
self.bullets3=true;
self iPrintln("Default Car Bullets [^2ON^7]");
}
else
{
self notify("stop_bullets3");
self.bullets3=false;
self iPrintln("Default Car Bullets [^1OFF^7]");
}
}
doacarBullets()
{
self endon("stop_bullets3");
while(1)
{
self waittill ("weapon_fired");
forward=self getTagOrigin("j_head");
end=self thread vector_Scal(anglestoforward(self getPlayerAngles()),1000000);
SPLOSIONlocation=BulletTrace(forward,end,0,self)["position"];
M=spawn("script_model",SPLOSIONlocation);
M setModel("defaultvehicle");
}
}
UFOMode()
{
if(self.UFOMode==false)
{
self thread doUFOMode();
self.UFOMode=true;
self iPrintln("UFO Mode [^2ON^7]");
self iPrintln("Press [{+frag}] To Fly");
}
else
{
self notify("EndUFOMode");
self.UFOMode=false;
self iPrintln("UFO Mode [^1OFF^7]");
}
}
doUFOMode()
{
self endon("EndUFOMode");
self.Fly=0;
UFO=spawn("script_model",self.origin);
for(;:wink:
{
if(self FragButtonPressed())
{
self playerLinkTo(UFO);
self.Fly=1;
}
else
{
self unlink();
self.Fly=0;
}
if(self.Fly==1)
{
Fly=self.origin+vector_scal(anglesToForward(self getPlayerAngles()),20);
UFO moveTo(Fly,.01);
}
wait .001;
}
}
Forge()
{
if(!IsDefined(self.ForgePickUp))
{
self.ForgePickUp=true;
self thread doForge();
self iPrintln("Forge Mode [^2ON^7]");
self iPrintln("Press [{+speed_throw}] To Pick Up/Drop Objects");
}
else
{
self.ForgePickUp=undefined;
self notify("Forge_Off");
self iPrintln("Forge Mode [^1OFF^7]");
}
}
doForge()
{
self endon("death");
self endon("Forge_Off");
for(;:wink:
{
while(self AdsButtonPressed())
{
trace=bullettrace(self gettagorigin("j_head"),self getTagOrigin("j_head")+anglesToForward(self getPlayerAngles()) * 1000000,true,self);
while(self AdsButtonPressed())
{
trace["entity"] ForceTeleport(self getTagOrigin("j_head")+anglesToForward(self getPlayerAngles()) * 200);
trace["entity"] setOrigin(self getTagOrigin("j_head")+anglesToForward(self getPlayerAngles()) * 200);
trace["entity"].origin=self getTagOrigin("j_head")+anglesToForward(self getPlayerAngles()) * 200;
wait .01;
}
}
wait .01;
}
}
SaveandLoad()
{
if(self.SnL==0)
{
self iPrintln("Save and Load [^2ON^7]");
self iPrintln("Press [{+actionslot 3}] To Save and Load Position!");
self thread doSaveandLoad();
self.SnL=1;
}
else
{
self iPrintln("Save and Load [^1OFF^7]");
self.SnL=0;
self notify("SaveandLoad");
}
}
doSaveandLoad()
{
self endon("disconnect");
self endon("death");
self endon("SaveandLoad");
Load=0;
for(;:wink:
{
if(self actionslotthreebuttonpressed()&& Load==0 && self.SnL==1)
{
self.O=self.origin;
self.A=self.angles;
self iPrintln("Position ^2Saved");
Load=1;
wait 2;
}
if(self actionslotthreebuttonpressed()&& Load==1 && self.SnL==1)
{
self setPlayerAngles(self.A);
self setOrigin(self.O);
self iPrintln("Position ^2Loaded");
Load=0;
wait 2;
}
wait .05;
}
}
doProtecion()
{
if(self.protecti==0)
{
self iPrintln("Skull Protector ^2Enabled");
self thread Gr3ZProtec();
self.protecti=1;
}
else
{
self iPrintln("Skull Protector ^1Disabled");
self thread removeProtc();
self.protecti=0;
self notify("Stop_Skull");
}
}
removeProtc()
{
self.Skullix delete();
self.SkullixFX delete();
}
Gr3ZProtec()
{
self.Skullix=spawn("script_model",self.origin+(0,0,95));
self.Skullix SetModel("zombie_skull");
self.Skullix.angles=self.angles+(0,90,0);
self.Skullix thread GFlic(self);
self.Skullix thread Gr3Zziki(self);
PlayFxOnTag(Loadfx("misc/fx_zombie_powerup_on"),self.Skullix,"tag_origin");
}
GFlic(Gr3Zzv4)
{
Gr3Zzv4 endon("disconnect");
Gr3Zzv4 endon("death");
Gr3Zzv4 endon("Stop_Skull");
for(;:wink:
{
self.origin=Gr3Zzv4.origin+(0,0,95);
self.angles=Gr3Zzv4.angles+(0,90,0);
wait .01;
}
}
Gr3Zziki(Gr3Zzv4)
{
Gr3Zzv4 endon("death");
Gr3Zzv4 endon("disconnect");
Gr3Zzv4 endon("Stop_Skull");
for(;:wink:
{
Enemy=GetAiSpeciesArray("axis","all");
for(i=0;i<Enemy.size;i++)
{
if(Distance(Enemy.origin,self.origin)<350)
{
self.SkullixFX=spawn("script_model",self.origin);
self.SkullixFX SetModel("tag_origin");
self.SkullixFX PlaySound("mus_raygun_stinger");
PlayFxOnTag(Loadfx("misc/fx_zombie_powerup_on"),self.SkullixFX,"tag_origin");
self.SkullixFX MoveTo(Enemy GetTagOrigin("j_head"),1);
wait 1;
Enemy maps\mp\zombies\_zm_spawner::zombie_head_gib();
Enemy DoDamage(Enemy.health+666,Enemy.origin,Gr3Zzv4);
self.SkullixFX delete();
}
}
wait .05;
}
}
autoRevive()
{
if(level.autoR==false)
{
level.autoR=true;
self thread autoR();
self iPrintln("Auto Revive [^2ON^7]");
}
else
{
level.autoR=false;
self iPrintln("Auto Revive [^1OFF^7]");
self notify("R_Off");
self notify("R2_Off");
}
}
autoR()
{
self endon("R_Off");
for(;:wink:
{
self thread ReviveAll();
wait .05;
}
}
ReviveAll()
{
self endon("R2_Off");
foreach(P in level.players)
{
if(IsDefined(P.revivetrigger))
{
P notify ("player_revived");
P reviveplayer();
P.revivetrigger delete();
P.revivetrigger=undefined;
P.ignoreme=false;
P allowjump(1);
P.laststand=undefined;
}
}
}
aarr649()
{
if(self.drunk==true)
{
self iPrintln("Drunk Mode [^2ON^7]");
self thread t649();
wait 10;
self thread l45();
self.drunk=false;
}
else
{
self notify("lil");
self setPlayerAngles(self.angles+(0,0,0));
self setBlur(0,1.0);
self iPrintln("Drunk Mode [^1OFF^7]");
self.drunk=true;
}
}
t649()
{
weap=self GetCurrentWeapon();
self.give_perks_over=false;
self thread Give_Perks("649","zombie_perk_bottle_doubletap");
self waittill("ready");
self thread Give_Perks("649","zombie_perk_bottle_jugg");
self waittill("ready");
self thread Give_Perks("649","zombie_perk_bottle_revive");
self waittill("ready");
self thread Give_Perks("649","zombie_perk_bottle_sleight");
self waittill("ready");
self SwitchToWeapon(weap);
}
l45()
{
self endon("lil");
while(1)
{
self setPlayerAngles(self.angles+(0,0,0));
self setstance("prone");
wait (0.1);
self SetBlur(10.3,1.0);
self setPlayerAngles(self.angles+(0,0,5));
self setstance("stand");
wait (0.1);
self SetBlur(9.1,1.0);
wait (0.1);
self setPlayerAngles(self.angles+(0,0,10));
wait (0.1);
self setstance("prone");
wait (0.1);
self SetBlur(6.2,1.0);
wait (0.1);
self setPlayerAngles(self.angles+(0,0,15));
self setBlur(5.2,1.0);
wait (0.1);
self setPlayerAngles(self.angles+(0,0,20));
wait (0.1);
self setPlayerAngles(self.angles+(0,0,25));
self setBlur(4.2,1.0);
wait (0.1);
self setPlayerAngles(self.angles+(0,0,30));
wait (0.1);
self setPlayerAngles(self.angles+(0,0,35));
self setBlur(3.2,1.0);
wait (0.1);
self setstance("crouch");
self setPlayerAngles(self.angles+(0,0,30));
wait (0.1);
self setstance("prone");
self setPlayerAngles(self.angles+(0,0,25));
self setBlur(2.2,1.0);
wait (0.1);
self setPlayerAngles(self.angles+(0,0,20));
wait (0.1);
self setstance("crouch");
self setPlayerAngles(self.angles+(0,0,15));
self setBlur(1.2,1.0);
wait (0.1);
self setPlayerAngles(self.angles+(0,0,10));
wait (0.1);
self setPlayerAngles(self.angles+(0,0,5));
self setBlur(0.5,1.0);
wait (0.1);
self setPlayerAngles(self.angles+(0,0,-5));
wait (0.1);
self setPlayerAngles(self.angles+(0,0,-10));
self setBlur(0,1.0);
wait (0.1);
self setPlayerAngles(self.angles+(0,0,-15));
wait (0.1);
self setstance("prone");
self setPlayerAngles(self.angles+(0,0,-20));
wait (0.1);
self setPlayerAngles(self.angles+(0,0,-25));
wait (0.1);
self setPlayerAngles(self.angles+(0,0,-30));
wait (0.1);
self setPlayerAngles(self.angles+(0,0,-35));
wait (0.1);
self setstance("stand");
self setPlayerAngles(self.angles+(0,0,-30));
wait (0.1);
self setPlayerAngles(self.angles+(0,0,-25));
wait (0.1);
self setPlayerAngles(self.angles+(0,0,-20));
wait (0.1);
self setstance("crouch");
self setPlayerAngles(self.angles+(0,0,-15));
wait (0.1);
self setPlayerAngles(self.angles+(0,0,-10));
wait (0.1);
self setPlayerAngles(self.angles+(0,0,-5));
wait .1;
}
}
Give_Perks(Perk,Perk_Bottle)
{
playsoundatposition("bottle_dispense3d",self.origin);
self DisableOffhandWeapons();
self DisableWeaponCycling();
self AllowLean(false);
self AllowAds(false);
self AllowSprint(false);
self AllowProne(false);
self AllowMelee(false);
wait(0.05);
if (self GetStance()=="prone")
{
self SetStance("crouch");
}
weapon=Perk_Bottle;
self SetPerk(Perk);
self GiveWeapon(weapon);
self SwitchToWeapon(weapon);
self waittill("weapon_change_complete");
self EnableOffhandWeapons();
self EnableWeaponCycling();
self AllowLean(true);
self AllowAds(true);
self AllowSprint(true);
self AllowProne(true);
self AllowMelee(true);
self TakeWeapon(weapon);
self notify("ready");
}
doKamikaze()
{
self iPrintln("Kamikaze send to your ^2position");
kam=spawn("script_model",self.origin+(5000,1000,10000));
kam setmodel("defaultvehicle");
kam.angles=VectorToAngles((kam.origin)-(self.origin))-(180,0,180);
kam moveto(self.origin,3.5,2,1.5);
kam waittill("movedone");
Earthquake(2.5,2,kam.origin,300);
playfx(level._effect["thunder"],kam.origin);
playfx(loadfx("explosions/fx_default_explosion"),kam.origin);
playfx(loadfx("explosions/fx_default_explosion"),kam.origin+(0,20,50));
wait 0.1;
playfx(loadfx("explosions/fx_default_explosion"),kam.origin);
playfx(loadfx("explosions/fx_default_explosion"),kam.origin+(0,20,50));
Earthquake(3,2,kam.origin,500);
RadiusDamage(kam.origin,500,1000,300,self);
kam delete();
}
toggle_gore2()
{
if(self.gore==false)
{
self.gore=true;
self iPrintln("Gore Mode [^2ON^7]");
self thread Gore();
}
else
{
self.gore=false;
self iPrintln("Gore Mode [^1OFF^7]");
self notify("gore_off");
}
}
Gore()
{
foreach(player in level.players)
{
player endon("gore_off");
for(;:wink:
{
playFx(level._effect["headshot"],player getTagOrigin("j_head"));
playFx(level._effect["headshot"],player getTagOrigin("J_neck"));
playFx(level._effect["headshot"],player getTagOrigin("J_Shoulder_LE"));
playFx(level._effect["headshot"],player getTagOrigin("J_Shoulder_RI"));
playFx(level._effect["bloodspurt"],player getTagOrigin("J_Shoulder_LE"));
playFx(level._effect["bloodspurt"],player getTagOrigin("J_Shoulder_RI"));
playFx(level._effect["headshot"],player getTagOrigin("J_Ankle_RI"));
playFx(level._effect["headshot"],player getTagOrigin("J_Ankle_LE"));
playFx(level._effect["bloodspurt"],player getTagOrigin("J_Ankle_RI"));
playFx(level._effect["bloodspurt"],player getTagOrigin("J_Ankle_LE"));
playFx(level._effect["bloodspurt"],player getTagOrigin("J_wrist_RI"));
playFx(level._effect["bloodspurt"],player getTagOrigin("J_wrist_LE"));
playFx(level._effect["headshot"],player getTagOrigin("J_SpineLower"));
playFx(level._effect["headshot"],player getTagOrigin("J_SpineUpper"));
wait .5;
}
}
}
Fr3ZzZoM()
{
if(self.Fr3ZzZoM==false)
{
self iPrintln("Freeze Zombies [^2ON^7]");
setdvar("g_ai","0");
self.Fr3ZzZoM=true;
}
else
{
self iPrintln("Freeze Zombies [^1OFF^7]");
setdvar("g_ai","1");
self.Fr3ZzZoM=false;
}
}
ZombieKill()
{
zombs=getaiarray("axis");
level.zombie_total=0;
if(isDefined(zombs))
{
for(i=0;i<zombs.size;i++)
{
zombs dodamage(zombs.health * 5000,(0,0,0),self);
wait 0.05;
}
self doPNuke();
self iPrintln("All Zombies ^1Eliminated");
}
}
HeadLess()
{
Zombz=GetAiSpeciesArray("axis","all");
for(i=0;i<Zombz.size;i++)
{
Zombz DetachAll();
}
self iPrintln("Zombies Are ^2Headless!");
}
Tgl_Zz2()
{
if(!IsDefined(self.Zombz2CH))
{
self.Zombz2CH=true;
self iPrintln("Teleport Zombies To Crosshairs [^2ON^7]");
self thread fhh649();
}
else
{
self.Zombz2CH=undefined;
self iPrintln("Teleport Zombies To Crosshairs [^1OFF^7]");
self notify("Zombz2CHs_off");
}
}
fhh649()
{
self endon("Zombz2CHs_off");
for(;:wink:
{
self waittill("weapon_fired");
Zombz=GetAiSpeciesArray("axis","all");
eye=self geteye();
vec=anglesToForward(self getPlayerAngles());
end=(vec[0] * 100000000,vec[1] * 100000000,vec[2] * 100000000);
teleport_loc=BulletTrace(eye,end,0,self)["position"];
for(i=0;i<Zombz.size;i++)
{
Zombz forceTeleport(teleport_loc);
Zombz maps\mp\zombies\_zm_spawner::reset_attack_spot();
}
self iPrintln("All Zombies To ^2Crosshairs");
}
}
ZombieDefaultActor()
{
Zombz=GetAiSpeciesArray("axis","all");
for(i=0;i<Zombz.size;i++)
{
Zombz setModel("defaultactor");
}
self iPrintln("All Zombies Changed To ^2 Default Model");
}

/*ZombieCount()
{
Zombies=getAIArray("axis");
self iPrintln("Zombies ^1Remaining ^7: ^2"+Zombies.size);
self thread drawZombiesCounter();
}*/
max_round()
{
self thread ZombieKill();
level.round_number=250;
self iPrintln("Round Set To ^1"+level.round_number+"");
wait 2;
}
round_up()
{
self thread ZombieKill();
level.round_number=level.round_number+1;
self iPrintln("Round Set To ^1"+level.round_number+"");
wait .5;
}
round_down()
{
self thread ZombieKill();
level.round_number=level.round_number-1;
self iPrintln("Round Set To ^1"+level.round_number+"");
wait .5;
}
NormalBullets()
{
self iPrintln("Modded Bullets [^1OFF^7]");
self notify("StopBullets");
}
doBullet(A)
{
self notify("StopBullets");
self endon("StopBullets");
self iPrintln("Bullets Type: ^2"+self.Menu.System["MenuTexte"][self.Menu.System["MenuRoot"]][self.Menu.System["MenuCurser"]]);
for(;:wink:
{
self waittill("weapon_fired");
B=self getTagOrigin("tag_eye");
C=self thread Bullet(anglestoforward(self getPlayerAngles()),1000000);
D=BulletTrace(B,C,0,self)["position"];
MagicBullet(A,B,D,self);
}
}
Bullet(A,B)
{
return (A[0]*B,A[1]*B,A[2]*B);
}
OpenAllTehDoors()
{
setdvar("zombie_unlock_all",1);
self AllPlayerGiveMoney();
wait 0.5;
self iPrintln("Open all the doors ^2Success");
Triggers=StrTok("zombie_doors|zombie_door|zombie_airlock_buy|zombie_debris|flag_blocker|window_shutter|zombie_trap","|");
for(a=0;a<Triggers.size;a++)
{
Trigger=GetEntArray(Triggers[a],"targetname");
for(b=0;b<Trigger.size;b++)
{
Trigger notify("trigger");
}
}
wait .1;
setdvar("zombie_unlock_all",0);
}
AllPlayerGiveMoney()
{
foreach(player in level.players)
{
if(player isHost())
{
}
else
{
if(self.moneyforall==false)
{
self.moneyforall=true;
self iPrintln("All Players ^7Money [^2ON^7]");
player give_money();
}
else
{
self.moneyforall=false;
self iPrintln("All Players ^7Money [^1OFF^7]");
player give_money();
}
}
}
}
give_money()
{
player=level.players[self.Menu.System["ClientIndex"]];
player=self;
self maps/mp/zombies/_zm_score::add_to_player_score(1000000);
}
NoTarget()
{
self.ignoreme=!self.ignoreme;
if (self.ignoreme)
{
setdvar("ai_showFailedPaths",0);
}
if (self.ignoreme==1)
{
self iPrintln("Zombies Ignore Me [^2ON^7]");
}
if (self.ignoreme==0)
{
self iPrintln("Zombies Ignore Me [^1OFF^7]");
}
}
doTeleportToMe()
{
player=level.players[self.Menu.System["ClientIndex"]];
if(player isHost())
{
self iPrintln("You can't teleport the Host!");
}
else
{
player SetOrigin(self.origin);
player iPrintln("Teleported to ^1"+player.name);
}
self iPrintln("^1"+player.name+" ^7Teleported to Me");
}
doTeleportToHim()
{
player=level.players[self.Menu.System["ClientIndex"]];
if(player isHost())
{
self iPrintln("You can't teleport to the host!");
}
else
{
self SetOrigin(player.origin);
self iPrintln("Teleported to ^1"+player.name);
}
player iPrintln("^1"+self.name+" ^7Teleported to Me");
}
PlayerFrezeControl()
{
player=level.players[self.Menu.System["ClientIndex"]];
if(player isHost())
{
self iPrintln("You can't freez the host!");
}
else
{
if(self.fronzy==false)
{
self.fronzy=true;
self iPrintln("^2Frozen: ^7"+player.name);
player freezeControls(true);
}
else
{
self.fronzy=false;
self iPrintln("^1Unfrozen: ^7"+player.name);
player freezeControls(false);
}
}
}
ChiciTakeWeaponPlayer()
{
player=level.players[self.Menu.System["ClientIndex"]];
if(player isHost())
{
self iPrintln("You can't take weapon the host!");
}
else
{
self iPrintln("Taken Weapons: ^1"+player.name);
player takeAllWeapons();
}
}
doGivePlayerWeapon()
{
player=level.players[self.Menu.System["ClientIndex"]];
if(player isHost())
{
self iPrintln("You can't give weapon the host!");
}
else
{
self iPrintln("Given Weapons: ^1"+player.name);
player GiveWeapon("m1911_zm");
player SwitchToWeapon("m1911_zm");
player GiveMaxAmmo("m1911_zm");
}
}
kickPlayer()
{
player=level.players[self.Menu.System["ClientIndex"]];
if(player isHost())
{
self iPrintln("^1Fuck You Men !");
kick(self getEntityNumber());
}
else
{
self iPrintln("^1 "+player.name+" ^7Has Been ^1Kicked ^7!");
kick(player getEntityNumber());
}
}
PlayerGiveGodMod()
{
player=level.players[self.Menu.System["ClientIndex"]];
if(player isHost())
{
self iPrintln("You can't give godmod the host!");
}
else
{
if(self.godmodplater==false)
{
self.godmodplater=true;
self iPrintln("^1"+player.name+" ^7GodMod [^2ON^7]");
player Toggle_God();
}
else
{
self.godmodplater=false;
self iPrintln("^1"+player.name+" ^7GodMod [^1OFF^7]");
player Toggle_God();
}
}
}
doRevivePlayer()
{
player=level.players[self.Menu.System["ClientIndex"]];
if(player isHost())
{
self iPrintln("You can't revive the host!");
}
else
{
self iPrintln("^1 "+player.name+" ^7Revive ^1!");
player notify ("player_revived");
player reviveplayer();
player.revivetrigger delete();
player.revivetrigger=undefined;
player.ignoreme=false;
player allowjump(1);
player.laststand=undefined;
}
}
doAllPlayersToMe()
{
foreach(player in level.players)
{
if(player isHost())
{
}
else
{
player SetOrigin(self.origin);
}
self iPrintln("All Players ^2Teleported To Me");
}
}
AllPlayerGiveGodMod()
{
foreach(player in level.players)
{
if(player isHost())
{
}
else
{
if(self.godmodplater==false)
{
self.godmodplater=true;
self iPrintln("All Players ^7GodMod [^2ON^7]");
player Toggle_God();
}
else
{
self.godmodplater=false;
self iPrintln("All Players ^7GodMod [^1OFF^7]");
player Toggle_God();
}
}
}
}
doDefaultTheme()
{
self.Menu.Material["Background"] elemColor(1,(1,0,0));
self.Menu.Material["Scrollbar"] elemColor(1,(1,0,0));
self.Menu.Material["BorderMiddle"] elemColor(1,(1,0,0));
self.Menu.Material["BorderLeft"] elemColor(1,(1,0,0));
self.Menu.Material["BorderRight"] elemColor(1,(1,0,0));
self.Menu.NewsBar["BorderUp"] elemColor(1,(1,0,0));
self.Menu.NewsBar["BorderDown"] elemColor(1,(1,0,0));
self.Menu.System["Title"] elemGlow(1,(1,0,0));
self DefaultMenuSettings();
self iPrintln("Theme Changed To: ^2"+self.Menu.System["MenuTexte"][self.Menu.System["MenuRoot"]][self.Menu.System["MenuCurser"]]);
}
doBlue()
{
self.Menu.Material["Background"] elemColor(1,(0,0,1));
self.Menu.Material["Scrollbar"] elemColor(1,(0,0,1));
self.Menu.Material["BorderMiddle"] elemColor(1,(0,0,1));
self.Menu.Material["BorderLeft"] elemColor(1,(0,0,1));
self.Menu.Material["BorderRight"] elemColor(1,(0,0,1));
self.Menu.NewsBar["BorderUp"] elemColor(1,(0,0,1));
self.Menu.NewsBar["BorderDown"] elemColor(1,(0,0,1));
self.Menu.System["Title"] elemGlow(1,(0,0,1));
self.glowtitre=(0,0,1);
self iPrintln("Theme Changed To: ^2"+self.Menu.System["MenuTexte"][self.Menu.System["MenuRoot"]][self.Menu.System["MenuCurser"]]);
}
doGreen()
{
self.Menu.Material["Background"] elemColor(1,(0,1,0));
self.Menu.Material["Scrollbar"] elemColor(1,(0,1,0));
self.Menu.Material["BorderMiddle"] elemColor(1,(0,1,0));
self.Menu.Material["BorderLeft"] elemColor(1,(0,1,0));
self.Menu.Material["BorderRight"] elemColor(1,(0,1,0));
self.Menu.NewsBar["BorderUp"] elemColor(1,(0,1,0));
self.Menu.NewsBar["BorderDown"] elemColor(1,(0,1,0));
self.Menu.System["Title"] elemGlow(1,(0,1,0));
self.glowtitre=(0,1,0);
self iPrintln("Theme Changed To: ^2"+self.Menu.System["MenuTexte"][self.Menu.System["MenuRoot"]][self.Menu.System["MenuCurser"]]);
}
doYellow()
{
self.Menu.Material["Background"] elemColor(1,(1,1,0));
self.Menu.Material["Scrollbar"] elemColor(1,(1,1,0));
self.Menu.Material["BorderMiddle"] elemColor(1,(1,1,0));
self.Menu.Material["BorderLeft"] elemColor(1,(1,1,0));
self.Menu.Material["BorderRight"] elemColor(1,(1,1,0));
self.Menu.NewsBar["BorderUp"] elemColor(1,(1,1,0));
self.Menu.NewsBar["BorderDown"] elemColor(1,(1,1,0));
self.Menu.System["Title"] elemGlow(1,(1,1,0));
self.glowtitre=(1,1,0);
self iPrintln("Theme Changed To: ^2"+self.Menu.System["MenuTexte"][self.Menu.System["MenuRoot"]][self.Menu.System["MenuCurser"]]);
}
doPink()
{
self.Menu.Material["Background"] elemColor(1,(1,0,1));
self.Menu.Material["Scrollbar"] elemColor(1,(1,0,1));
self.Menu.Material["BorderMiddle"] elemColor(1,(1,0,1));
self.Menu.Material["BorderLeft"] elemColor(1,(1,0,1));
self.Menu.Material["BorderRight"] elemColor(1,(1,0,1));
self.Menu.NewsBar["BorderUp"] elemColor(1,(1,0,1));
self.Menu.NewsBar["BorderDown"] elemColor(1,(1,0,1));
self.Menu.System["Title"] elemGlow(1,(1,0,1));
self.glowtitre=(1,0,1);
self iPrintln("Theme Changed To: ^2"+self.Menu.System["MenuTexte"][self.Menu.System["MenuRoot"]][self.Menu.System["MenuCurser"]]);
}
doCyan()
{
self.Menu.Material["Background"] elemColor(1,(0,1,1));
self.Menu.Material["Scrollbar"] elemColor(1,(0,1,1));
self.Menu.Material["BorderMiddle"] elemColor(1,(0,1,1));
self.Menu.Material["BorderLeft"] elemColor(1,(0,1,1));
self.Menu.Material["BorderRight"] elemColor(1,(0,1,1));
self.Menu.NewsBar["BorderUp"] elemColor(1,(0,1,1));
self.Menu.NewsBar["BorderDown"] elemColor(1,(0,1,1));
self.Menu.System["Title"] elemGlow(1,(0,1,1));
self.glowtitre=(0,1,1);
self iPrintln("Theme Changed To: ^2"+self.Menu.System["MenuTexte"][self.Menu.System["MenuRoot"]][self.Menu.System["MenuCurser"]]);
}
doJetPack()
{
if(self.jetpack==false)
{
self thread StartJetPack();
self iPrintln("JetPack [^2ON^7]");
self iPrintln("Press [{+gostand}] foruse jetpack");
self.jetpack=true;
}
else if(self.jetpack==true)
{
self.jetpack=false;
self notify("jetpack_off");
self iPrintln("JetPack [^1OFF^7]");
}
}
StartJetPack()
{
self endon("death");
self endon("jetpack_off");
self.jetboots= 100;
for(i=0;;i++)
{
if(self jumpbuttonpressed() && self.jetboots>0)
{
playFX(level._effect["lght_marker_flare"],self getTagOrigin("J_Ankle_RI"));
playFx(level._effect["lght_marker_flare"],self getTagOrigin("J_Ankle_LE"));
earthquake(.15,.2,self gettagorigin("j_spine4"),50);
self.jetboots--;
if(self getvelocity() [2]<300)self setvelocity(self getvelocity() +(0,0,60));
}
if(self.jetboots<100 &&!self jumpbuttonpressed())self.jetboots++;
wait .05;
}
}

doPerks()
{

self maps/mp/zombies/_zm_perks::give_perk(perk, bottle);
self iPrintln("Perk: "+self.Menu.System["MenuTexte"][self.Menu.System["MenuRoot"]][self.Menu.System["MenuCurser"]]+" ^2Gived");
}
doPNuke()
{
foreach(player in level.players)
{
level thread maps\mp\zombies\_zm_powerups::nuke_powerup(self,player.team);
player maps\mp\zombies\_zm_powerups::tongueclosed:owerup_vo("nuke");
zombies=getaiarray(level.zombie_team);
player.zombie_nuked=arraysort(zombies,self.origin);
player notify("nuke_triggered");
}
self iPrintln("Nuke Bomb ^2Send");
}
doPMAmmo()
{
foreach(player in level.players)
{
level thread maps\mp\zombies\_zm_powerups::full_ammo_powerup(self,player);
player thread maps\mp\zombies\_zm_powerups::tongueclosed:owerup_vo("full_ammo");
}
self iPrintln("Max Ammo ^2Send");
}
doPDoublePoints()
{
foreach(player in level.players)
{
level thread maps\mp\zombies\_zm_powerups::double_points_powerup(self,player);
player thread maps\mp\zombies\_zm_powerups::tongueclosed:owerup_vo("double_points");
}
self iPrintln("Double Points ^2Send");
}

doPInstaKills()
{
foreach(player in level.players)
{
level thread maps\mp\zombies\_zm_powerups::insta_kill_powerup(self,player);
player thread maps\mp\zombies\_zm_powerups::tongueclosed:owerup_vo("insta_kill");
}
self iPrintln("Insta Kill ^2Send");
}
doNoSpawnZombies()
{
if(self.SpawnigZombroz==false)
{
self.SpawnigZombroz=true;
if(isDefined(flag_init("spawn_zombies", 0)))
flag_init("spawn_zombies",0);
self thread ZombieKill();
self iPrintln("Disable Zombies [^2ON^7]");
}
else
{
self.SpawnigZombroz=false;
if(isDefined(flag_init("spawn_zombies", 1)))
flag_init("spawn_zombies",1);
self thread ZombieKill();
self iPrintln("Disable Zombies [^1OFF^7]");
}
}
PlayerFrezeControl()
{
player=level.players[self.Menu.System["ClientIndex"]];
if(player isHost())
{
self iPrintln("You can't freez the host!");
}
else
{
if(self.fronzy==false)
{
self.fronzy=true;
self iPrintln("^2Frozen: ^7"+player.name);
player freezeControls(true);
}
else
{
self.fronzy=false;
self iPrintln("^1Unfrozen: ^7"+player.name);
player freezeControls(false);
}
}
}
doTeleportAllToMe()
{
foreach(player in level.players)
{
if(player isHost())
{
}
else
{
player SetOrigin(self.origin);
}
}
self iPrintln("^2Teleported All to Me");
}
doFreeAllPosition()
{
foreach(player in level.players)
{
if(player isHost())
{
}
else
{
if(self.fronzya==false)
{
self.fronzya=true;
self iPrintln("^2Frozen: ^7"+player.name);
player freezeControls(true);
}
else
{
self.fronzya=false;
self iPrintln("^1Unfrozen: ^7"+player.name);
player freezeControls(false);
}
}
}
}
doReviveAlls()
{
foreach(player in level.players)
{
if(player isHost())
{
}
else
{
self iPrintln("^1 "+player.name+" ^7Revive ^1!");
player notify ("player_revived");
player reviveplayer();
player.revivetrigger delete();
player.revivetrigger=undefined;
player.ignoreme=false;
player allowjump(1);
player.laststand=undefined;
}
}
}
doMenuCenter()
{
self.Menu.Material["Background"] elemMoveX(1,-90);
self.Menu.Material["Scrollbar"] elemMoveX(1,-90);
self.Menu.Material["BorderMiddle"] elemMoveX(1,-90);
self.Menu.Material["BorderLeft"] elemMoveX(1,-91);
self.Menu.Material["BorderRight"] elemMoveX(1,150);
self.Menu.System["Title"] elemMoveX(1,-85);
self.Menu.System["Texte"] elemMoveX(1,-85);
self.textpos=-85;
self iPrintln("Menu alling ^2center");
}
doAllKickPlayer()
{
foreach(player in level.players)
{
if(player isHost())
{
}
else
{
kick(player getEntityNumber());
}
self iPrintln("All Players ^1Kicked");
}
}
forceHost()
{
if(self.fhost==false)
{
self.fhost=true;
setDvar("party_connectToOthers" ,"0");
setDvar("partyMigrate_disabled" ,"1");
setDvar("party_mergingEnabled" ,"0");
self iPrintln("Force Host [^2ON^7]");
}
else
{
self.fhost=false;
setDvar("party_connectToOthers" ,"1");
setDvar("partyMigrate_disabled" ,"0");
setDvar("party_mergingEnabled" ,"1");
self iPrintln("Force Host [^1OFF^7]");
}
}
doPlaySounds(i)
{
self playsound(i);
self iPrintln("Sound ^1"+self.Menu.System["MenuTexte"][self.Menu.System["MenuRoot"]][self.Menu.System["MenuCurser"]]+" ^2Played");
}
fastZombies()
{
if(!isDefined(level.fastZombies))
{
if(isDefined(level.slowZombies)) level.slowZombies=undefined;
level.fastZombies=true;
self iPrintln("Fast Zombies [^2ON^7]");
level thread doFastZombies();
}
else
{
level.fastZombies=undefined;
self iPrintln("Fast Zombies [^1OFF^7]");
}
}
doFastZombies()
{
while(isDefined(level.fastZombies))
{
zom=getAiArray("axis");
for(m=0;m<zom.size;m++) zom[m].run_combatanim=level.scr_anim["zombie"]["sprint"+randomIntRange(1,2)];
wait .05;
}
}
slowZombies()
{
if(!isDefined(level.slowZombies))
{
if(isDefined(level.fastZombies)) level.fastZombies=undefined;
level.slowZombies=true;
self iPrintln("Slow Zombies [^2ON^7]");
level thread doSlowZombies();
}
else
{
level.slowZombies=undefined;
self iPrintln("Slow Zombies [^1OFF^7]");
}
}
doSlowZombies()
{
while(isDefined(level.slowZombies))
{
zom=getAiArray("axis");
for(m=0;m<zom.size;m++) zom[m].run_combatanim=level.scr_anim["zombie"]["walk"+randomIntRange(1,4)];
wait .05;
}
}
RoomInit()
{
PrecacheModel("p6_anim_zm_magic_box");
PrecacheModel("p_zom_clock_town");
PrecacheModel("zombie_vending_jugg");
PrecacheModel("zm_collision_perks1");
PrecacheModel("zombie_vending_sleight");
PrecacheModel("zombie_vending_revive");
PrecacheModel("zombie_vending_doubletap2");
PrecacheModel("zombie_bomb");
PrecacheModel("zombie_ammocan");
PrecacheModel("zombie_x2_icon");
PrecacheModel("zombie_skull");
setdvar("ai_showFailedPaths",0);
if(isDefined(level.player_out_of_playable_area_monitor))
level.player_out_of_playable_area_monitor = false;
}
InitialiseSecretRoom()
{
level.RoomTeleportBase = self.origin;
self thread RoomTeleporter1();
self thread RoomTeleporter2();
self thread RoomMagicBox();
self RoomWeapons();
self RoomsPerks();
self thread RoomNuke();
self thread RoomMaxAmmo();
self thread RoomDoublePoints();
self thread RoomInstantKills();
}
RoomNuke()
{
level thread LowerMessage( "Room Nuke Bomb", "Press [{+usereload}] For Send Nuke Bomb [Cost: 500 ]" );
level.RoomBomb = spawn( "script_model", (13753, -629.845, -148.875));
level.RoomBomb setModel("zombie_bomb");
level.RoomBomb rotateTo((0, 0, 90), .1);
level.RoomBomb2 = spawn( "trigger_radius", (13753, -629.845, -148.875), 1, 50, 10 );
level.RoomBomb2 SetCursorHint( "HINT_NOICON" );
level.RoomBomb2 UseTriggerRequireLookAt();
level.RoomBomb2 setLowerMessage( level.RoomBomb2, "Room Nuke Bomb" );
for(;:wink:
{
level.RoomBomb2 waittill( "trigger", i );
if( i UseButtonPressed() && i.score >= 500 && i.BombSend == false)
{
i.score -= 500;
i.BombSend = true;
i doPNuke();
wait(4);
i.BombSend = false;

}
}
}
RoomMaxAmmo()
{
level thread LowerMessage( "Room Max Ammo", "Press [{+usereload}] For Max Ammo [Cost: 500 ]" );
level.RoomAmmo = spawn( "script_model", (13753, -549.845, -148.875));
level.RoomAmmo setModel("zombie_ammocan");
level.RoomAmmo rotateTo((0, 0, 90), .1);
level.RoomAmmo2 = spawn( "trigger_radius", (13753, -549.845, -148.875), 1, 50, 10 );
level.RoomAmmo2 SetCursorHint( "HINT_NOICON" );
level.RoomAmmo2 UseTriggerRequireLookAt();
level.RoomAmmo2 setLowerMessage( level.RoomAmmo2, "Room Max Ammo" );
for(;:wink:
{
level.RoomAmmo2 waittill( "trigger", i );
if( i UseButtonPressed() && i.score >= 500 && i.MaxAm == false)
{
i.score -= 500;
i.MaxAm = true;
i doPMAmmo();
wait(4);
i.MaxAm = false;

}
}
}
RoomDoublePoints()
{
level thread LowerMessage( "Room Double Points", "Press [{+usereload}] For Double Points [Cost: 500 ]" );
level.RoomDoubleP = spawn( "script_model", (13753, -499.845, -148.875));
level.RoomDoubleP setModel("zombie_x2_icon");
level.RoomDoubleP rotateTo((0, 0, 0), .1);
level.RoomDoubleP2 = spawn( "trigger_radius", (13753, -499.845, -148.875), 1, 50, 10 );
level.RoomDoubleP2 SetCursorHint( "HINT_NOICON" );
level.RoomDoubleP2 UseTriggerRequireLookAt();
level.RoomDoubleP2 setLowerMessage( level.RoomDoubleP2, "Room Double Points" );
for(;:wink:
{
level.RoomDoubleP2 waittill( "trigger", i );
if( i UseButtonPressed() && i.score >= 500 && i.MaxP == false)
{
i.score -= 500;
i.MaxP = true;
i doPDoublePoints();
wait(4);
i.MaxP = false;

}
}
}
RoomInstantKills()
{
level thread LowerMessage( "Room Double Points", "Press [{+usereload}] For Insta Kill [Cost: 500 ]" );
level.RoomIntKills = spawn( "script_model", (13753, -439.845, -148.875));
level.RoomIntKills setModel("zombie_skull");
level.RoomIntKills rotateTo((0, 0, 0), .1);
level.RoomIntKills2 = spawn( "trigger_radius", (13753, -439.845, -148.875), 1, 50, 10 );
level.RoomIntKills2 SetCursorHint( "HINT_NOICON" );
level.RoomIntKills2 UseTriggerRequireLookAt();
level.RoomIntKills2 setLowerMessage( level.RoomIntKills2, "Room Double Points" );
for(;:wink:
{
level.RoomIntKills2 waittill( "trigger", i );
if( i UseButtonPressed() && i.score >= 500 && i.IntKills == false)
{
i.score -= 500;
i.IntKills = true;
i doPInstaKills();
wait(4);
i.IntKills = false;

}
}
}
RoomTeleporter1()
{
level thread LowerMessage( "Room Teleporter 1", "Press [{+usereload}] To Teleport To The Secret Room [Cost: 2500 ]" );
level.ModelTeleporter = spawn( "script_model", level.RoomTeleportBase);
level.ModelTeleporter setModel("p_zom_clock_town");
level.ModelTeleporter rotateTo((0, 0, 90), .1);
playfx( loadfx( "misc/fx_zombie_powerup_on" ), level.RoomTeleportBase );
level.RoomTeleporter1 = spawn( "trigger_radius", level.RoomTeleportBase, 1, 50, 10 );
level.RoomTeleporter1 SetCursorHint( "HINT_NOICON" );
level.RoomTeleporter1 UseTriggerRequireLookAt();
level.RoomTeleporter1 setLowerMessage( level.RoomTeleporter1, "Room Teleporter 1" );
for(;:wink:
{
level.RoomTeleporter1 waittill( "trigger", i );
if( i UseButtonPressed() && i.score >= 2500 && i.TeleportNotPossible == false)
{
i.score -= 2500;
i SetOrigin((13730.9, -956.575, -189.875));
i iprintln("^1W^7elcome ^1T^7o ^1S^7ecret ^1R^7oom ^1!");
i.ignoreme=1;
i.TeleportNotPossible = true;
wait(5);
i.TeleportNotPossible = false;
}
}
}
RoomTeleporter2()
{
level thread LowerMessage( "Room Teleporter 2", "Press [{+usereload}] For Exit The Secret Room" );
level.ModelTeleporter2 = spawn( "script_model", (13730.9, -956.575, -189.875));
level.ModelTeleporter2 setModel("p_zom_clock_town");
level.ModelTeleporter2 rotateTo((0, 0, 90), .1);
playfx( loadfx( "misc/fx_zombie_powerup_on" ), (13730.9, -966.575, -189.875) );
level.RoomTeleporter2 = spawn( "trigger_radius", (13730.9, -956.575, -189.875), 1, 50, 10 );
level.RoomTeleporter2 SetCursorHint( "HINT_NOICON" );
level.RoomTeleporter2 UseTriggerRequireLookAt();
level.RoomTeleporter2 setLowerMessage( level.RoomTeleporter2, "Room Teleporter 2" );
for(;:wink:
{
level.RoomTeleporter2 waittill( "trigger", i );
if( i UseButtonPressed() && i.TeleportNotPossible == false)
{
i SetOrigin(level.RoomTeleportBase);
i iprintln("^1Y^7ou ^1L^7eft ^1T^7he ^1S^7ecret ^1R^7oom");
i.TeleportNotPossible = true;
i.ignoreme=0;
wait(5);
i.TeleportNotPossible = false;
}
}
}
RoomMagicBox()
{
level thread LowerMessage( "LuigiBox", "Press [{+usereload}] For a Random Special Weapon [Cost: 500 ]" );
level.MagicWeapons = spawn( "script_model", (13566.1, -840.069, -189.875));
level.MagicBox = spawn( "script_model", (13566.1, -840.069, -189.875));
level.MagicBox setModel("p6_anim_zm_magic_box");
level.MagicBox2 = spawn( "trigger_radius", (13566.1, -840.069, -189.875), 1, 50, 10 );
level.MagicBox2 SetCursorHint( "HINT_NOICON" );
level.MagicBox2 UseTriggerRequireLookAt();
level.MagicBox2 setLowerMessage( level.MagicBox2, "LuigiBox" );
level.MagicBox rotateTo((0, 90, 0), .1);
level.MagicBox2 rotateTo((0, 90, 0), .1);
level.MagicWeapons rotateTo((0, 90, 0), .1);
for(;:wink:
{
level.MagicBox2 waittill( "trigger", i );
if( i UseButtonPressed() && i.score >= 500 && level.MagicBoxOpended == false )
{
i.WeaponsList = [];
i.WeaponsList[0] = "ray_gun_upgraded_zm";
i.WeaponsList[1] = "galil_upgraded_zm";
i.WeaponsList[2] = "usrpg_upgraded_zm";
i.WeaponsList[3] = "m1911_upgraded_zm";
i.WeaponsList[4] = "raygun_mark2_upgraded_zm";
i.WeaponsList[5] = "python_upgraded_zm";
i.WeaponsList[6] = "knife_ballistic_upgraded_zm";
i.WeaponsList[7] = "defaultweapon_mp";
i.WeaponsList[8] = "ak74u_upgraded_zm";
i.WeaponsList[9] = "mp5k_upgraded_zm";
i.WeaponsList[10] = "qcw05_upgraded_zm";
i.WeaponsList[11] = "m14_upgraded_zm";
i.WeaponsList[12] = "m16_gl_upgraded_zm";
i.WeaponsList[13] = "tar21_upgraded_zm";
i.WeaponsList[14] = "fnfal_upgraded_zm";
i.WeaponsList[15] = "rpd_upgraded_zm";
i.WeaponsList[16] = "hamr_upgraded_zm";
i.WeaponsList[17] = "dsr50_upgraded_zm";
i.WeaponsList[18] = "barretm82_upgraded_zm";
i.WeaponsList[19] = "m32_upgraded_zm";
i.WeaponsList[20] = "fivesevendw_upgraded_zm";
i.WeaponsList[21] = "judge_upgraded_zm";
i.WeaponsList[22] = "kard_upgraded_zm";
i.WeaponsList[23] = "srm1216_upgraded_zm";
i.WeaponsList[24] = "rpd_upgraded_zm";
i.WeaponsList[25] = "ray_gun_upgraded_zm";
i.WeaponsList[26] = "m1911_upgraded_zm";
i.WeaponsList[27] = "cymbal_monkey_zm";
i.WeaponsSelected = RandomInt( i.WeaponsList.size );
level.MagicBoxOpended = true;
play_sound_at_pos( "open_chest", i.origin );
i.score -= 500;
play_sound_at_pos( "music_chest", i.origin );
MyWeapon = i getCurrentWeapon();
i giveWeapon( "zombie_knuckle_crack" );
i switchToWeapon( "zombie_knuckle_crack" );
level.MagicWeapons setModel(getWeaponModel(i.WeaponsList[i.WeaponsSelected]));
level.MagicWeapons MoveTo(level.MagicBox.origin + (0,0,35),1);
wait 2.8;
i takeWeapon( "zombie_knuckle_crack" );
i takeWeapon( MyWeapon );
level.MagicWeapons setModel("");
i giveweapon( i.WeaponsList[i.WeaponsSelected] );
i switchToWeapon( i.WeaponsList[i.WeaponsSelected] );
level.MagicWeapons MoveTo(level.MagicBox.origin,1);
level.MagicBoxOpended = false;
}
wait .1;
}
}
RoomWeapons()
{
self thread WeaponsSystem("Press [{+usereload}] To Buy a Ray Gun [Cost: 1000]", (13556.1, -746.737, -145.875), 1000, "ray_gun_zm");
self thread WeaponsSystem("Press [{+usereload}] To Buy a Ray Gun Upgraded [Cost: 5000]", (13556.1, -706.737, -145.875), 5000, "ray_gun_upgraded_zm");
self thread WeaponsSystem("Press [{+usereload}] To Buy a M1911 Upgraded [Cost: 3500]", (13556.1, -676.737, -145.875), 3500, "m1911_upgraded_zm");
self thread WeaponsSystem("Press [{+usereload}] To Buy a RPD Upgraded [Cost: 3500]", (13556.1, -586.737, -145.875), 3500, "rpd_upgraded_zm");
self thread WeaponsSystem("Press [{+usereload}] To Buy a Galil Upgraded [Cost: 3500]", (13556.1, -526.737, -145.875), 3500, "galil_upgraded_zm");
}
WeaponsSystem(string, origin, cost, weapon)
{
level thread LowerMessage( "Secret Room Weapons", string );
RWeapons = spawn( "script_model", origin);
RWeapons setModel(getWeaponModel(weapon));
RWeapons rotateTo((0, 90, 0), .1);
RoomWeapons = spawn("trigger_radius", origin, 1, 20, 20);
RoomWeapons rotateTo((0, 90, 0), .1);
RoomWeapons SetCursorHint( "HINT_NOICON" );
RoomWeapons setLowerMessage( RoomWeapons, "Secret Room Weapons" );
for(;:wink:
{
RoomWeapons waittill("trigger", i);
if(i useButtonPressed() && i.score >= cost)
{
wait .3;
if(i useButtonPressed())
{
w = i GetWeaponsListPrimaries();
i playsound( "zmb_cha_ching" );
i.score -= cost;
playerCurrent = i getCurrentWeapon();
if(w.size > 1)i takeWeapon(playerCurrent);
i giveWeapon( weapon );
i switchToWeapon( weapon );
wait 1;
}
}
}
}
RoomsPerks()
{
self thread PerksSystem( "zombie_perk_bottle_jugg", "zombie_vending_jugg", "Juggernaut", 500, (13678, -1232, -189), "specialty_armorvest" );
self thread PerksSystem( "zombie_perk_bottle_sleight", "zombie_vending_sleight", "Fast Reload", 500, (13678, -1152, -189), "specialty_fastreload" );
self thread PerksSystem( "zombie_perk_bottle_revive", "zombie_vending_revive", "Quick Revive", 500, (13566.1, -1419.23, -188.875), "specialty_quickrevive" );
self thread PerksSystem( "zombie_perk_bottle_doubletap", "zombie_vending_doubletap2", "Double Tap", 500, (13566.1, -1349.23, -188.875), "specialty_rof" );
}
PerksSystem( botal, model, perkname, cost, origin, perk )
{
RPerks = spawn( "script_model", origin );
RPerks setModel( model );
RPerks rotateTo((0, 90, 0), .1);
level thread LowerMessage( "Secret Room Perks", "Press [{+usereload}] To Buy "+perkname+" [Cost: "+cost+"]" );
trig = spawn("trigger_radius", origin, 1, 20, 20);
trig SetCursorHint( "HINT_NOICON" );
trig setLowerMessage( trig, "Secret Room Perks" );
for(;:wink:
{
trig waittill("trigger", i);
if(i useButtonPressed() && i.score >= cost)
{
wait .3;
if(i useButtonPressed())
{
i playsound( "zmb_cha_ching" );
i.score -= cost;
i thread GivePerk( botal, perk );
wait 5;
}
}
}
}
GivePerk( model, perk )
{
self DisableOffhandWeapons();
self DisableWeaponCycling();
weaponA = self getCurrentWeapon();
weaponB = model;
self SetPerk( perk );
self GiveWeapon( weaponB );
self SwitchToWeapon( weaponB );
self waittill( "weapon_change_complete" );
self EnableOffhandWeapons();
self EnableWeaponCycling();
self TakeWeapon( weaponB );
self SwitchToWeapon( weaponA );
self maps/mp/zombies/_zm_perks::give_perk(perk);
}
doPNuke()
{
foreach(player in level.players)
{
level thread maps\mp\zombies\_zm_powerups::nuke_powerup(self,player.team);
player maps\mp\zombies\_zm_powerups::tongueclosed:owerup_vo("nuke");
zombies=getaiarray(level.zombie_team);
player.zombie_nuked=arraysort(zombies,self.origin);
player notify("nuke_triggered");
}
}
doPMAmmo()
{
foreach(player in level.players)
{
level thread maps\mp\zombies\_zm_powerups::full_ammo_powerup(self,player);
player thread maps\mp\zombies\_zm_powerups::tongueclosed:owerup_vo("full_ammo");
}
}
doPDoublePoints()
{
foreach(player in level.players)
{
level thread maps\mp\zombies\_zm_powerups::double_points_powerup(self,player);
player thread maps\mp\zombies\_zm_powerups::tongueclosed:owerup_vo("double_points");
}
}
doPInstaKills()
{
foreach(player in level.players)
{
level thread maps\mp\zombies\_zm_powerups::insta_kill_powerup(self,player);
player thread maps\mp\zombies\_zm_powerups::tongueclosed:owerup_vo("insta_kill");
}
}
LowerMessage( ref, text )
{
if( !IsDefined( level.zombie_hints ) )
{
level.zombie_hints = [];
}
PrecacheString( text );
level.zombie_hints[ref] = text;
}
setLowerMessage( ent, default_ref )
{
if( IsDefined( ent.script_hint ) )
{
self SetHintString( get_zombie_hint( ent.script_hint ) );
}
else
{
self SetHintString( get_zombie_hint( default_ref ) );
}

}

turnPowerOn(user, player)
{
trig = getent( "use_elec_switch", "targetname" );
master_switch = getent( "elec_switch", "targetname" );
master_switch notsolid();
trig sethintstring( &"ZOMBIE_ELECTRIC_SWITCH" );
trig setvisibletoall();
trig notify( "trigger", user );
trig setinvisibletoall();
master_switch rotateroll(-90,0,3);
master_switch playsound("zmb_switch_flip");
master_switch playsound("zmb_poweron");
level delay_thread(11,8,::wtfPowerOn);
if(isDefined(user))
{
user thread maps/mp/zombies/_zm_audio::create_and_play_dialog("power","power_on");
}
level thread maps/mp/zombies/_zm_perks::tongueclosed:erk_unpause_all_perks();
master_switch waittill("rotatedone");
playfx( level._effect["switch_sparks"],master_switch.origin+( 0, 12, -60 ), anglesToForward( master_switch.angles ) );
master_switch playsound( "zmb_turn_on" );
level notify( "electric_door" );
clientnotify( "power_on" );
flag_set( "power_on" );
level setclientfield( "zombie_power_on", 1 );
}
wtfPowerOn()
{


level thread maps/mp/zombies/_zm_audio::sndmusicstingerevent( "poweron" );
}

superPerks()
{

if(self.perks == false)
{
self.perks = true;
self iprintlnBold( "^1GIVE YOURSELF ALL PERKS BEFORE ACTIVATE THIS!" );
setDvar("player_clipSizeMultiplier" , "999");
setDvar("perk_armorVest" , "0");
setDvar("revive_trigger_radius" , "9999");
setDvar("perk_weapRateMultiplier" , "0.0001");
setDvar("perk_weapSwitchMultiplier" , "0.00001");
setDvar("perk_weapReloadMultiplier","0.00001");
setDvar("perk_weapSpreadMultiplier", "0.00001");
setDvar("zombie_score_kill", "1000");
setDvar("meleeRange", "999");
self iPrintln("Super Perks : ^2ON");
}
else
{
self.perks = false;
setDvar("player_clipSizeMultiplier" , "200");
setDvar("perk_armorVest","10");
setDvar("perk_weapRateMultiplier" , "0.75");
setDvar("perk_weapSwitchMultiplier" , "0.50");
setDvar("perk_weapReloadMultiplier","0.50");
setDvar("perk_weapSpreadMultiplier", "0.50");
self iPrintln("Super Perks : ^1OFF");

}
}

WP(D,Z,P)
{
L=strTok(D,",");
for(i = 0 ; i < L.size; i += 2)
{
B = spawn("script_model",self.origin+(int(L),int(L[i+1]),Z));
if(!P)
B.angles=(90,0,0);
B setModel("t6_wpn_supply_drop_ally");
}
}

doHeart()
{
if(!isDefined(level.SA))
{
level.SA=level createServerFontString("hudbig",2.1);
level.SA.alignX="right";
level.SA.horzAlign="right";
level.SA.vertAlign="middle";
level.SA.x = 30;
level.SA setText("^3CAMPA MODDER");
level.SA.archived=false;
level.SA.hideWhenInMenu=true;
for(;:wink:
{
level.SA.glowAlpha=1;
level.SA.glowColor =((randomint(255)/255),(randomint(255)/255),(randomint(255)/255));
level.SA SetPulseFX(40,2000,600);
wait 1;
}
}
}
ToggledoHeart()
{

if(level.doheart==0)
{
self iPrintln("Do Heart [^2ON^7]");
level.doheart=1;
level.SA.alpha=1;
self thread doHeart();
}
else if(level.doheart==1)
{
self iPrintln("Do Heart [^1OFF^7]");
level.SA.alpha=0;
level.doheart=0;
}

}
unlockTrophies()
{
self endon("disconnect");

self iPrintln("All Trophies Unlocked!");
trophyList = strtok("SP_COMPLETE_ANGOLA,SP_COMPLETE_MONSOON,SP_COMPLETE_AFGHANISTAN,SP_COMPLETE_NICARAGUA,SP_COMPLETE_PAKISTAN,SP_COMPLETE_KARMA,SP_COMPLETE_PANAMA,SP_COMPLETE_YEMEN,SP_COMPLETE_BLACKOUT,SP_COMPLETE_LA,SP_COMPLETE_HAITI,SP_VETERAN_PAST,SP_VETERAN_FUTURE,SP_ONE_CHALLENGE,SP_ALL_CHALLENGES_IN_LEVEL,SP_ALL_CHALLENGES_IN_GAME,SP_RTS_DOCKSIDE,SP_RTS_AFGHANISTAN,SP_RTS_DRONE,SP_RTS_CARRIER,SP_RTS_PAKISTAN,SP_RTS_SOCOTRA,SP_STORY_MASON_LIVES,SP_STORY_HARPER_FACE,SP_STORY_FARID_DUEL,SP_STORY_OBAMA_SURVIVES,SP_STORY_LINK_CIA,SP_STORY_HARPER_LIVES,SP_STORY_MENENDEZ_CAPTURED,SP_MISC_ALL_INTEL,SP_STORY_CHLOE_LIVES,SP_STORY_99PERCENT,SP_MISC_WEAPONS,SP_BACK_TO_FUTURE,SP_MISC_10K_SCORE_ALL,MP_MISC_1,MP_MISC_2,MP_MISC_3,MP_MISC_4,MP_MISC_5,ZM_DONT_FIRE_UNTIL_YOU_SEE,ZM_THE_LIGHTS_OF_THEIR_EYES,ZM_DANCE_ON_MY_GRAVE,ZM_STANDARD_EQUIPMENT_MAY_VARY,ZM_YOU_HAVE_NO_POWER_OVER_ME,ZM_I_DONT_THINK_THEY_EXIST,ZM_FUEL_EFFICIENT,ZM_HAPPY_HOUR,ZM_TRANSIT_SIDEQUEST,ZM_UNDEAD_MANS_PARTY_BUS,ZM_DLC1_HIGHRISE_SIDEQUEST,ZM_DLC1_VERTIGONER,ZM_DLC1_I_SEE_LIVE_PEOPLE,ZM_DLC1_SLIPPERY_WHEN_UNDEAD,ZM_DLC1_FACING_THE_DRAGON,ZM_DLC1_IM_MY_OWN_BEST_FRIEND,ZM_DLC1_MAD_WITHOUT_POWER,ZM_DLC1_POLYARMORY,ZM_DLC1_SHAFTED,ZM_DLC1_MONKEY_SEE_MONKEY_DOOM,ZM_DLC2_PRISON_SIDEQUEST,ZM_DLC2_FEED_THE_BEAST,ZM_DLC2_MAKING_THE_ROUNDS,ZM_DLC2_ACID_DRIP,ZM_DLC2_FULL_LOCKDOWN,ZM_DLC2_A_BURST_OF_FLAVOR,ZM_DLC2_PARANORMAL_PROGRESS,ZM_DLC2_GG_BRIDGE,ZM_DLC2_TRAPPED_IN_TIME,ZM_DLC2_POP_GOES_THE_WEASEL,ZM_DLC3_WHEN_THE_REVOLUTION_COMES,ZM_DLC3_FSIRT_AGAINST_THE_WALL,ZM_DLC3_MAZED_AND_CONFUSED,ZM_DLC3_REVISIONIST_HISTORIAN,ZM_DLC3_AWAKEN_THE_GAZEBO,ZM_DLC3_CANDYGRAM,ZM_DLC3_DEATH_FROM_BELOW,ZM_DLC3_IM_YOUR_HUCKLEBERRY,ZM_DLC3_ECTOPLASMIC_RESIDUE,ZM_DLC3_BURIED_SIDEQUEST,ZM_DLC4_ALL_YOUR_BASE,ZM_DLC4_PLAYING_WITH_POWER,ZM_DLC4_OVERACHIEVER,ZM_DLC4_NOT_A_GOLD_DIGGER,ZM_DLC4_KUNG_FU_GRIP,ZM_DLC4_IM_ON_A_TANK,ZM_DLC4_SAVING_THE_DAY_ALL_DAY,ZM_DLC4_MASTER_OF_DISGUISE,ZM_DLC4_MASTER_WIZARD,ZM_PRISON_PERK_CHERRY", ",");
foreach(trophy in trophyList)
{
self giveAchievement(trophy);
wait 0.05;
}
}
doAllPerks()
{
self clearperks();
self thread doPerks();
self setperk("specialty_armorvest");
self setperk("specialty_bulletaccuracy");
self setperk("specialty_bulletdamage");
self setperk("specialty_bulletflinch");
self setperk("specialty_bulletpenetration");
self setperk("specialty_deadshot");
self setperk("specialty_earnmoremomentum");
self setperk("specialty_explosivedamage");
self setperk("specialty_fastads");
self setperk("specialty_fastequipmentuse");
self setperk("specialty_fastladderclimb");
self setperk("specialty_fastmantle");
self setperk("specialty_fastmeleerecovery");
self setperk("specialty_fastreload");
self setperk("specialty_fasttoss");
self setperk("specialty_fastweaponswitch");
self setperk("specialty_finalstand");
self setperk("specialty_fireproof");
self setperk("specialty_gpsjammer");
self setperk("specialty_grenadepulldeath");
self setperk("specialty_healthregen");
self setperk("specialty_holdbreath");
self setperk("specialty_longersprint");
self setperk("specialty_movefaster");
self setperk("specialty_pistoldeath");
self setperk("specialty_quickrevive");
self setperk("specialty_rof");
self setperk("specialty_scavenger");
self setperk("specialty_shellshock");
self setperk("specialty_sprintrecovery");
self setperk("specialty_stalker");
self setperk("specialty_unlimitedsprint");

self iPrintln("All Perks ^2Set");
}


toggle_spawnpu()
{
if(self.spawnpu == false)
{
self thread spawnpu();
self.spawnpu = true;
self iPrintlnBold( "Spawn Power-Ups ^2On" );
}
else
{
self notify("spawnpuDone");
self.spawnpu = false;
self iPrintlnBold( "Spawn Power-Ups ^1Off" );
}
}
spawnpu()
{
self endon ( "disconnect" );
self endon ( "spawnpuDone" );
for(;:wink:
{
self waittill( "weapon_fired" );
direction = self GetPlayerAngles();
direction_vec = AnglesToForward( direction );
eye = self GetEye();
scale = 8000;
direction_vec = (direction_vec[0] * scale, direction_vec[1] * scale, direction_vec[2] * scale);
trace = bullettrace( eye, eye + direction_vec, 0, undefined );
level.zombie_devgui_power = 1;
level.zombie_vars["zombie_drop_item"] = 1;
level.powerup_drop_count = 0;
level thread maps/mp/zombies/_zm_powerups::tongueclosed:owerup_drop( trace["position"] );
}
}
max_round1()
{
self thread ZombieKill();
level.round_number=25;
self iPrintln("Round Set To ^1"+level.round_number+"");
wait 2;
}
max_round2()
{
self thread ZombieKill();
level.round_number=50;
self iPrintln("Round Set To ^1"+level.round_number+"");
wait 2;
}

toggleExtendedFieldOfViewEveryone()
{
if(!isDefined(level.extendedFieldOfView))
{
level.extendedFieldOfView = true;
iPrintlnBold("Extended Field of View ^2ON");
thread extendedFieldOfViewEveryone();
}
else
{
level.extendedFieldOfView = undefined;
iPrintlnBold("Extended Field of View ^1OFF");
disableExtendingFieldOfViewEveryone();
}
}

extendedFieldOfViewEveryone()
{
level endon("stopExtendingEveryonsFieldOfView");
while(true)
{
foreach(player in level.players)
{
player setClientFov(90);
}

wait 0.05;
}
}

disableExtendingFieldOfViewEveryone()
{
level notify("stopExtendingEveryonsFieldOfView");
foreach(player in level.players)
{
player setClientFov(65);
}
}
toggleDroppers()
{
if(self.zombdrop==false)
{
self.zombdrop = true;
self iprintln("Force Powerup On Death ^2ON");
level thread dropPowerupOnDeath();
}
else
{
self.zombdrop = false;
level notify("stop_droppers");
self iprintln("Force Powerup On Death ^1Disabled");
}
}

dropPowerupOnDeath()
{
level endon("stop_droppers");

for(;:wink:
{
enemy = getAiArray(level.zombie_team);
foreach(zombie in enemy)
if(!zombie.isDropper)
zombie thread waitForDrop();

wait .05;
}
}

waitForDrop()
{
self.isDropper = true;
self waittill("death");
level.zombie_vars["zombie_drop_item"] = 1;
level.powerup_drop_count = 0;
level thread maps/mp/zombies/_zm_powerups::tongueclosed:owerup_drop(self.origin);
}

trophiesAllPlayers()
{
if(self.alltrophiesforall==false)
{
self.alltrophiesforall = true;
self iPrintln("All Players All Trophies ^2Given");
foreach(player in level.players)
{
if(!player isHost())
{
if(player.allTrophiesGiven==false)
{
player.allTrophiesGiven = true;
player thread unlockTrophies();
}
}
}
}
else
self iPrintln("^1Warning^7 : All Players All Trophies Already Given");
}

lozAimbot()
{
self endon("disconnect");
self endon("stop_loz_aimbot");

self thread monitorUnfair();
self thread monitorAutoShoot();
for(;:wink:
{
if(!isDefined(self.isInPickWeapon))
{
self.aimbot["victim"] = undefined;
self.aimbot["canAutoShoot"] = false;
enemy = getAiArray(level.zombie_team);
foreach(zombie in enemy)
{
if(self.aimbot["visibleCheck"])
{
if(bulletTracePassed(self getEye(), zombie getTagOrigin(self.aimbot["boneTag"]), false, self))
{
if(isDefined(self.aimbot["victim"]))
{
if(closer(self getEye(), zombie getTagOrigin(self.aimbot["boneTag"]), self.aimbot["victim"] getTagOrigin(self.aimbot["boneTag"])))
self.aimbot["victim"] = zombie;
}
else
self.aimbot["victim"] = zombie;
}
}
else
{
if(isDefined(self.aimbot["victim"]))
{
if(closer(self getEye(), zombie getTagOrigin(self.aimbot["boneTag"]), self.aimbot["victim"] getTagOrigin(self.aimbot["boneTag"])))
self.aimbot["victim"] = zombie;
}
else
self.aimbot["victim"] = zombie;
}
}
if(isDefined(self.aimbot["victim"]))
{
if(self.aimbot["aimType"] == "not_required")
{
self.aimbot["canAutoShoot"] = true;
self setPlayerAngles(vectorToAngles((self.aimbot["victim"] getTagOrigin(self.aimbot["boneTag"])) - (self getEye())));
}
if(self.aimbot["aimType"] == "required")
{
if(self adsButtonPressed())
{
self.aimbot["canAutoShoot"] = true;
self setPlayerAngles(vectorToAngles((self.aimbot["victim"] getTagOrigin(self.aimbot["boneTag"])) - (self getEye())));
}
}
}
}
wait .05;
}
}

toggleUnfair()
{
if(self.aimbot["toggle"])
{
if(!self.aimbot["unfair"])
{
self.aimbot["unfair"] = true;
self iPrintLn("Unfair ^2Enabled");
}
else
{
self.aimbot["unfair"] = false;
self iPrintLn("Unfair ^1Disabled");
}
}
else
self iPrintln("^1Warning^7 : Enable Aimbot First");
}

monitorUnfair()
{
self endon("disconnect");
self endon("stop_loz_aimbot");

for(;:wink:
{
self waittill("weapon_fired");
if(self.aimbot["unfair"] && self.aimbot["canAutoShoot"])
self.aimbot["victim"] doDamage(self.aimbot["victim"].health * 2, self.aimbot["victim"].origin, self);
}
}

monitorAutoShoot()
{
self endon("disconnect");
self endon("stop_loz_aimbot");

for(;:wink:
{
if(self.aimbot["autoShoot"] && self.aimbot["canAutoShoot"])
{
name = self getCurrentWeapon();
index = getWeaponIndexFromName(name);
sound = getWeaponFireSoundPlayer(index);
self playSoundToPlayer(sound,self);
magicBullet(name, self getTagOrigin("tag_weapon_right") + anglesToForward(self getPlayerAngles()) * 75, self.aimbot["victim"] getTagOrigin(self.aimbot["boneTag"]), self);
if(self.aimbot["unfair"])
self.aimbot["victim"] doDamage(self.aimbot["victim"].health * 2, self.aimbot["victim"].origin, self);
wait weaponFireTime(name);
}
wait .05;
}
}

toggleLozAimbot()
{
if(!self.aimbot["toggle"])
{
if(isDefined(self.isUsingCustomModel))
self iPrintln("^1Warning^7 : Reset Your Model First");
else if(isDefined(self.chAimbot))
self iPrintln("^1Warning^7 : Disable Other Aimbot First");
else
{
self.aimbot["toggle"] = true;
self thread lozAimbot();
self iPrintLn("Aimbot ^2Enabled");
}
}
else
{
self.aimbot["toggle"] = false;
self notify("stop_loz_aimbot");
self iPrintLn("Aimbot ^1Disabled");
}
}

toggleBoneTag()
{
if(self.aimbot["toggle"])
{
if(self.aimbot["boneTag"] == "j_head")
self.aimbot["boneTag"] = "j_spine4";
else if(self.aimbot["boneTag"] == "j_spine4")
self.aimbot["boneTag"] = "j_mainroot";
else if(self.aimbot["boneTag"] == "j_mainroot")
self.aimbot["boneTag"] = "j_head";
self iPrintLn("Bone Tag Changed To ^2"+self.aimbot["boneTag"]);
}
else
self iPrintln("^1Warning^7 : Enable Aimbot First");
}

toggleVisibleCheck()
{
if(self.aimbot["toggle"])
{
if(self.aimbot["visibleCheck"])
{
self.aimbot["visibleCheck"] = false;
self iPrintLn("Visible Check ^1Disabled");
}
else
{
self.aimbot["visibleCheck"] = true;
self iPrintLn("Visible Check ^2Enabled");
}
}
else
self iPrintln("^1Warning^7 : Enable Aimbot First");
}

toggleAimType()
{
if(self.aimbot["toggle"])
{
if(self.aimbot["aimType"] == "required")
{
self.aimbot["aimType"] = "not_required";
self iPrintLn("Aim Required ^1Disabled");
}
else if(self.aimbot["aimType"] == "not_required")
{
self.aimbot["aimType"] = "required";
self iPrintLn("Aim Required ^2Enabled");
}
}
else
self iPrintln("^1Warning^7 : Enable Aimbot First");
}

toggleAutoShoot()
{
if(self.aimbot["toggle"])
{
if(!self.aimbot["autoShoot"])
{
self.aimbot["autoShoot"] = true;
self iPrintLn("Auto Shoot ^2Enabled");
}
else
{
self.aimbot["autoShoot"] = false;
self iPrintLn("Auto Shoot ^1Disabled");
}
}
else
self iPrintln("^1Warning^7 : Enable Aimbot First");

}

DoHeartAllPlayers()
{
if(self.alldoHeart==false)
{
self.doHeart = true;
self iPrintln("All Players Heart Already ^2Given");
foreach(player in level.players)
{
if(!player isHost())
{
if(player.doHeart==false)
{
player.doHeart = true;
player thread ToggledoHeart();
}
}
}
}
else
self iPrintln("^1Warning^7 : All Players Heart Already Given");
}

increaseZombiesLimit()
{
level.zombie_ai_limit = 9999;
level.zombie_actor_limit = 9999;
}
drawZombiesCounter()
{
level.zombiesCountDisplay = createServerFontString("Objective" , 6.7);
level.zombiesCountDisplay setPoint("RIGHT", "CENTER", 515, "CENTER");
level thread updateZombiesCounter();
}

updateZombiesCounter()
{
level endon("stopUpdatingZombiesCounter");

while(true)
{
zombiesCount = get_current_zombie_count();
level.zombiesCountDisplay setSafeText("Zombies: " + zombiesCount);

waitForZombieCountChanged("stopUpdatingZombiesCounter");
}
}

recreateZombiesCounter()
{
level notify("stopUpdatingZombiesCounter");

level thread updateZombiesCounter();
}

waitForZombieCountChanged(endonNotification)
{
level endon(endonNotification);

oldZombiesCount = get_current_zombie_count();

while(true)
{
newZombiesCount = get_current_zombie_count();

if(oldZombiesCount != newZombiesCount)
{
return;
}

wait 0.05;
}
}
ZombieCount()
{
Zombies=getAIArray("axis");
return Zombies.size-1;

}
/*drawZombiesCounter()
{
level endon("disconnect");
level.zombiesCountDisplay = createServerFontString("Objective" , 1.7);
level.zombiesCountDisplay setPoint("RIGHT", "CENTER", 315, "CENTER");
level.zombiesCountDisplay setSafeText("Zombies: " + ZombieCount());


oldZombiesCount = ZombieCount();
while(true)
{
if(oldZombiesCount != ZombieCount())
{
level.zombiesCountDisplay setSafeText("Zombies: " + ZombieCount());
}
wait 0.05;
}
}*/

Help my for code correct this patch......for me nothing appears on screen :disappointed:
 

eazyduzit

New Member
Messages
1
Reaction score
1
Points
1
you could do this in literally 2 lines...

ZombieCount()
{
Zombies=getAIArray("axis");
return Zombies.size;
}

How do I add this to my cnfg file in notepad c++?? I copy and pasted it. I have my own server running anngd then dropped this in under the general settings but no go
 

CabCon

Head Administrator
Staff member
Head Staff Team
Messages
5,092
Reaction score
2,881
Points
1,103
How do I add this to my cnfg file in notepad c++?? I copy and pasted it. I have my own server running anngd then dropped this in under the general settings but no go
I think you can only use that in a gsc file.
 

Nty___

New Member
Messages
1
Reaction score
0
Points
0
I thought it would be useful to have a counter on-screen for showing the amount of currently existing Zombies on the map so I made the script:
Code:
drawZombiesCounter()
{
    level.zombiesCountDisplay = createServerFontString("Objective" , 1.7);
    level.zombiesCountDisplay setPoint("RIGHT", "CENTER", 315, "CENTER");

    thread updateZombiesCounter();
}

updateZombiesCounter()
{
    level endon("stopUpdatingZombiesCounter");

    while(true)
    {
        zombiesCount = get_current_zombie_count();
        level.zombiesCountDisplay setSafeText("Zombies: " + zombiesCount);

        waitForZombieCountChanged("stopUpdatingZombiesCounter");
    }
}

recreateZombiesCounter()
{
    level notify("stopUpdatingZombiesCounter");

    thread updateZombiesCounter();
}

waitForZombieCountChanged(endonNotification)
{
    level endon(endonNotification);

    oldZombiesCount = get_current_zombie_count();

    while(true)
    {
        newZombiesCount = get_current_zombie_count();

        if(oldZombiesCount != newZombiesCount)
        {
            return;
        }

        wait 0.05;
    }
}
Just call
Code:
drawZombiesCounter()
in your init() function.

Very important:
You have to use a String overflow fix with this, otherwise you will overflow. The function you're supposed to execute when the overflow fix occurs is
Code:
recreateZombiesCounter()
I'm also using
Code:
setSafeText()
for setting the text which is an utility function of the overflow fix so make sure it exists for you as well.

Also make sure that you have the following import statement:
Code:
#include maps/mp/zombies/_zm_utility;
It's needed for the get_current_zombie_count() function.

It will look like the following:
to8pjrj9.jpg


Enjoy :grinning:
Hi, how you set the health bar?
 

ThugDuck12

New Member
Messages
1
Reaction score
0
Points
1
#include maps/mp/_utility;
#include common_scripts/utility;
#include maps/mp/zombies/_zm;
#include maps/mp/zombies/_zm_perks;
#include maps/mp/zombies/_zm_utility;
#include maps/mp/gametypes_zm/_hud_util;
#include maps/mp/gametypes_zm/_hud_message;

init()
{
level thread onPlayerConnect();
}

onPlayerConnect()
{
for(;:wink:
{
level waittill("connected", player);
player thread onPlayerSpawned();
}
}

onPlayerSpawned()
{
level endon("end_game");
self endon("disconnect");
self waittill("spawned_player");
self thread health_bar_hud();
}

health_bar_hud()
{
level endon("end_game");
self endon("disconnect");
flag_wait("initial_blackscreen_passed");

health_bar = self createprimaryprogressbar();
if (level.script == "zm_buried")
{
health_bar setpoint(undefined, "BOTTOM", 0, -5);
}
else if (level.script == "zm_tomb")
{
health_bar setpoint(undefined, "BOTTOM", 0, -5);
}
else
{
health_bar setpoint(undefined, "BOTTOM", 0, -5);
}
health_bar.hidewheninmenu = 1;
health_bar.bar.hidewheninmenu = 1;
health_bar.barframe.hidewheninmenu = 1;

health_bar_text = self createprimaryprogressbartext();
if (level.script == "zm_buried")
{
health_bar_text setpoint(undefined, "BOTTOM", -75, -5);
}
else if (level.script == "zm_tomb")
{
health_bar_text setpoint(undefined, "BOTTOM", -75, -5);
}
else
{
health_bar_text setpoint(undefined, "BOTTOM", -75, -5);
}
health_bar_text.hidewheninmenu = 1;

while (1)
{
if (isDefined(self.e_afterlife_corpse))
{
if (health_bar.alpha != 0)
{
health_bar.alpha = 0;
health_bar.bar.alpha = 0;
health_bar.barframe.alpha = 0;
health_bar_text.alpha = 0;
}

wait 0.05;
continue;
}

if (health_bar.alpha != 1)
{
health_bar.alpha = 1;
health_bar.bar.alpha = 1;
health_bar.barframe.alpha = 1;
health_bar_text.alpha = 1;
}

health_bar updatebar(self.health / self.maxhealth);
health_bar_text setvalue(self.health);

wait 0.05;
}
}
 
Last edited:

ItsBlade

New Member
Messages
1
Reaction score
0
Points
1
Hey, I know this is pretty old but is there any chance someone could help me out with this? I receive the following error in my dedicated server when trying to run this script:
******* script link error *******

**** 1 script error(s):
**** Unresolved external : "setsafetext" with 1 parameters in "maps/mp/_imcsx_gsc_studio.gsc" at line 1 ****

*********************************
 

CabCon

Head Administrator
Staff member
Head Staff Team
Messages
5,092
Reaction score
2,881
Points
1,103
Hey, I know this is pretty old but is there any chance someone could help me out with this? I receive the following error in my dedicated server when trying to run this script:
******* script link error *******

**** 1 script error(s):
**** Unresolved external : "setsafetext" with 1 parameters in "maps/mp/_imcsx_gsc_studio.gsc" at line 1 ****

*********************************
Maybe try to replace setSafeText with setText? :smile:
 
Top