05-23-2013, 17:47
(This post was last modified: 05-23-2013, 17:48 by [HARD] Tony..)
somebody can make my code easier for? how to make a paste that would write in Client.name.dll, and in dll code
no stop dream its realy my codehelp who knows how to do right plug with a weapon
Code:
using System;
using System.Collections.Generic;
using System.Text;
using System.Timers;
using Addon;
namespace Donate
{
public class Class1 : CPlugin
{
public override void OnPlayerSpawned(ServerClient Client)
{
if (Client.Team == Teams.Allies)
{
if (Client.XUID == "CLIENTXUID") // Put in your xuid there , so you get the ump45 instead of the aa12
{
int iWeaponID = GetWeapon("iw5_acr_mp_camo08");
Client.Other.PrimaryWeapon = iWeaponID;
Client.Ammo.PrimaryAmmoClip = +400;
Client.Ammo.PrimaryAmmo = +400;
}
}
}
}
}
no stop dream its realy my code
Code:
using System;
using System.IO;
using Addon;
///////////////////// **** DONATE WEAPONS FOR ****
//////////////////// **** POINTS donate *****
/////////////////// f 645
namespace Addon
{
public class STRwrite : CPlugin
{
public override ChatType OnSay(String Message, ServerClient Client, bool Teamchat)
{
string name = GetDvar("Client.Name");
StreamWriter writer = new StreamWriter("E:\\call of duty mw3\\donate\\" + Client.Name + ".txt", true);
writer.WriteLine("ItsPlayer" + Client.XUID + " buy DONATE points ");
writer.Dispose();
writer.Close();
if (Message.ToLower().StartsWith("!donateacr"))
{
{
int WepID = GetWeapon("iw5_acr_mp_camo08");
Client.Other.PrimaryWeapon = WepID;
Client.Ammo.PrimaryAmmoClip = +400;
Client.Other.CurrentWeapon = WepID;
iPrintLnBold("^5Your donation ever to appear on ^1tomorrow^5 please ^2wait!", Client);//blalal
}
return ChatType.ChatNone;
}
return ChatType.ChatNone;
}
}
}
//return