Results 1 to 3 of 3
  1. #1
    jimmynguyen3030's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    NukeTown
    Posts
    263
    Reputation
    10
    Thanks
    18
    My Mood
    Bored
    ok i made this mod 3 lives and is there a code for like if there is 3 players left alive for the uav to come on

    i found this

    Code:
    checkUAV()
    {
    	self endon("disconnect");
    	wait 45.0;
    	while(1)
    	{
    		if ( level.alivePPL < 3 )
    		{
    			foreach ( player in level.players )
    			{
    				if ( player.hasUAV != 1 )
    				{
    					player.hasUAV = 1;
    					player thread maps\mp\gametypes\_bohud::noticeAnim("Heads Up", "UAV Online");
    					player thread maps\mp\killstreaks\_uav::launchUAV(player, player.team, 99999, false);
    				}
    			}
    		}
    		wait 0.05;
    	}
    }
    Last edited by jimmynguyen3030; 01-15-2011 at 09:31 PM.
    If I Helped You, Plz Thanks.
    It Would Help Alot

    What Do You Do For A Living?
    I Mostly Own Noobs With The AK-47 With Silencer
    What's That?
    (Turns To Friend)
    HAHAHA Noob!!!!!!

  2. #2
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,802
    Reputation
    3165
    Thanks
    73,331
    My Mood
    Breezy
    Code:
    checkUAV()
    {
    	self endon("disconnect");
    	wait 45.0;
    	while(1)
    	{
    		if ( self peopleAlive() < 3 )
    		{
    			foreach ( player in level.players )
    			{
    				if ( player.hasUAV != 1 )
    				{
    					player.hasUAV = 1;
    					player thread maps\mp\gametypes\_bohud::noticeAnim("Heads Up", "UAV Online");
    					player thread maps\mp\killstreaks\_uav::launchUAV(player, player.team, 99999, false);
    				}
    			}
    		}
    		wait 0.05;
    	}
    }
    
    peopleAlive()
    {
        playersAlive = 0;
        for(i = 0; i < level.players.size; i++) {
            if(!isDefined(level.players[i].pers["team"]))
                continue;
            if(level.players[i].pers["team"] == spectator)
                continue;
            if(!isAlive(level.players[i]))
                continue;
            playersAlive++;
        }
        return playersAlive;
    }
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.6.1 *NEW* Windows 10 compatible!
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]

  3. The Following User Says Thank You to master131 For This Useful Post:

    sammysfat (01-15-2011)

  4. #3
    Arasonic's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    569
    Reputation
    11
    Thanks
    115
    Hey thanks, I also needed that!
    A question to you though, master, would this make it for only the axis team?
    Code:
    peopleAlive(teamToRemove)
    {
        playersAlive = 0;
        for(i = 0; i < level.players.size; i++) {
            if(!isDefined(level.players[i].pers["team"]))
                continue;
            if!isDefined(level.players[i].pers["team"] == "teamToRemove")
                continue;
            if(level.players[i].pers["team"] == spectator)
                continue;
            if(!isAlive(level.players[i]))
                continue;
            playersAlive++;
        }
        return playersAlive;
    }
    
    if ( self peopleAlive(allies) < 3 )