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

Code:
using Addon; using System; using System.Threading; namespace medic { public class medic : CPlugin { public static bool _isthreadrunning = true; public string Name { get { return "Medic"; } } public string Version { get { return "1.0"; } } public string Description { get { return "Medic"; } } public bool Good { get { return true; } } public virtual bool IsThreadRunning { get { return medic._isthreadrunning; } set { medic._isthreadrunning = value; } } public static float Difference(float loc, float loc2) { return Math.Abs(loc - loc2); } public static Teams CalculateOtherTeam(ServerClient Client) { Teams result; if (Client.Team == Teams.Allies) { result = Teams.Allies; } else { if (Client.Team == Teams.Axis) { result = Teams.Axis; } else { result = Teams.FFA; } } return result; } private void loadmedic(object *rg) { Thread.Sleep(1500); try { ServerClient serverClient = (ServerClient)arg; base.iPrintLnBold("^2Medic ACTIVATE!", serverClient); while (this.IsThreadRunning) { foreach (ServerClient current in base.GetClients()) { int num = 10; if (medic.Difference(serverClient.OriginY, current.OriginY) <= 200f && medic.Difference(serverClient.OriginX, current.OriginX) <= 200f && current.Team == medic.CalculateOtherTeam(serverClient)) { if (current.Other.Health < 120) { base.iPrintLnBold(string.Concat(new object[] { "Medic ^3", serverClient.Name, " ^1added ", num, " HP for you!" }), current); base.iPrintLnBold(string.Concat(new object[] { "^2You added ^1", num, " HP^2 to the player ", current.Name, "!" }), serverClient); current.Other.Health = current.Other.Health + num; } } } Thread.Sleep(2000); } } catch { } } public void Init(ServerClient Client) { this.IsThreadRunning = true; ThreadHandler.AddThread(new WaitCallback(this.loadmedic), Client); } public void Remove(ServerClient Client) { this.IsThreadRunning = false; } public override void OnServerLoad() { base.ServerPrint("Medic Plugin By Litgar Loaded! thank JariZ for source code RTD2 and idea!"); } public override ChatType OnSay(string Message, ServerClient Client) { ChatType result; if (Message == "!medon") { this.Init(Client); result = ChatType.ChatNone; } else { if (Message == "!medoff") { this.Remove(Client); result = ChatType.ChatNone; } else { result = ChatType.ChatContinue; } } return result; } public override void OnPlayerSpawned(ServerClient Client) { this.Remove(Client); } } }

Code:
using System; using System.Collections.Generic; using System.Threading; namespace medic { internal class ThreadHandler { public static List<string> RollThreads = new List<string>(); public static void AddThread(WaitCallback callback, object state) { object[] state2 = new object[] { callback, state }; ThreadPool.QueueUserWorkItem(new WaitCallback(ThreadHandler.Invoker), state2); } public static void AddThread(WaitCallback callback) { ThreadHandler.Thread(callback, null); } private static void Invoker(object args) { try { object[] array = (object[])args; WaitCallback waitCallback = (WaitCallback)array[0]; object state = array[1]; string item = string.Concat(new string[] { waitCallback.Method.DeclaringType.Namespace, ".", waitCallback.Method.DeclaringType.Name, ".", waitCallback.Method.Name }); ThreadHandler.RollThreads.Add(item); try { waitCallback(state); } catch { } ThreadHandler.RollThreads.Remove(item); } catch { } } } }
[Image: 6iiLEmPSEm0.jpg]
skype egor2398los
Reply

#2
You must ask authors first. But i sure.. you haven't.

Original thread by @alex: http://www.itsmods.com/forum/Thread-Rele...-v1-0.html


Stolen code from Alex and RTD by @JariZ .

Proof:
Decompiler decompiles code and writes something like this:
Code:
string item = string.Concat(new string[]
or this:
Code:
object[] array = (object[])args;

This line is even there:
Code:
base.ServerPrint("Medic Plugin By Litgar Loaded! thank JariZ for source code RTD2 and idea!");

IDIOT. Go eat your potatoes.

/closed Troll
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#3
why? its source code i am search @pastebin.com :
[Image: 6iiLEmPSEm0.jpg]
skype egor2398los
Reply

#4
(07-25-2013, 10:56)E-losev Wrote: why? its source code i am search @pastebin.com :

Lol....thx btw

Sent from my E16i using Tapatalk 2
Reply

#5
@ , ? ! ? ( ) , , , , . : .
@forum ItsMods sorry from my russian Angel sorry
[Image: 6iiLEmPSEm0.jpg]
skype egor2398los
Reply

#6
(07-25-2013, 17:40)E-losev Wrote: @ , ? ! ? ( ) , , , , . : .
@forum ItsMods sorry from my russian Angel sorry

Stay talk English is everybody talk in his own language than is hole its-mods fucked up!!!

And @SailorMoon is right you MUST! ask @alex and @JariZ because the code is from them! You can't (Steal) codes from someone else and release that codes for more credits. so is its-mods not working! just make your own codes and release them or something else!
Reply

#7
(07-25-2013, 18:15)X-Track Wrote:
(07-25-2013, 17:40)E-losev Wrote: @ , ? ! ? ( ) , , , , . : .
@forum ItsMods sorry from my russian Angel sorry

Stay talk English is everybody talk in his own language than is hole its-mods fucked up!!!

And @SailorMoon is right you MUST! ask @alex and @JariZ because the code is from them! You can't (Steal) codes from someone else and release that codes for more credits. so is its-mods not working! just make your own codes and release them or something else!

and it tells me the one who posted without the permission of the source sailor moon? '' Kill me''. yes you can remove me from Steam and Skype you tell me there's not needed, good luck to find out more with the chemical formula 8Q. and masturbate to this ZOOMBY servers in mw3! you typical idts. rage here www.itsmods.com/forum/Forum-Rage-here.html @X-Track stop spam whis it's section.

(07-25-2013, 10:31)SailorMoon Wrote: You must ask authors first. But i sure.. you haven't.

Original thread by @alex: http://www.itsmods.com/forum/Thread-Rele...-v1-0.html


Stolen code from Alex and RTD by @JariZ .

Proof:
Decompiler decompiles code and writes something like this:
Code:
string item = string.Concat(new string[]
or this:
Code:
object[] array = (object[])args;

This line is even there:
Code:
base.ServerPrint("Medic Plugin By Litgar Loaded! thank JariZ for source code RTD2 and idea!");

IDIOT. Go eat your potatoes.

/closed Troll
? ! ! ! @ ! , . , !

close this topic! it does not release this plugin release rage!
[Image: 6iiLEmPSEm0.jpg]
skype egor2398los
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] vAmpIr E-losev 5 6,760 07-25-2013, 16:28
Last Post: Bandarigoda123
  [Release] Barata's REAL External Console Source C# barata 37 30,129 06-28-2013, 23:47
Last Post: barata
  [Release] Medic v1.0 [Z00MBY] Alex 13 12,444 05-21-2013, 18:43
Last Post: [HARD] Tony.
  [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

Forum Jump:


Users browsing this thread:
1 Guest(s)

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