Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help Print kills in the console
#1
Hi guys,
I'm new to C# and recently learning to make a mw3 plugin, I want to print the players kill count in the console. tried few things, but couldn't do it. Please help me
Reply

#2
if ((int)Kills[client.XUID] == 8)
{
TellClient(Client.ClientNum, "^3message here", true);

}
[Image: b_560_95_1.png]


[Image: b_560_95_1.png]

Reply

#3
(04-05-2013, 19:31)hillbilly Wrote: if ((int)Kills[client.XUID] == 8)
{
TellClient(Client.ClientNum, "^3message here", true);

}

What is point of this post?!?
You can make some variables, then increase it in onDamage method. I would give some examples, but I am at iphone now Sad
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#4
(04-05-2013, 20:45)SailorMoon Wrote:
(04-05-2013, 19:31)hillbilly Wrote: if ((int)Kills[client.XUID] == 8)
{
TellClient(Client.ClientNum, "^3message here", true);

}

What is point of this post?!?
You can make some variables, then increase it in onDamage method. I would give some examples, but I am at iphone now Sad

of course, please. I just want to make this,
If player get 5 kills then he gets a weapon.......I know it's too simple.....but i'm still learning
Reply

#5
void checkClientAward(ServerClient Client, int kills)
{
if (kills == 30)
{
int WepSecID = GetWeapon("iw5_fmg9_mp");
Client.Other.PrimaryWeaponAkimbo = false;
Client.Other.SecondaryWeaponAkimbo = true;
Client.Other.SecondaryWeapon = WepSecID;
Client.Ammo.SecondaryAmmoClip = 150;
Client.Ammo.SecondaryAmmo = 150;
}
or

{
int WepID = GetWeapon("iw5_p90_mp");
Client.Other.PrimaryWeapon = WepID;
Client.Other.CurrentWeapon = WepID;
Client.Ammo.PrimaryAmmoClip = 140;
Client.Ammo.PrimaryAmmo = 50;

}
[Image: b_560_95_1.png]


[Image: b_560_95_1.png]

Reply

#6
Reply

#7
guys can i use this??

public override void onplayerconnect(serverclient client)
{
string pnmae = client.name
file.writealltext(@".\gg.txt",pname);
}
Reply

#8
That just writes the players name to a text file
Do not take life too seriously. You will never get out of it alive.
[Image: UGPjFJa.jpg]
Reply

#9
That would write to file no console like you wanted
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Help MW3 (External) Console - TeknoMW3? Strazeeh 7 8,692 10-01-2013, 21:54
Last Post: DeHEnergY
  Help MW3 (External) Console - TeknoMW3? Strazeeh 2 4,359 09-30-2013, 19:19
Last Post: surtek
  [Request] MW2 EXTERNAL CONSOLE!!! thomiromi 4 5,692 09-26-2013, 18:02
Last Post: Rendflex
  console or server browser MW2 kerm007 1 3,580 08-30-2013, 21:52
Last Post: Nekochan
  [News] T6 Console [PC] zer0w 42 31,490 08-08-2013, 17:27
Last Post: Bandarigoda123
Wink Help MW3 Server Console Bandarigoda123 0 3,205 07-26-2013, 04:01
Last Post: Bandarigoda123
  Help Help in address console Bandarigoda123 2 3,388 07-20-2013, 15:46
Last Post: Bandarigoda123
  [Release] Black Ops 1 "External" Console barata 16 19,093 07-19-2013, 21:15
Last Post: Jakeyellis
  [HELP] bo2 - FD1 - dis-attach the console from the game masis 8 5,867 07-17-2013, 23:01
Last Post: surtek
  Print a .iwi on the ground Keouf 14 7,522 07-13-2013, 19:49
Last Post: Keouf

Forum Jump:


Users browsing this thread:
1 Guest(s)

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