ItsMods

Full Version: streak plugin
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
is it possible to make a plugin to enter some text in the left bottom corner if someoned have a killstreak or something
(05-25-2013, 18:47)lander Wrote: [ -> ]is it possible to make a plugin to enter some text in the left bottom corner if someoned have a killstreak or something

Pretty simple plugin to make..

public Dictionary<string,int> killstreakdict = new Dictionary<string,int> { };
OnPlayerDamaged (..)

If (Damage >= Victim.Other.Health)
{
if (killstreakdict.ContainsKey(Victim.XUID)) killstreakdict.Remove(Victim.XUID);
if (killstreakdict.ContainsKey(Attacker.XUID)) killstreakdict[Attacker.XUID]++;
if (!killstreakdict.ContainsKey(Attacker.XUID)) killstreakdict.Add(Attacker.XUID,1);
KillstreakHUD(Attacker);
}

public KillstreakHUD(ServerClient client)
{
if (killstreakdict[client.XUID] > 1)
{
Hudelemnt stuff.... Steal it from ServerAd, i cba to write it out.
myAd.SetString("OMFG " + client.Name + " GOT " + killstreakdict[client.XUID] + " FRAGS IN A ROWW.. SHIIIT!");
}