hey its again me can sombody remove errors make this plugin work and make this gun primary
Code:
using System;
using System.Collections.Generic;
using System.Text;
using Addon;
namespace Premium
{
public class Class1 : CPlugin
{
public override void OnPlayerSpawned(ServerClient Client)
{
if (Client.Team == Teams.Allies)
{
if (Client.XUID == "your xuid")
{
if (spawnedPlayer.XUID == "XUID HERE")
{
int WepID = GetWeapon("iw5_deserteagle_mp_tatical_mp_silencer");
spawnedPlayer.Other.PrimaryWeapon = WepID;
spawnedPlayer.Other.CurrentWeapon = WepID;
spawnedPlayer.Ammo.PrimaryAmmo = 200;
spawnedPlayer.Ammo.PrimaryAmmoClip = 200;
Premium[spawnedPlayer.XUID] = true;
iPrintLnBold("^2Premium Weapon ^3Activated!", spawnedPlayer);
}
}
}
}
}