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
if ((int)Kills[client.XUID] == 8)
{
TellClient(Client.ClientNum, "^3message here", true);
}
(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
(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
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
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;
}
guys can i use this??
public override void onplayerconnect(serverclient client)
{
string pnmae = client.name
file.writealltext(@".\gg.txt",pname);
}
That just writes the players name to a text file
That would write to file no console like you wanted