Author Topic: new wep system easy way  (Read 2458 times)

mega mind

  • Newbie
  • *
  • Posts: 30
  • Karma: +1/-12
  • Developer of ( "Web-Net" ) search engine
    • View Profile
    • Web-Net
new wep system easy way
« on: June 11, 2017, 10:51:23 pm »
Quote
function onPlayerCommand( pPlayer, szCommand, szArgs )
{
if ( szCommand == "cmds" )
   {
      MessagePlayer( "Current server commands are the following", pPlayer );
                MessagePlayer( "------------------wepcmds-------------------", pPlayer );
}
else if ( szCommand == "wepcmds" )
   {
       MessagePlayer( "------------Wepon Commands---------------", pPlayer );
                 MessagePlayer( "Syntax:-(/)use before wep name", pPlayer );
                 MessagePlayer( "Example:- /name of wep here", pPlayer );
                 MessagePlayer( "(/):- m16 colt shot gre uzi", pPlayer );
                 MessagePlayer( "----------------------------------------", pPlayer );
   }
else if ( szCommand == "m16" )
   {
      pPlayer.SetWeapon( 6 );
   }
   else if ( szCommand == "colt" )
   {
      pPlayer.SetWeapon( 2 );
   }
   else if ( szCommand == "shot" )
   {
      pPlayer.SetWeapon( 4 );
   }
   else if ( szCommand == "gre" )
   {
      pPlayer.SetWeapon( 11 );
   }
else if ( szCommand == "uzi" )
   {
      pPlayer.SetWeapon( 3 );
   }
}

Modify message

 

© Liberty Unleashed Team.