[source] vAmpIr
#1
Creator: @JariZ and @[ZOOMBY] Alex

Code:
using System; using System.Collections.Generic; using System.Text; using Addon; using System.Threading; namespace vampPlus { public class vampPlus : CPlugin { bool _isthreadrunning = true; public override void OnServerLoad() { ServerPrint("vampPlus plugin by Litgar loaded! thx JariZ for source code"); } public override void OnPlayerSpawned(ServerClient Client) { if (Client.XUID == " YOU HUID" && Client.Name == "YOU NAME") { _isthreadrunning = true; dovamp(Client); } } void dovamp(ServerClient Client) { ThreadPool.QueueUserWorkItem(new WaitCallback(loadmedic), Client); } public static float Difference(float loc, float loc2) { return Math.Abs(loc - loc2); } public static Teams CalculateOtherTeam(ServerClient Client) { Teams otherteam; if (Client.Team == Teams.Allies) otherteam = Teams.Axis; else if (Client.Team == Teams.Axis) otherteam = Teams.Allies; else otherteam = Teams.FFA; return otherteam; } public virtual bool IsThreadRunning { get { return _isthreadrunning; } set { _isthreadrunning = value; } } /* public static void SafeSleep(int AmountSec, vampPlus roll) { int total = 0; while (total != AmountSec) { total++; if (!roll.IsThreadRunning) break; else Thread.Sleep(1000); } } */ void loadmedic(Object arg) { Thread.Sleep(500); try { ServerClient client = (ServerClient)arg; iPrintLnBold("^2 !", client); while (IsThreadRunning) { foreach (ServerClient otherclient in GetClients()) { int removehp = 20; if ((Difference(client.OriginY, otherclient.OriginY) <= 200) && (Difference(client.OriginX, otherclient.OriginX) <= 200) && otherclient.Team == CalculateOtherTeam(client)) { if (otherclient.Other.Health <= 30) continue; iPrintLnBold("^3" + client.Name + " ^1 " + removehp + " HP!", otherclient); iPrintLnBold("^2 ^1" + removehp + " HP^2 " + otherclient.Name + "!", client); otherclient.Other.Health = otherclient.Other.Health - removehp; client.Other.Health = client.Other.Health + removehp; } } /* SafeSleep(2, this); */ Thread.Sleep(1000); } } catch { } } public override void OnPlayerConnect(ServerClient Client) { } public override void OnPlayerDisconnect(ServerClient Client) { } } }
:S
[Image: 6iiLEmPSEm0.jpg]
skype egor2398los
Reply

#2
You haven't asked authors. Retarded.
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#3
(07-25-2013, 11:04)SailorMoon Wrote: You haven't asked authors. Retarded.

I don't think this is decompiled code? There is a comment.
Reply

#4
(07-25-2013, 14:53)kokole Wrote:
(07-25-2013, 11:04)SailorMoon Wrote: You haven't asked authors. Retarded.

I don't think this is decompiled code? There is a comment.

Maybe he just added it?
Anyways, delete this thread, because he haven't asked authors.
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#5
using System.Threading;

Fail
[Image: b_560_95_1.png]


[Image: b_560_95_1.png]

Reply

#6
I think its from pastebin too

Sent from my E16i using Tapatalk 2
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  [Release] [SOURCE] Random Weapons. [HARD] Tony. 1 6,146 11-08-2013, 11:11
Last Post: Nekochan
  Help source random weapons [HARD] Tony. 4 6,553 11-08-2013, 05:25
Last Post: [HARD] Tony.
  [Request] Health and Points on hud source robinvm 7 8,177 10-27-2013, 08:23
Last Post: robinvm
  [Release] [SOURCE] DOOR V2.0 [HARD] Tony. 5 7,258 09-26-2013, 14:01
Last Post: Nekochan
  [source] medic E-losev 6 7,538 07-26-2013, 06:18
Last Post: E-losev
  [Release] Barata's REAL External Console Source C# barata 37 30,129 06-28-2013, 23:47
Last Post: barata
  [Release] Shoutbot + source JariZ 11 10,337 04-05-2013, 18:15
Last Post: SuperNovaAO
Rainbow [News] Valve strikes again (Source Filmmaker) estebespt 25 18,690 04-05-2013, 18:15
Last Post: SuperNovaAO
  MapEdit Source archit 0 4,022 03-28-2013, 12:06
Last Post: archit
  W@W Promod Source Files? koil 1 3,495 01-11-2013, 15:12
Last Post: Pozzuh

Forum Jump:


Users browsing this thread:
2 Guest(s)

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