Skip to content
  • 0 Unread 0
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Collapse

Plutonium

  1. Home
  2. BO2 Modding Releases & Resources
  3. I have a problem with my .gsc script anyone can help me ?

I have a problem with my .gsc script anyone can help me ?

Scheduled Pinned Locked Moved BO2 Modding Releases & Resources
11 Posts 4 Posters 1.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • [FR]Raf'undefined Offline
    [FR]Raf'undefined Offline
    [FR]Raf'
    wrote on last edited by
    #1

    #include maps/mp/zombies/_zm_weapons;
    #include maps/mp/gametypes_zm/_hud_util;
    #include maps/mp/gametypes_zm/_hud_message;
    #include maps/mp/zombies/_zm_utility;
    #include common_scripts/utility;
    #include maps/mp/_utility;
    #include maps/mp/zombies/_zm_stats;
    #include maps/mp/zombies/_zm_weapons;
    #include maps/mp/zombies/_zm_ai_brutus;
    #include maps/mp/zombies/_zm_stats;
    #include maps/mp/zombies/_zm_audio;
    #include maps/mp/animscripts/zm_death;
    #include maps/mp/zombies/_zm_laststand;
    #include maps/mp/zombies/_zm_score;
    #include maps/mp/zombies/_zm_utility;
    #include maps/mp/_utility;
    #include common_scripts/utility;
    #include maps/mp/zombies/zm_alcatraz_traps;
    #include maps/mp/zombies/_zm_magicbox;
    #include maps/mp/_demo;
    #include maps/mp/zombies/_zm_score;
    #include maps/mp/zombies/_zm_pers_upgrades_functions;
    #include maps/mp/zombies/_zm_audio_announcer;
    #include maps/mp/zombies/_zm_unitrigger;
    #include maps/mp/zombies/_zm_weapons;
    #include maps/mp/zombies/_zm_magicbox_lock;
    #include maps/mp/zombies/_zm;
    init()
    {
    setdvar( "player_strafeSpeedScale", 1 );
    setdvar( "player_backSpeedScale", 1 );
    level thread onplayerconnect();

    }

    onplayerconnect()
    {
    for(;;)
    {
    level waittill( "connecting", player );
    player thread onplayerspawned();
    player thread givepermaperks();
    player thread givebankandfridge();
    level waittill( "initial_players_connected" );
    level.special_weapon_magicbox_check = undefined;
    level.zombie_weapons[ "hamr_zm"].is_in_box = 0;
    level.zombie_weapons[ "type95_zm"].is_in_box = 0;
    level.zombie_weapons[ "galil_zm"].is_in_box = 0;
    level.zombie_weapons[ "fnfal_zm"].is_in_box = 0;
    level.zombie_weapons[ "srm1216_zm"].is_in_box = 0;
    level.zombie_weapons[ "dsr50_zm"].is_in_box = 0;
    level.zombie_weapons[ "kard_zm"].is_in_box = 0;
    level.zombie_weapons[ "python_zm"].is_in_box = 0;
    level.zombie_weapons[ "fivesevendw_zm"].is_in_box = 0;
    level.zombie_weapons[ "m32_zm"].is_in_box = 0;
    level.zombie_weapons[ "mp44_zm"].is_in_box = 0;
    level.zombie_weapons[ "870mcs_zm"].is_in_box = 0;
    level.zombie_weapons[ "ak74u_zm"].is_in_box = 0;
    level.zombie_weapons[ "mp40_zm"].is_in_box = 0;
    level.zombie_weapons[ "ballista_zm"].is_in_box = 0;
    level.zombie_weapons[ "rnma_zm"].is_in_box = 0;
    level.zombie_weapons[ "barretm82_zm"].is_in_box = 0;
    level.zombie_weapons[ "judge_zm"].is_in_box = 0;
    level.zombie_weapons[ "saiga12_zm"].is_in_box = 0;
    level.zombie_weapons[ "tar21_zm"].is_in_box = 0;
    level.zombie_weapons[ "usrpg_zm"].is_in_box = 0;
    level.zombie_weapons[ "knife_ballistic_zm"].is_in_box = 0;
    level.zombie_weapons[ "time_bomb_zm"].is_in_box = 0;
    level.zombie_weapons[ "saritch_zm"].is_in_box = 0;
    level.zombie_weapons[ "slowgun_zm"].is_in_box = 1;
    level.zombie_weapons[ "fiveseven_zm"].is_in_box = 0;
    level.zombie_weapons[ "raygun_mark2_zm"].is_in_box = 1;
    level.zombie_weapons[ "ray_gun_zm"].is_in_box = 0;
    level.zombie_weapons[ "cymbal_monkey_zm"].is_in_box = 1;
    }

    }

    onplayerspawned()
    {
    level endon( "game_ended" );
    self endon( "disconnect" );
    self.initialspawn = 1;
    for(;;)
    {
    self waittill( "spawned_player" );
    if( self.initalspawn )
    {
    self.initialspawn = 0;
    self thread zombie_counter();
    self thread givebankandfridge();
    self thread givepermaperks();
    }
    }

    }

    givepermaperks()
    {
    flag_wait( "initial_blackscreen_passed" );
    permaperks = strtok( "pers_revivenoperk,pers_insta_kill,pers_jugg,pers_sniper_counter,pers_flopper_counter,pers_perk_lose_counter,pers_box_weapon_counter,pers_multikill_headshots", "," );
    i = 0;
    while( i < permaperks.size )
    {
    self increment_client_stat( permaperks[ i], 0 );
    wait 0,25;
    i++;
    }

    }

    givebankandfridge()
    {
    flag_wait( "initial_blackscreen_passed" );
    self set_map_stat( "depositBox", 250, level.banking_map );
    self.account_value = 250000;
    self clear_stored_weapondata();
    self setdstat( "PlayerStatsByMap", "zm_transit", "weaponLocker", "name", "galil_upgraded_zm" );
    self setdstat( "PlayerStatsByMap", "zm_transit", "weaponLocker", "clip", 6 );
    self setdstat( "PlayerStatsByMap", "zm_transit", "weaponLocker", "stock", 48 );

    }

    zombie_counter()
    {
    level endon( "game_ended" );
    self endon( "disconnect" );
    flag_wait( "initial_blackscreen_passed" );
    self.zombiecounter = createfontstring( "Objective", 1,7 );
    self.zombiecounter setpoint( "CENTER", "CENTER", 0, 200 );
    self.zombiecounter.alpha = 1;
    self.zombiecounter.hidewheninmenu = 1;
    self.zombiecounter.hidewhendead = 1;
    self.zombiecounter.label = &"Zombies Left: ^1";
    for(;;)
    {
    if( self.afterlife && IsDefined( self.afterlife ) )
    {
    self.zombiecounter.alpha = 0,2;
    }
    else
    {
    self.zombiecounter.alpha = 1;
    }
    self.zombiecounter setvalue( level.zombie_total + get_current_zombie_count() );
    wait 0,05;
    }

    }

    1 Reply Last reply
    0
    • mxveundefined Offline
      mxveundefined Offline
      mxve
      VIP
      wrote on last edited by
      #2
      1. use the code button when posting code alt text
      2. describe your problem and post any errors you get
      [FR]Raf'undefined 1 Reply Last reply
      0
      • mxveundefined mxve
        1. use the code button when posting code alt text
        2. describe your problem and post any errors you get
        [FR]Raf'undefined Offline
        [FR]Raf'undefined Offline
        [FR]Raf'
        wrote on last edited by
        #3

        I try to put a Zombie counter with permaperks and bank script. But when i try to compile this script it says :"Bad syntax in line 105"Capture d’écran (1799).png
        If anyone has a clue i'll take it

        @mxve #include maps/mp/zombies/_zm_weapons;
        #include maps/mp/gametypes_zm/_hud_util;
        #include maps/mp/gametypes_zm/_hud_message;
        #include maps/mp/zombies/_zm_utility;
        #include common_scripts/utility;
        #include maps/mp/_utility;
        #include maps/mp/zombies/_zm_stats;
        #include maps/mp/zombies/_zm_weapons;
        #include maps/mp/zombies/_zm_ai_brutus;
        #include maps/mp/zombies/_zm_stats;
        #include maps/mp/zombies/_zm_audio;
        #include maps/mp/animscripts/zm_death;
        #include maps/mp/zombies/_zm_laststand;
        #include maps/mp/zombies/_zm_score;
        #include maps/mp/zombies/_zm_utility;
        #include maps/mp/_utility;
        #include common_scripts/utility;
        #include maps/mp/zombies/zm_alcatraz_traps;
        #include maps/mp/zombies/_zm_magicbox;
        #include maps/mp/_demo;
        #include maps/mp/zombies/_zm_score;
        #include maps/mp/zombies/_zm_pers_upgrades_functions;
        #include maps/mp/zombies/_zm_audio_announcer;
        #include maps/mp/zombies/_zm_unitrigger;
        #include maps/mp/zombies/_zm_weapons;
        #include maps/mp/zombies/_zm_magicbox_lock;
        #include maps/mp/zombies/_zm;
        init()
        {
        	setdvar( "player_strafeSpeedScale", 1 );
        	setdvar( "player_backSpeedScale", 1 );
        	level thread onplayerconnect();
        
        }
        
        onplayerconnect()
        {
        	for(;;)
        	{
        	level waittill( "connecting", player );
        	player thread onplayerspawned();
        		player thread givepermaperks();
        		player thread givebankandfridge();
        		level waittill( "initial_players_connected" );
        		level.special_weapon_magicbox_check = undefined;
        		level.zombie_weapons[ "hamr_zm"].is_in_box = 0;
        		level.zombie_weapons[ "type95_zm"].is_in_box = 0;
        		level.zombie_weapons[ "galil_zm"].is_in_box = 0;
        		level.zombie_weapons[ "fnfal_zm"].is_in_box = 0;
        		level.zombie_weapons[ "srm1216_zm"].is_in_box = 0;
        		level.zombie_weapons[ "dsr50_zm"].is_in_box = 0;
        		level.zombie_weapons[ "kard_zm"].is_in_box = 0;
        		level.zombie_weapons[ "python_zm"].is_in_box = 0;
        		level.zombie_weapons[ "fivesevendw_zm"].is_in_box = 0;
        		level.zombie_weapons[ "m32_zm"].is_in_box = 0;
        		level.zombie_weapons[ "mp44_zm"].is_in_box = 0;
        		level.zombie_weapons[ "870mcs_zm"].is_in_box = 0;
        		level.zombie_weapons[ "ak74u_zm"].is_in_box = 0;
        		level.zombie_weapons[ "mp40_zm"].is_in_box = 0;
        		level.zombie_weapons[ "ballista_zm"].is_in_box = 0;
        		level.zombie_weapons[ "rnma_zm"].is_in_box = 0;
        		level.zombie_weapons[ "barretm82_zm"].is_in_box = 0;
        		level.zombie_weapons[ "judge_zm"].is_in_box = 0;
        		level.zombie_weapons[ "saiga12_zm"].is_in_box = 0;
        		level.zombie_weapons[ "tar21_zm"].is_in_box = 0;
        		level.zombie_weapons[ "usrpg_zm"].is_in_box = 0;
        		level.zombie_weapons[ "knife_ballistic_zm"].is_in_box = 0;
        		level.zombie_weapons[ "time_bomb_zm"].is_in_box = 0;
        		level.zombie_weapons[ "saritch_zm"].is_in_box = 0;
        		level.zombie_weapons[ "slowgun_zm"].is_in_box = 1;
        		level.zombie_weapons[ "fiveseven_zm"].is_in_box = 0;
        		level.zombie_weapons[ "raygun_mark2_zm"].is_in_box = 1;
        		level.zombie_weapons[ "ray_gun_zm"].is_in_box = 0;
        		level.zombie_weapons[ "cymbal_monkey_zm"].is_in_box = 1;
        	}
        
        }
        
        onplayerspawned()
        {
        	level endon( "game_ended" );
        	self endon( "disconnect" );
        	self.initialspawn = 1;
        	for(;;)
        	{
        	self waittill( "spawned_player" );
        	if( self.initalspawn )
        	{
        		self.initialspawn = 0;
        		self thread zombie_counter();
        		self thread givebankandfridge();
        		self thread givepermaperks();
        	}
        	}
        
        }
        
        givepermaperks()
        {
        	flag_wait( "initial_blackscreen_passed" );
        	permaperks = strtok( "pers_revivenoperk,pers_insta_kill,pers_jugg,pers_sniper_counter,pers_flopper_counter,pers_perk_lose_counter,pers_box_weapon_counter,pers_multikill_headshots", "," );
        	i = 0;
        	while( i < permaperks.size )
        	{
        		self increment_client_stat( permaperks[ i], 0 );
        		wait 0,25;
        		i++;
        	}
        
        }
        
        givebankandfridge()
        {
        	flag_wait( "initial_blackscreen_passed" );
        	self set_map_stat( "depositBox", 250, level.banking_map );
        	self.account_value = 250000;
        	self clear_stored_weapondata();
        	self setdstat( "PlayerStatsByMap", "zm_transit", "weaponLocker", "name", "galil_upgraded_zm" );
        	self setdstat( "PlayerStatsByMap", "zm_transit", "weaponLocker", "clip", 6 );
        	self setdstat( "PlayerStatsByMap", "zm_transit", "weaponLocker", "stock", 48 );
        
        }
        
        zombie_counter()
        {
        	level endon( "game_ended" );
        	self endon( "disconnect" );
        	flag_wait( "initial_blackscreen_passed" );
        	self.zombiecounter = createfontstring( "Objective", 1,7 );
        	self.zombiecounter setpoint( "CENTER", "CENTER", 0, 200 );
        	self.zombiecounter.alpha = 1;
        	self.zombiecounter.hidewheninmenu = 1;
        	self.zombiecounter.hidewhendead = 1;
        	self.zombiecounter.label = &"Zombies Left: ^1";
        	for(;;)
        	{
        	if( self.afterlife && IsDefined( self.afterlife ) )
        	{
        		self.zombiecounter.alpha = 0,2;
        	}
        	else
        	{
        		self.zombiecounter.alpha = 1;
        	}
        	self.zombiecounter setvalue( level.zombie_total + get_current_zombie_count() );
        	wait 0,05;
        	}
        
        }
        
        Resxtundefined 1 Reply Last reply
        0
        • [FR]Raf'undefined [FR]Raf'

          I try to put a Zombie counter with permaperks and bank script. But when i try to compile this script it says :"Bad syntax in line 105"Capture d’écran (1799).png
          If anyone has a clue i'll take it

          @mxve #include maps/mp/zombies/_zm_weapons;
          #include maps/mp/gametypes_zm/_hud_util;
          #include maps/mp/gametypes_zm/_hud_message;
          #include maps/mp/zombies/_zm_utility;
          #include common_scripts/utility;
          #include maps/mp/_utility;
          #include maps/mp/zombies/_zm_stats;
          #include maps/mp/zombies/_zm_weapons;
          #include maps/mp/zombies/_zm_ai_brutus;
          #include maps/mp/zombies/_zm_stats;
          #include maps/mp/zombies/_zm_audio;
          #include maps/mp/animscripts/zm_death;
          #include maps/mp/zombies/_zm_laststand;
          #include maps/mp/zombies/_zm_score;
          #include maps/mp/zombies/_zm_utility;
          #include maps/mp/_utility;
          #include common_scripts/utility;
          #include maps/mp/zombies/zm_alcatraz_traps;
          #include maps/mp/zombies/_zm_magicbox;
          #include maps/mp/_demo;
          #include maps/mp/zombies/_zm_score;
          #include maps/mp/zombies/_zm_pers_upgrades_functions;
          #include maps/mp/zombies/_zm_audio_announcer;
          #include maps/mp/zombies/_zm_unitrigger;
          #include maps/mp/zombies/_zm_weapons;
          #include maps/mp/zombies/_zm_magicbox_lock;
          #include maps/mp/zombies/_zm;
          init()
          {
          	setdvar( "player_strafeSpeedScale", 1 );
          	setdvar( "player_backSpeedScale", 1 );
          	level thread onplayerconnect();
          
          }
          
          onplayerconnect()
          {
          	for(;;)
          	{
          	level waittill( "connecting", player );
          	player thread onplayerspawned();
          		player thread givepermaperks();
          		player thread givebankandfridge();
          		level waittill( "initial_players_connected" );
          		level.special_weapon_magicbox_check = undefined;
          		level.zombie_weapons[ "hamr_zm"].is_in_box = 0;
          		level.zombie_weapons[ "type95_zm"].is_in_box = 0;
          		level.zombie_weapons[ "galil_zm"].is_in_box = 0;
          		level.zombie_weapons[ "fnfal_zm"].is_in_box = 0;
          		level.zombie_weapons[ "srm1216_zm"].is_in_box = 0;
          		level.zombie_weapons[ "dsr50_zm"].is_in_box = 0;
          		level.zombie_weapons[ "kard_zm"].is_in_box = 0;
          		level.zombie_weapons[ "python_zm"].is_in_box = 0;
          		level.zombie_weapons[ "fivesevendw_zm"].is_in_box = 0;
          		level.zombie_weapons[ "m32_zm"].is_in_box = 0;
          		level.zombie_weapons[ "mp44_zm"].is_in_box = 0;
          		level.zombie_weapons[ "870mcs_zm"].is_in_box = 0;
          		level.zombie_weapons[ "ak74u_zm"].is_in_box = 0;
          		level.zombie_weapons[ "mp40_zm"].is_in_box = 0;
          		level.zombie_weapons[ "ballista_zm"].is_in_box = 0;
          		level.zombie_weapons[ "rnma_zm"].is_in_box = 0;
          		level.zombie_weapons[ "barretm82_zm"].is_in_box = 0;
          		level.zombie_weapons[ "judge_zm"].is_in_box = 0;
          		level.zombie_weapons[ "saiga12_zm"].is_in_box = 0;
          		level.zombie_weapons[ "tar21_zm"].is_in_box = 0;
          		level.zombie_weapons[ "usrpg_zm"].is_in_box = 0;
          		level.zombie_weapons[ "knife_ballistic_zm"].is_in_box = 0;
          		level.zombie_weapons[ "time_bomb_zm"].is_in_box = 0;
          		level.zombie_weapons[ "saritch_zm"].is_in_box = 0;
          		level.zombie_weapons[ "slowgun_zm"].is_in_box = 1;
          		level.zombie_weapons[ "fiveseven_zm"].is_in_box = 0;
          		level.zombie_weapons[ "raygun_mark2_zm"].is_in_box = 1;
          		level.zombie_weapons[ "ray_gun_zm"].is_in_box = 0;
          		level.zombie_weapons[ "cymbal_monkey_zm"].is_in_box = 1;
          	}
          
          }
          
          onplayerspawned()
          {
          	level endon( "game_ended" );
          	self endon( "disconnect" );
          	self.initialspawn = 1;
          	for(;;)
          	{
          	self waittill( "spawned_player" );
          	if( self.initalspawn )
          	{
          		self.initialspawn = 0;
          		self thread zombie_counter();
          		self thread givebankandfridge();
          		self thread givepermaperks();
          	}
          	}
          
          }
          
          givepermaperks()
          {
          	flag_wait( "initial_blackscreen_passed" );
          	permaperks = strtok( "pers_revivenoperk,pers_insta_kill,pers_jugg,pers_sniper_counter,pers_flopper_counter,pers_perk_lose_counter,pers_box_weapon_counter,pers_multikill_headshots", "," );
          	i = 0;
          	while( i < permaperks.size )
          	{
          		self increment_client_stat( permaperks[ i], 0 );
          		wait 0,25;
          		i++;
          	}
          
          }
          
          givebankandfridge()
          {
          	flag_wait( "initial_blackscreen_passed" );
          	self set_map_stat( "depositBox", 250, level.banking_map );
          	self.account_value = 250000;
          	self clear_stored_weapondata();
          	self setdstat( "PlayerStatsByMap", "zm_transit", "weaponLocker", "name", "galil_upgraded_zm" );
          	self setdstat( "PlayerStatsByMap", "zm_transit", "weaponLocker", "clip", 6 );
          	self setdstat( "PlayerStatsByMap", "zm_transit", "weaponLocker", "stock", 48 );
          
          }
          
          zombie_counter()
          {
          	level endon( "game_ended" );
          	self endon( "disconnect" );
          	flag_wait( "initial_blackscreen_passed" );
          	self.zombiecounter = createfontstring( "Objective", 1,7 );
          	self.zombiecounter setpoint( "CENTER", "CENTER", 0, 200 );
          	self.zombiecounter.alpha = 1;
          	self.zombiecounter.hidewheninmenu = 1;
          	self.zombiecounter.hidewhendead = 1;
          	self.zombiecounter.label = &"Zombies Left: ^1";
          	for(;;)
          	{
          	if( self.afterlife && IsDefined( self.afterlife ) )
          	{
          		self.zombiecounter.alpha = 0,2;
          	}
          	else
          	{
          		self.zombiecounter.alpha = 1;
          	}
          	self.zombiecounter setvalue( level.zombie_total + get_current_zombie_count() );
          	wait 0,05;
          	}
          
          }
          
          Resxtundefined Offline
          Resxtundefined Offline
          Resxt
          Plutonium Staff
          wrote on last edited by
          #4

          [FR]Raf' I might be completely wrong but try changing wait 0,25 to wait 0.25

          [FR]Raf'undefined 1 Reply Last reply
          0
          • Resxtundefined Resxt

            [FR]Raf' I might be completely wrong but try changing wait 0,25 to wait 0.25

            [FR]Raf'undefined Offline
            [FR]Raf'undefined Offline
            [FR]Raf'
            wrote on last edited by
            #5

            Resxt Capture d’écran (1802).png After changing this is what happened 😞

            Kalitosundefined 1 Reply Last reply
            0
            • [FR]Raf'undefined [FR]Raf'

              Resxt Capture d’écran (1802).png After changing this is what happened 😞

              Kalitosundefined Offline
              Kalitosundefined Offline
              Kalitos
              wrote on last edited by
              #6

              [FR]Raf' It is the same, the decimal numbers do not go with "," they are with ".". Fix all issues

              [FR]Raf'undefined 1 Reply Last reply
              0
              • Kalitosundefined Kalitos

                [FR]Raf' It is the same, the decimal numbers do not go with "," they are with ".". Fix all issues

                [FR]Raf'undefined Offline
                [FR]Raf'undefined Offline
                [FR]Raf'
                wrote on last edited by [FR]Raf'
                #7

                Kalitos So when i compile the file, it works but when i launch T6 and go in a map this message appearsCapture d’écran (1804).png "jojal" is the name of the file

                Kalitosundefined 1 Reply Last reply
                0
                • [FR]Raf'undefined [FR]Raf'

                  Kalitos So when i compile the file, it works but when i launch T6 and go in a map this message appearsCapture d’écran (1804).png "jojal" is the name of the file

                  Kalitosundefined Offline
                  Kalitosundefined Offline
                  Kalitos
                  wrote on last edited by
                  #8

                  [FR]Raf' Put your corrected script here.

                  [FR]Raf'undefined 1 Reply Last reply
                  0
                  • Kalitosundefined Kalitos

                    [FR]Raf' Put your corrected script here.

                    [FR]Raf'undefined Offline
                    [FR]Raf'undefined Offline
                    [FR]Raf'
                    wrote on last edited by
                    #9

                    Kalitos ```

                    #include maps/mp/gametypes_zm/_hud_util;
                    #include maps/mp/gametypes_zm/_hud_message;
                    #include maps/mp/zombies/_zm_utility;
                    #include common_scripts/utility;
                    #include maps/mp/_utility;
                    #include maps/mp/zombies/_zm_stats;
                    #include maps/mp/zombies/_zm_weapons;
                    #include maps/mp/zombies/_zm_ai_brutus;
                    #include maps/mp/zombies/_zm_stats;
                    #include maps/mp/zombies/_zm_audio;
                    #include maps/mp/animscripts/zm_death;
                    #include maps/mp/zombies/_zm_laststand;
                    #include maps/mp/zombies/_zm_score;
                    #include maps/mp/zombies/_zm_utility;
                    #include maps/mp/_utility;
                    #include common_scripts/utility;
                    #include maps/mp/zombies/zm_alcatraz_traps;
                    #include maps/mp/zombies/_zm_magicbox;
                    #include maps/mp/_demo;
                    #include maps/mp/zombies/_zm_score;
                    #include maps/mp/zombies/_zm_pers_upgrades_functions;
                    #include maps/mp/zombies/_zm_audio_announcer;
                    #include maps/mp/zombies/_zm_unitrigger;
                    #include maps/mp/zombies/_zm_weapons;
                    #include maps/mp/zombies/_zm_magicbox_lock;
                    #include maps/mp/zombies/_zm;
                    init()
                    {
                    	setdvar( "player_strafeSpeedScale", 1 );
                    	setdvar( "player_backSpeedScale", 1 );
                    	level thread onplayerconnect();
                    
                    }
                    
                    onplayerconnect()
                    {
                    	for(;;)
                    	{
                    	level waittill( "connecting", player );
                    	player thread onplayerspawned();
                    		player thread givepermaperks();
                    		player thread givebankandfridge();
                    		level waittill( "initial_players_connected" );
                    		level.special_weapon_magicbox_check = undefined;
                    		level.zombie_weapons[ "hamr_zm"].is_in_box = 0;
                    		level.zombie_weapons[ "type95_zm"].is_in_box = 0;
                    		level.zombie_weapons[ "galil_zm"].is_in_box = 0;
                    		level.zombie_weapons[ "fnfal_zm"].is_in_box = 0;
                    		level.zombie_weapons[ "srm1216_zm"].is_in_box = 0;
                    		level.zombie_weapons[ "dsr50_zm"].is_in_box = 0;
                    		level.zombie_weapons[ "kard_zm"].is_in_box = 0;
                    		level.zombie_weapons[ "python_zm"].is_in_box = 0;
                    		level.zombie_weapons[ "fivesevendw_zm"].is_in_box = 0;
                    		level.zombie_weapons[ "m32_zm"].is_in_box = 0;
                    		level.zombie_weapons[ "mp44_zm"].is_in_box = 0;
                    		level.zombie_weapons[ "870mcs_zm"].is_in_box = 0;
                    		level.zombie_weapons[ "ak74u_zm"].is_in_box = 0;
                    		level.zombie_weapons[ "mp40_zm"].is_in_box = 0;
                    		level.zombie_weapons[ "ballista_zm"].is_in_box = 0;
                    		level.zombie_weapons[ "rnma_zm"].is_in_box = 0;
                    		level.zombie_weapons[ "barretm82_zm"].is_in_box = 0;
                    		level.zombie_weapons[ "judge_zm"].is_in_box = 0;
                    		level.zombie_weapons[ "saiga12_zm"].is_in_box = 0;
                    		level.zombie_weapons[ "tar21_zm"].is_in_box = 0;
                    		level.zombie_weapons[ "usrpg_zm"].is_in_box = 0;
                    		level.zombie_weapons[ "knife_ballistic_zm"].is_in_box = 0;
                    		level.zombie_weapons[ "time_bomb_zm"].is_in_box = 0;
                    		level.zombie_weapons[ "saritch_zm"].is_in_box = 0;
                    		level.zombie_weapons[ "slowgun_zm"].is_in_box = 1;
                    		level.zombie_weapons[ "fiveseven_zm"].is_in_box = 0;
                    		level.zombie_weapons[ "raygun_mark2_zm"].is_in_box = 1;
                    		level.zombie_weapons[ "ray_gun_zm"].is_in_box = 0;
                    		level.zombie_weapons[ "cymbal_monkey_zm"].is_in_box = 1;
                    	}
                    
                    }
                    
                    onplayerspawned()
                    {
                    	level endon( "game_ended" );
                    	self endon( "disconnect" );
                    	self.initialspawn = 1;
                    	for(;;)
                    	{
                    	self waittill( "spawned_player" );
                    	if( self.initalspawn )
                    	{
                    		self.initialspawn = 0;
                    		self thread zombie_counter();
                    		self thread givebankandfridge();
                    		self thread givepermaperks();
                    	}
                    	}
                    
                    }
                    
                    givepermaperks()
                    {
                    	flag_wait( "initial_blackscreen_passed" );
                    	permaperks = strtok( "pers_revivenoperk,pers_insta_kill,pers_jugg,pers_sniper_counter,pers_flopper_counter,pers_perk_lose_counter,pers_box_weapon_counter,pers_multikill_headshots", "," );
                    	i = 0;
                    	while( i < permaperks.size )
                    	{
                    		self increment_client_stat( permaperks[ i], 0 );
                    		wait 0.25;
                    		i++;
                    	}
                    
                    }
                    
                    givebankandfridge()
                    {
                    	flag_wait( "initial_blackscreen_passed" );
                    	self set_map_stat( "depositBox", 250, level.banking_map );
                    	self.account_value = 250000;
                    	self clear_stored_weapondata();
                    	self setdstat( "PlayerStatsByMap", "zm_transit", "weaponLocker", "name", "galil_upgraded_zm" );
                    	self setdstat( "PlayerStatsByMap", "zm_transit", "weaponLocker", "clip", 6 );
                    	self setdstat( "PlayerStatsByMap", "zm_transit", "weaponLocker", "stock", 48 );
                    
                    }
                    
                    zombie_counter()
                    {
                    	level endon( "game_ended" );
                    	self endon( "disconnect" );
                    	flag_wait( "initial_blackscreen_passed" );
                    	self.zombiecounter = createfontstring( "Objective", 1,7 );
                    	self.zombiecounter setpoint( "CENTER", "CENTER", 0, 200 );
                    	self.zombiecounter.alpha = 1;
                    	self.zombiecounter.hidewheninmenu = 1;
                    	self.zombiecounter.hidewhendead = 1;
                    	self.zombiecounter.label = &"Zombies Left: ^1";
                    	for(;;)
                    	{
                    	if( self.afterlife && IsDefined( self.afterlife ) )
                    	{
                    		self.zombiecounter.alpha = 0.2;
                    	}
                    	else
                    	{
                    		self.zombiecounter.alpha = 1;
                    	}
                    	self.zombiecounter setvalue( level.zombie_total + get_current_zombie_count() );
                    	wait 0.05;
                    	}
                    
                    }
                    1 Reply Last reply
                    0
                    • Kalitosundefined Offline
                      Kalitosundefined Offline
                      Kalitos
                      wrote on last edited by
                      #10

                      1c7e9377-58fe-4dd4-9243-68bdec6cf45d-image.png
                      Correct.

                      self.zombiecounter = createfontstring( "Objective", 1.7 );
                      
                      
                      [FR]Raf'undefined 1 Reply Last reply
                      0
                      • Kalitosundefined Kalitos

                        1c7e9377-58fe-4dd4-9243-68bdec6cf45d-image.png
                        Correct.

                        self.zombiecounter = createfontstring( "Objective", 1.7 );
                        
                        
                        [FR]Raf'undefined Offline
                        [FR]Raf'undefined Offline
                        [FR]Raf'
                        wrote on last edited by
                        #11

                        Kalitos Oh yeah thanks I have not see him, it works now, thank you 😉

                        1 Reply Last reply
                        0

                        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                        With your input, this post could be even better 💗

                        Register Login
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Unread 0
                        • Recent
                        • Tags
                        • Popular
                        • Users
                        • Groups