Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Request <- Duh! HP Increase/Speed Increase
#1
Guys I was wondering I could get a plugin that sets the HP and Speed for let's say Infected *Wink* have 2x their HP. I have found the code but I just can't build it because of stupid CPlugin errors >_> *check xzombie mod jaydi's post for info* I want it to be randomized like this.
Code:
Random rand = new Random();
                switch (rand.Next(0, 4))
                {
                    case 0:
                        iPrintLnBold("^5Your random zombie class is ^1Track Athlete", Client);
                        Thread.Sleep(1500);
                        iPrintLnBold("^4Same HP, more speed", Client);
                        Client.Other.SpeedScale = (float)1.3;
                        Client.Other.Health += 110;
                        break;
                    case 1:
                        iPrintLnBold("^5Your random zombie class is ^2Juggernaut zombie", Client);
                        Thread.Sleep(1500);
                        iPrintLnBold("^4Jug Zombie have HP +50\"%\", less speed. ", Client);
                        Client.Other.SpeedScale = (float)0.75;
                        Client.Other.Health += 150;
                        Client.Other.SetPlayerModel("mp_fullbody_opforce_juggernaut");
                        break;
                    case 2:
                        iPrintLnBold("^5Your random zombie class is ^1Usain Bolt", Client);
                        Thread.Sleep(1500);
                        iPrintLnBold("^4You're Usain Bolt for this life.", Client);
                        Client.Other.SpeedScale = (float)1.5;
                        Client.Other.Health += 120;
                        break;
                    case 3:
                        iPrintLnBold("^5Your random zombie class is ^1Normal Zombie", Client);
                        Thread.Sleep(1500);
                        iPrintLnBold("^4No HP Increase nor Speed increase", Client);
                        Client.Other.SpeedScale = (float)1.0;
                        Client.Other.Health += 100;
                        break;
*took it from JayDi's xZombie mod* I just keep getting errors if someone can create this for me and gives the source code I will be forever in your debt! +rep to whoever can get this done!
Do not take life too seriously. You will never get out of it alive.
[Image: UGPjFJa.jpg]
Reply

#2
What's the error? The only thing I can see is that you didn't close the switch statement with a }
[Image: 30xhrep.png]

A casual conversation between barata and I about Nukem.
Reply

#3
It's on JayDi's xZombie mods post and it's only a snippet of the rest of it.
Do not take life too seriously. You will never get out of it alive.
[Image: UGPjFJa.jpg]
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Would love to have this speed at home CJGreenLabel 9 4,277 07-31-2013, 16:15
Last Post: AZUMIKKEL
  [Release] Speed Plugin hillbilly 25 75,565 05-06-2013, 18:19
Last Post: Hallla
  Type speed Pozzuh 64 29,417 04-29-2013, 13:42
Last Post: Pozzuh
  speed axis [HARD] Tony. 8 5,104 03-15-2013, 18:40
Last Post: Nekochan
Lightbulb [Release] Different jump Height/speed for each map. hillbilly 17 10,846 03-04-2013, 07:09
Last Post: avj
  Help MW3 HighJump speed plugin broken? MADD_DOGG 3 5,392 02-15-2013, 21:03
Last Post: hillbilly
  guys like increase the damage from falls? SaviouR9966 7 4,185 01-26-2013, 13:42
Last Post: Pozzuh
  Anyone play the Need for Speed games? dylankrajewski 7 5,015 10-27-2012, 15:44
Last Post: Arteq
  [Release] Speed Kills OneUp03 8 9,980 10-15-2012, 09:06
Last Post: choobie
  Speed plugin RADZ1973 8 5,020 09-15-2012, 02:40
Last Post: JariZ

Forum Jump:


Users browsing this thread:
1 Guest(s)

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