08-27-2013, 01:17
I'm trying to make a plugin for my mw3 infected server that gives the infected extra health and speed. I looked all over this website for help but i couldnt find anything on it. If there is a thread on this that I somehow missed please direct me to it if not here's what I have i'm a noob at coding any help would be greatly appreciated
Code:
using System;
using Addon;
using System.Timers;
namespace plugin_test
{
public class plugin_test : CPlugin
{
public override void OnPlayerSpawned(ServerClient Client)
{
if (Client.Team == Teams.Axis)
{
Client.Other.MaxHealth = 250;
Client.Other.Health = 250;
Client.Other.SpeedScale = 2;
Client.Other.SetPlayerModel("mp_fullbody_opforce_juggernaut");
}
}
}
}