Post: Black Ops 2 29 Kills Code And +1 Kill FFa Code
09-24-2016, 07:35 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); I Have Been Looking For This For A While Untill My Friend Coded This For Me So ,

Here It Is :
//Made By ShadyMods & AlexiBuscus
self add_Option("^5Player Options-->^7" + i, "(^2 +1 kiLL^7)", ::GiveFFAone, player);
self add_Option("^5Player Options-->^7" + i, "(^1 -1 kiLL^7)", ::Takeoffplayerffa, player);
* * * * self add_Option("^5Player Options-->^7" + i, "(^2Instant Last^7)", ::GiveFFALast, player);
* *self add_Option("^5Player Options-->^7" + i, "(^1Reset Kills^7)", ::ResetFFAkils, player);


* * self add_menu("FFA Menu", "Main Menu", "Host");
self add_option( "FFA Menu", "(^2Instant Last^7)", ::instalastffa);
self add_option( "FFA Menu", "(^2+ 1 Kill^7)", ::OnekillFFA);
self add_option( "FFA Menu", "(^1- 1 Kill^7)", ::Takeoffkillffa);
self add_option( "FFA Menu", "(^1Reset Kills^7)", ::resetkillsFFA);
self add_option( "FFA Menu", "(^2All On Last^7)", ::allplayerslastffa);
self add_option( "FFA Menu", "(^1Reset Lobby^7)", ::ResetLobby);

//Functions By ShadyMods & AlexiBuscus



instalastffa()
{
self.pointstowin = 29;
self.pers[ "pointstowin" ] = 29;
self iprintlnbold("^1Your On Last!^7");
}

resetkillsFFA()
{
self.pointstowin = 0;
self.pers[ "pointstowin" ] = 0;
self iprintlnbold("^1You Just Got Rekt!^7");
}

OnekillFFA()
{
self.pointstowin = player.pointstowin + 1;
self.pers[ "pointstowin" ] += 1;
self.kills +=1;
self.pers[ "kills" ] += 1;
self iprintln("^2 +1 Kill");
}

Takeoffplayerffa(player)
{
if(player.pers[ "pointstowin" ] != 0 || player.pers[ "kills" ] != 0)
{
player.pers[ "pointstowin" ] -= 1;
players.pointstowin -=1;
players.kills -=1;
player.pers[ "kills" ] -=1;
}
else
{
self iprintln("^1Warning: ^7Player no kills");
}
}

Takeoffkillffa()
{
if(self.pers[ "pointstowin" ] != 0 || self.pers[ "kills" ] != 0)
{
self.pers[ "pointstowin" ] -= 1;
players.pointstowin -=1;
players.kills -=1;
self.pers[ "kills" ] -=1;
}
else
{
self iprintln("^1Warning: ^7 no kills");
}
}

GiveFFAone(player)
{
player.pointstowin = player.pointstowin + 1;
player.pers[ "pointstowin" ] += 1;
player.kills +=1;
player.pers[ "kills" ] += 1;
player iprintln("^2 +1 Kill");
}

GiveFFALast(player)
{
*self iprintlnbold("^1Last Given To ^5" + player.name);
*player iprintlnbold("^1Your On Last!^7");
*player thread instalastffa();
}

allplayerslastffa()
{
*foreach(player in level.players)
*{
* if(!player isHost())
* *player thread instalastffa();
*}
*self iPrintln("All Players ^1On Last!");
}

ResetLobby()
{
*foreach(player in level.players)
*{
* if(!player isHost())
* *player thread resetkillsFFA();
*}
*self iPrintln("All Players ^1On 0 kills!");
}

ResetFFAkils(player)
{
*self iprintlnbold("^1Reset Kills Of ^5" + player.name);
*player thread resetkillsFFA();
}
09-24-2016, 10:27 PM #2
Originally posted by choukritol View Post
I Have Been Looking For This For A While Untill My Friend Coded This For Me So ,

Here It Is :
//Made By ShadyMods & AlexiBuscus
self add_Option("^5Player Options-->^7" + i, "(^2 +1 kiLL^7)", ::GiveFFAone, player);
self add_Option("^5Player Options-->^7" + i, "(^1 -1 kiLL^7)", ::Takeoffplayerffa, player);
* * * * self add_Option("^5Player Options-->^7" + i, "(^2Instant Last^7)", ::GiveFFALast, player);
* *self add_Option("^5Player Options-->^7" + i, "(^1Reset Kills^7)", ::ResetFFAkils, player);


* * self add_menu("FFA Menu", "Main Menu", "Host");
self add_option( "FFA Menu", "(^2Instant Last^7)", ::instalastffa);
self add_option( "FFA Menu", "(^2+ 1 Kill^7)", ::OnekillFFA);
self add_option( "FFA Menu", "(^1- 1 Kill^7)", ::Takeoffkillffa);
self add_option( "FFA Menu", "(^1Reset Kills^7)", ::resetkillsFFA);
self add_option( "FFA Menu", "(^2All On Last^7)", ::allplayerslastffa);
self add_option( "FFA Menu", "(^1Reset Lobby^7)", ::ResetLobby);

//Functions By ShadyMods & AlexiBuscus



instalastffa()
{
self.pointstowin = 29;
self.pers[ "pointstowin" ] = 29;
self iprintlnbold("^1Your On Last!^7");
}

resetkillsFFA()
{
self.pointstowin = 0;
self.pers[ "pointstowin" ] = 0;
self iprintlnbold("^1You Just Got Rekt!^7");
}

OnekillFFA()
{
self.pointstowin = player.pointstowin + 1;
self.pers[ "pointstowin" ] += 1;
self.kills +=1;
self.pers[ "kills" ] += 1;
self iprintln("^2 +1 Kill");
}

Takeoffplayerffa(player)
{
if(player.pers[ "pointstowin" ] != 0 || player.pers[ "kills" ] != 0)
{
player.pers[ "pointstowin" ] -= 1;
players.pointstowin -=1;
players.kills -=1;
player.pers[ "kills" ] -=1;
}
else
{
self iprintln("^1Warning: ^7Player no kills");
}
}

Takeoffkillffa()
{
if(self.pers[ "pointstowin" ] != 0 || self.pers[ "kills" ] != 0)
{
self.pers[ "pointstowin" ] -= 1;
players.pointstowin -=1;
players.kills -=1;
self.pers[ "kills" ] -=1;
}
else
{
self iprintln("^1Warning: ^7 no kills");
}
}

GiveFFAone(player)
{
player.pointstowin = player.pointstowin + 1;
player.pers[ "pointstowin" ] += 1;
player.kills +=1;
player.pers[ "kills" ] += 1;
player iprintln("^2 +1 Kill");
}

GiveFFALast(player)
{
*self iprintlnbold("^1Last Given To ^5" + player.name);
*player iprintlnbold("^1Your On Last!^7");
*player thread instalastffa();
}

allplayerslastffa()
{
*foreach(player in level.players)
*{
* if(!player isHost())
* *player thread instalastffa();
*}
*self iPrintln("All Players ^1On Last!");
}

ResetLobby()
{
*foreach(player in level.players)
*{
* if(!player isHost())
* *player thread resetkillsFFA();
*}
*self iPrintln("All Players ^1On 0 kills!");
}

ResetFFAkils(player)
{
*self iprintlnbold("^1Reset Kills Of ^5" + player.name);
*player thread resetkillsFFA();
}


You should be code blocks to show your code properly instead just pasting it in a post.
Like this
    
ResetLobby()
{
foreach(player in level.players)
{
if(!player isHost())
player thread resetkillsFFA();
}
self iPrintln("All Players ^1On 0 kills!");
}

instead of this:
ResetLobby()
{
foreach(player in level.players)
{
if(!player isHost())
player thread resetkillsFFA();
}
self iPrintln("All Players ^1On 0 kills!");
}

The following user thanked Nothingbutbread for this useful post:

NmfV2
09-25-2016, 04:12 AM #3
United
Big Sister
Maybe add an explanation as to what this is even used for, for those that do not know.

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo