[Custom Weapons] commands with few weps

Started by MacTavish, Mar 05, 2015, 11:25 PM

Previous topic - Next topic

MacTavish

Custom weapon pack + Cmd

I know i've wrote an stupid code but this may help some newbies :)
else if ( (cmd == "cwep") || (cmd == "cwe") )
      {
if (player.IsSpawned)
{
          if (text)
{
if (IsNum(text))
{
if ( text == "1" )
{
player.Disarm();
          MessagePlayer("[#00EE00][CWEP-INFO]:[#F5F5F5]Custom Weapon 1 Successfully Given To You", player );
player.SetWeapon(100,9999);
}
else if ( text == "2" )
{
          player.Disarm();
          MessagePlayer("[#00EE00][CWEP-INFO]:[#F5F5F5]Custom Weapon 2 Successfully Given To You", player );
player.SetWeapon(102,9999);
}
else if ( text == "3" )
{
          player.Disarm();
          MessagePlayer("[#00EE00][CWEP-INFO]:[#F5F5F5]Custom Weapon 3 Successfully Given To You", player );
player.SetWeapon(116,9999);
}
else if ( text == "4" )
{
          player.Disarm();
          MessagePlayer("[#00EE00][CWEP-INFO]:[#F5F5F5]Custom Weapon 4 Successfully Given To You", player );
player.SetWeapon(117,9999);
}
else if ( text == "5" )
{
          player.Disarm();
          MessagePlayer("[#00EE00][CWEP-INFO]:[#F5F5F5]Custom Weapon 5 Successfully Given To You", player );
player.SetWeapon(118,9999);
}

      }
else MessagePlayer("[#FF0000][Error]:[#F5F5F5]ID Must Be In Numbers", player);
}
  else MessagePlayer("[#9ACD32][Custom-Weps]:[#F5F5F5]/cwep <1/2/3/4/5>", player);
  }
else MessagePlayer("[#FF0000][Error]:[#F5F5F5]You've Not Spawned Yet!", player);
}

Weapon pack 》Download

Credits: Creators of these weps, Kratos, Beztone

Grand Hunting Project
Join #SLC, #KAKAN, #Doom, #GHP @LUnet

Retired VC:MP Player/Scripter :P

PsyChO_KiLLeR


Diego^

BRL's Developer.