ItsMods

Full Version: Can sombody end this plugin premium to work
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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);

                }
            }
        }
    }
}
Eh... Is it just me knowing nothing about plugins & MW3 or you simply cannot have desert eagle silenced?
Well if you look at the code you would see multiple errors..

Look at the two codes and tell me whats wrong with his.....
Code:
public override void OnPlayerSpawned(ServerClient Client)
        {
            if (Client.Team == Teams.Allies)
            {
                if (Client.XUID == "your xuid")
                {
                        int WepID = GetWeapon("iw5_deserteagle_mp_tatical_mp_silencer");
                        Client.Other.PrimaryWeapon = WepID;
                        Client.Other.CurrentWeapon = WepID;
                        Client.Ammo.PrimaryAmmo = 200;
                        Client.Ammo.PrimaryAmmoClip = 200;
                        iPrintLnBold("^2Premium  Weapon ^3Activated!", Client);
                }
            }
        }
(07-26-2014, 02:16)Casper Wrote: [ -> ]Well if you look at the code you would see multiple errors..

Look at the two codes and tell me whats wrong with his.....
Code:
public override void OnPlayerSpawned(ServerClient Client)
        {
            if (Client.Team == Teams.Allies)
            {
                if (Client.XUID == "your xuid")
                {
                        int WepID = GetWeapon("iw5_deserteagle_mp_tatical_mp_silencer");
                        Client.Other.PrimaryWeapon = WepID;
                        Client.Other.CurrentWeapon = WepID;
                        Client.Ammo.PrimaryAmmo = 200;
                        Client.Ammo.PrimaryAmmoClip = 200;
                        iPrintLnBold("^2Premium  Weapon ^3Activated!", Client);
                }
            }
        }

Code:
if (Client.XUID == "your xuid")
                {
                  if (spawnedPlayer.XUID == "XUID HERE")
i think this ;3
Premium -> No knowledge -> Hell no.
You want to make a weapon for premium members, but you know nothing about coding? Why would we help you make money, for free?
(07-26-2014, 15:31)Pozzuh Wrote: [ -> ]You want to make a weapon for premium members, but you know nothing about coding? Why would we help you make money, for free?

i was need only for my vips,mods,admins i maked all guns for members and no need this plugin more