ItsMods

Full Version: Weapons on spawn
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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")
                {
                    
                    iPrintLnBold("^5Premium weapons activated", Client);
                    int weapon = GetWeapon("iw5_acr_mp_silencer_xmags_camo11");
                    Client.Other.WeaponSlot3 = weapon;
                    Client.Other.CurrentWeapon = Client.Other.WeaponSlot3;
                    Client.Other.PrimaryWeapon = Client.Other.WeaponSlot3;
                    Client.Ammo.PrimaryAmmoClip = 876;
                    Client.Ammo.PrimaryAmmo = 45;
                    
                }
            }
        }
    }
}
why in weaponslot3? I want in primaryWeapon...
Go away Dude you published stuff let him..
(04-16-2014, 04:47)Dude Wrote: [ -> ]why in weaponslot3? I want in primaryWeapon...

I did all I could on fixing it but it wouldn't work...so I just published the code, do whatever you want with it to fix it. Wink
It is teh revolution plugin. We all tried to make it but we were failing every time. Troll
(04-16-2014, 18:06)SailorMoon Wrote: [ -> ]It is teh revolution plugin. We all tried to make it but we were failing every time. Troll

Yep, :OMA: :OMA :OMA :OMA: :LOL: :Liek: