Vice City: Multiplayer

Server Development => Scripting and Server Management => Snippet Showroom => Topic started by: MacTavish on Mar 05, 2015, 11:25 PM

Title: [Custom Weapons] commands with few weps
Post by: MacTavish on Mar 05, 2015, 11:25 PM
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 (https://www.dropbox.com/s/p510dnf4d3c0hdk/weapons.rar?dl=0)

Credits: Creators of these weps, Kratos, Beztone
Title: Re: [Custom Weapons] commands with few weps
Post by: PsyChO_KiLLeR on Mar 06, 2015, 07:59 AM
these are already given by me
Title: Re: [Custom Weapons] commands with few weps
Post by: Diego^ on Mar 06, 2015, 09:57 PM
Nice weapons :)