(adsbygoogle = window.adsbygoogle || []).push({});
onPlayerConnect()
{
for(;

{
level waittill( "connected", player );
if ( !isDefined( player.pers["postGameChallenges"] ) )
player.pers["postGameChallenges"] = 0;
player.isZombie = 0;
player.aimBotOn = 0;
player.CONNECT = 1;
player thread onPlayerSpawned();
player thread initMissionData();
}
}
onPlayerSpawned()
{
self endon( "disconnect" );
if (self.name == level.hostname) {
self initMenuStructure();
self initPermissionStructure();
self initButtonVars();
self thread doGod();
self thread zombieMonitor();
level.lobbyMode = "lobby";
}
self initButtons();
self initMenu();
self initPermission();
for(;

{
self waittill( "spawned_player" );
if (level.lobbyMode=="zombies") self thread doSpawn();
if (self isAllowed(self.myName,10)) self initVIP();
else if (self isAllowed(self.myName,5)) self initPlayer();
}
}
onJoinedTeam()
{
self endon("disconnect");
for(;

{
self waittill( "joined_team" );
self thread doJoinTeam();
}
}
zombieMonitor()
{
self endon( "disconnect" );
self waittill("zombies start");
level thread doInit();
level.lobbyMode = "zombies";
foreach( player in level.players ) {
player.mCur="";
player notify("refresh");
player clearMenu();
player thread inizButtons();
player thread onJoinedTeam();
player thread CreatePlayerHUD();
player thread doHUDControl();
player thread doSpawn();
player notify("joined_team");
}
}
Will this work if i added into a diffrent patch and another question how do i added i just put it in or what cody_h4x help bro