[ZM] BOOST for players joining after round 6

Topic created · 2 Posts · 322 Views
  • this script gives the player 150hp and the upgraded FIVE-SEVEN DUAL weapon and 3000 points.

    #include maps\mp\_utility;
    #include common_scripts\utility;
    #include maps\mp\gametypes_zm\_hud_util;
    #include maps\mp\gametypes_zm\_hud_message;
    #include maps/mp/zombies/_zm;
    #include maps/mp/zombies/_zm_weapons;
    #include maps/mp/zombies/_zm_stats;
    
    init()
    {
        for(;;)
        {
            level waittill("connected", player);
            player thread uwu();
        }
    }
    
    uwu()
    {
      if ( level.round_number > 6 )
        {   
    		self waittill("spawned_player");
    	    self thread AnimatedTextCUSTOMPOS(" ^5BOOSTED ^3GOOD ^5LUCK", 0, 0);
    		self.maxhealth=150;
            self.health=self.maxhealth;
            self giveweapon( "fivesevendw_upgraded_zm" );
    		self switchtoweapon( "fivesevendw_upgraded_zm" );
    		if(self.score < 3000)
    		{
    	    self.score = 3000;
    		}
    	}
     }
    	  
        
    
    AnimatedTextCUSTOMPOS(text, x, y){ //Made by DoktorSAS
    	level endon( "end_game" );
        self endon( "disconnect" );
    	textSubStr = getSubStr(text,0,text.size);
    	result = "";
    	self.text = self createFontString("hudsmall",1.9);
    	self.text setPoint("CENTER","CENTER",x, y);
    	self.text setText("");	
    	for(i=0;i<textSubStr.size;i++){
    		color = textSubStr[i]+textSubStr[i+1];
    		if(color == "^1" || color == "^2" || color == "^3" || color == "^4" || color == "^5" || color == "^6" || color == "^7" || color == "^8" || color == "^0" || color == "\n"){
    			result = result + color;
    			i++;
    		}else
    			result = result + textSubStr[i];
    		if(i == textSubStr.size){
    			self.text setText(text);
    		}else{
    			self.text setText(result);
    			wait 0.05;
    			self.text setText(result + "^7_");
    		}
    		wait 0.08;
    	}
    	wait 2;
    	self.text setText("");
    }
    

    screenshots:
    Sin título.png 1.png

  • this is pretty cool, you can use weapon_give instead of give_weapon and you won't need switch to weapon, also you dont need the check for the player score since you're using = it will set the flat score instead of + or -, it's not needed but save like 4 lines in uwu. weapon_give( <item>, <upgraded?>, <box just put undefined>, <sound also just do true> ). you can also change the size of the weapon stock and clip
    setweaponammoclip( <weap>, weaponclipsize( <weap> ) );
    setweaponammostock( <weap>, weaponmaxammo( <weap> ) );
    oh another thing that would be pretty cool is add bool for players spawned on round 6 and loop it and throw all kinds of attributes in there

Log in to reply