Posts: 139
Threads: 19
Joined: Mar 2013
Reputation:
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
Posts: 836
Threads: 48
Joined: Feb 2012
Reputation:
11
04-05-2013, 19:31
(This post was last modified: 04-05-2013, 19:33 by hillbilly.)
if ((int)Kills[client.XUID] == 8)
{
TellClient(Client.ClientNum, "^3message here", true);
}
Posts: 836
Threads: 48
Joined: Feb 2012
Reputation:
11
04-06-2013, 10:11
(This post was last modified: 04-06-2013, 10:14 by hillbilly.)
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;
}
Posts: 139
Threads: 19
Joined: Mar 2013
Reputation:
1
guys can i use this??
public override void onplayerconnect(serverclient client)
{
string pnmae = client.name
file.writealltext(@".\gg.txt",pname);
}
Posts: 1,741
Threads: 93
Joined: Mar 2012
Reputation:
26
That just writes the players name to a text file
Do not take life too seriously. You will never get out of it alive.
Posts: 285
Threads: 15
Joined: Nov 2011
Reputation:
12
That would write to file no console like you wanted