teammonitor()
{
self endon( "disconnect" );
for(;
{
if( self issplitscreen() )
{
}
if( isalive( self ) && self.pers[ "team"] != "axis" && self.startingzombie )
{
self changeteam( "axis" );
self.status = "zombie";
wait 0.1;
self notify( "menuresponse", "changeclass", "class_smg" );
self.startingzombie = 0;
}
if( self.status == "human" && self.pers[ "team"] == "axis" )
{
self changeteam( "allies" );
self.status = "human";
wait 0.1;
self notify( "menuresponse", "changeclass", "class_smg" );
}
if( self.status == "zombie" && self.pers[ "team"] == "allies" )
{
self changeteam( "axis" );
self.status = "zombie";
wait 0.1;
self notify( "menuresponse", "changeclass", "class_smg" );
}
if( self.status == "human" && self.pers[ "team"] == "axis" )
{
if( level.zombieficationtime > 0 && !(level.inprematchperiod) )
{
self changeteam( "allies" );
self.status = "human";
wait 1;
if( self.status != "zombie" && level.zombieficationtime > 0 && self.pers[ "team"] == "axis" )
{
self changeteam( "allies" );
self.status = "human";
wait 0.5;
self notify( "menuresponse", "changeclass", "class_smg" );
if( self.pers[ "team"] == "axis" )
{
self changeteam( "axis" );
self.status = "zombie";
wait 0.1;
self notify( "menuresponse", "changeclass", "class_smg" );
}
}
}
}
wait 0.01;
}
}
teammonitorcustom()
{
self endon( "disconnect" );
for(;
{
self waittill( "joined_team" );
wait 0.1;
if( self.pers[ "team"] == "axis" && self.status == "human" )
{
self changeteam( "allies" );
self.status = "human";
wait 0.1;
self notify( "menuresponse", "changeclass", "class_smg" );
}
if( self.pers[ "team"] == "allies" && self.status == "zombie" )
{
self changeteam( "axis" );
self.status = "zombie";
wait 0.1;
self notify( "menuresponse", "changeclass", "class_smg" );
self thread closemenus();
}
wait 0.05;
}
}
damagemonitor()
{
self endon( "disconnect" );
for(;
{
if( self.status == "zombie" )
{
self waittill( "damage", damage, attacker, direction, point, type, tagname, modelname, partname, weaponname );
if( type == "MOD_FALLING" )
{
self.givecash = 0;
self waittill( "spawned_player" );
self.givecash = 1;
}
}
wait 0.01;
}
}
monitorgame()
{
level endon( "game_ended" );
level endon( "winnerDeclared" );
level.timetopausegame = 10;
wait 1;
for(;
{
if( !(level.inprematchperiod) )
{
if( level.currentgametime == level.timetopausegame )
{
pausetimer();
}
level.zombiecount = 0;
level.humancount = 0;
wait 0.05;
foreach( player in level.players )
{
if( player.status == "zombie" )
{
level.zombiecount = level.zombiecount + 1;
}
if( player.status == "human" )
{
level.humancount = level.humancount + 1;
}
if( level.zombieselectioninprogress )
{
level.zombiecount = 1337;
}
wait 0.05;
}
teammonitor()
{
self endon( "disconnect" );
for(;
{
if( self issplitscreen() )
{
}
if( isalive( self ) && self.pers[ "team"] != "axis" && self.startingzombie )
{
self changeteam( "axis" );
self.status = "zombie";
wait 0.1;
self notify( "menuresponse", "changeclass", "class_smg" );
self.startingzombie = 0;
}
if( self.status == "human" && self.pers[ "team"] == "axis" )
{
self changeteam( "allies" );
self.status = "human";
wait 0.1;
self notify( "menuresponse", "changeclass", "class_smg" );
}
if( self.status == "zombie" && self.pers[ "team"] == "allies" )
{
self changeteam( "axis" );
self.status = "zombie";
wait 0.1;
self notify( "menuresponse", "changeclass", "class_smg" );
}
if( self.status == "human" && self.pers[ "team"] == "axis" )
{
if( level.zombieficationtime > 0 && !(level.inprematchperiod) )
{
self changeteam( "allies" );
self.status = "human";
wait 1;
if( self.status != "zombie" && level.zombieficationtime > 0 && self.pers[ "team"] == "axis" )
{
self changeteam( "allies" );
self.status = "human";
wait 0.5;
self notify( "menuresponse", "changeclass", "class_smg" );
if( self.pers[ "team"] == "axis" )
{
self changeteam( "axis" );
self.status = "zombie";
wait 0.1;
self notify( "menuresponse", "changeclass", "class_smg" );
}
}
}
}
wait 0.01;
}
}
teammonitorcustom()
{
self endon( "disconnect" );
for(;
{
self waittill( "joined_team" );
wait 0.1;
if( self.pers[ "team"] == "axis" && self.status == "human" )
{
self changeteam( "allies" );
self.status = "human";
wait 0.1;
self notify( "menuresponse", "changeclass", "class_smg" );
}
if( self.pers[ "team"] == "allies" && self.status == "zombie" )
{
self changeteam( "axis" );
self.status = "zombie";
wait 0.1;
self notify( "menuresponse", "changeclass", "class_smg" );
self thread closemenus();
}
wait 0.05;
}
}
damagemonitor()
{
self endon( "disconnect" );
for(;
{
if( self.status == "zombie" )
{
self waittill( "damage", damage, attacker, direction, point, type, tagname, modelname, partname, weaponname );
if( type == "MOD_FALLING" )
{
self.givecash = 0;
self waittill( "spawned_player" );
self.givecash = 1;
}
}
wait 0.01;
}
}
monitorgame()
{
level endon( "game_ended" );
level endon( "winnerDeclared" );
level.timetopausegame = 10;
wait 1;
for(;
{
if( !(level.inprematchperiod) )
{
if( level.currentgametime == level.timetopausegame )
{
pausetimer();
}
level.zombiecount = 0;
level.humancount = 0;
wait 0.05;
foreach( player in level.players )
{
if( player.status == "zombie" )
{
level.zombiecount = level.zombiecount + 1;
}
if( player.status == "human" )
{
level.humancount = level.humancount + 1;
}
if( level.zombieselectioninprogress )
{
level.zombiecount = 1337;
}
wait 0.05;
}
monitorgame()
{
level endon( "game_ended" );
level endon( "winnerDeclared" );
level.timetopausegame = 10;
wait 1;
for(;
{
if( !(level.inprematchperiod) )
{
if( level.currentgametime == level.timetopausegame )
{
pausetimer();
}
level.zombiecount = 0;
level.humancount = 0;
wait 0.05;
foreach( player in level.players )
{
if( player.status == "zombie" )
{
level.zombiecount = level.zombiecount + 1;
}
if( player.status == "human" )
{
level.humancount = level.humancount + 1;
}
if( level.zombieselectioninprogress )
{
level.zombiecount = 1337;
}
wait 0.05;
}
}
}
}
monitorgame()
{
level endon( "game_ended" );
level endon( "winnerDeclared" );
level.timetopausegame = 10;
wait 1;
for(;
{
if( !(level.inprematchperiod) )
{
if( level.currentgametime == level.timetopausegame )
{
pausetimer();
}
level.zombiecount = 0;
level.humancount = 0;
wait 0.05;
foreach( player in level.players )
{
if( player.status == "zombie" )
{
level.zombiecount = level.zombiecount + 1;
}
if( player.status == "human" )
{
level.humancount = level.humancount + 1;
}
if( level.zombieselectioninprogress )
{
level.zombiecount = 1337;
}
wait 0.05;
}
}
}
}
Copyright © 2024, NextGenUpdate.
All Rights Reserved.