• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
streak plugin
#1
is it possible to make a plugin to enter some text in the left bottom corner if someoned have a killstreak or something
  Reply
#2
(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!");
}
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Wink Plugin with !ban !kick and !tampban clemi555 3 3,885 11-09-2013, 09:21
Last Post: clemi555
  AntiNoScope Plugin clemi555 5 4,341 11-08-2013, 19:13
Last Post: clemi555
  [Release] Bunker Plugin 1.3 archit 68 38,158 10-30-2013, 11:59
Last Post: clacki
  Help Modifying plugin maverigh 5 5,245 10-19-2013, 10:29
Last Post: Nekochan
Shocked [Request] Switch plugin axel-le-meilleur 6 4,604 10-19-2013, 06:59
Last Post: iRoNinja
  [Release] Yurio Map Plugin Yurio 101 57,440 09-26-2013, 13:38
Last Post: First_Semyon
Brick [Release] v1.1 ChangeMap/NextMap Plugin without any configuration milchshake 23 17,342 09-23-2013, 13:18
Last Post: SgtLegend
  Help !say Plugin (like the !say from GodPlugin) Hallla 0 2,524 09-13-2013, 09:31
Last Post: Hallla
Rainbow [Release] MW3: Random Weapon Plugin V1 Nekochan 50 30,301 09-11-2013, 15:11
Last Post: EnVi Sweden Rocks
  Search Plugin Fluid Killcam N3xT_974 1 2,839 09-10-2013, 20:27
Last Post: Nekochan

Forum Jump:


Users browsing this thread: 1 Guest(s)