Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help black ops Random Choosing code
#1
ok so im make a mod called "Slot Machine" its where when u press a button on your keyboard and a random Option it chosen, like roll the dice, but i have a random weapon code but i need a code that chooses a thread by random. Theres more to the mod like killstreaks u get a suprise and a few more things, i still need to think or some thread when u use the slot machine.
[Video: ]
Reply

#2
heres some code from My very first mod i ever made when i was very newb im sure you can adopt Smile i think @iAegle helped me back then with that.

Code:
randommessage ()
{
    switch(RandomInt(15))
    {
        case 0:
            self.randommessage = "^1A man's dying is more the survivors' affair than his own.";
        break;
        case 1:
            self.randommessage = "^1If the enemy is in range, so are you.";
        break;
        case 2:
            self.randommessage = "^1War does not determine who is right - only who is left.";
        break;
        case 3:
            self.randommessage = "^1Never forget that your weapon was made by the lowest bidder.";
        break;
        case 4:
            self.randommessage = "^1Teamwork is essential, it gives them other people to shoot at";
        break;
        case 5:
            self.randommessage = "^1For death begins with life's first breath And life begins at touch of death";
        break;
        case 6:
            self.randommessage = "^1All that is necessary for evil to succeed is for good men to do nothing";
        break;
        case 7:
            self.randommessage = "^1If you can't remember, the claymore is pointed toward you.";
        break;
        case 8:
            self.randommessage = "^1It is a blessing to die for a cause, because you can so easily die for nothing.";
        break;
        case 9:
            self.randommessage = "^1Older men declare war. But it's the youth who must fight and die";
        break;
        case 10:
            self.randommessage = "^1When you have to kill a man it costs nothing to be polite.";
        break;
        case 11:
            self.randommessage = "^1Death takes the good, too good to stay, And leaves the bad, too bad to take away";
        break;
        case 12:
            self.randommessage = "^1use emotion for the many and reserve reason for the few";
        break;
        case 13:
            self.randommessage = "^1Battle is an orgy of disorder.";
        break;
        case 14:
            self.randommessage = "^1There is no glory in battle worth the blood it costs";
        break;
    }
        self iPrintlnBold( self.randommessage );

}
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  [Release] [SOURCE] Random Weapons. [HARD] Tony. 1 4,092 11-08-2013, 11:11
Last Post: Nekochan
  Help source random weapons [HARD] Tony. 4 4,685 11-08-2013, 05:25
Last Post: [HARD] Tony.
  Black Ops 2 Custom background? jotape99 10 12,414 10-29-2013, 07:22
Last Post: xInfinity.
  Black ops Help Bluexephos 4 5,276 10-06-2013, 16:24
Last Post: Nekochan
  Help Code color crosshairs koren30 3 3,995 10-02-2013, 19:26
Last Post: koren30
  Help choose 2 random players?(1 each team) 26hz 6 4,627 09-12-2013, 17:32
Last Post: Yamato
Rainbow [Release] MW3: Random Weapon Plugin V1 Nekochan 50 33,121 09-11-2013, 15:11
Last Post: EnVi Sweden Rocks
  Help need help?how to make plugins code hXnarutoXone 12 8,512 09-01-2013, 18:30
Last Post: Bandarigoda123
  Help Need Help with C# code tubwux 2 3,302 08-27-2013, 18:18
Last Post: tubwux
  [Request] Compile this code please dozsa0 4 4,119 08-10-2013, 21:02
Last Post: Nukem

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.