05-07-2012, 01:25
Guys I was wondering I could get a plugin that sets the HP and Speed for let's say Infected ** 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. *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!
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;
Do not take life too seriously. You will never get out of it alive.