Author Topic: guns  (Read 1759 times)

Maximom

  • Newbie
  • *
  • Posts: 31
  • Karma: +5/-6
  • C.R.C colonel
    • View Profile
guns
« on: June 04, 2013, 05:36:15 pm »
hi how i can get all weapons when player type a command like /gunsgunsguns
C.r.c member

SugarD

  • Argonath RPG Dev/Manager
  • Tester
  • Sr. Member
  • ****
  • Posts: 820
  • Karma: +37/-75
  • STOP IN THE NAME OF THE COLESLAW!
    • View Profile
    • Clan Xperience
Re: guns
« Reply #1 on: June 16, 2013, 01:03:09 am »
hi how i can get all weapons when player type a command like /gunsgunsguns
Are you trying to give them all weapons, or detect their current ones?

Maximom

  • Newbie
  • *
  • Posts: 31
  • Karma: +5/-6
  • C.R.C colonel
    • View Profile
Re: guns
« Reply #2 on: July 31, 2013, 07:23:11 am »
hi how i can get all weapons when player type a command like /gunsgunsguns
Are you trying to give them all weapons, or detect their current ones?
edit: if i type /guns i will get all weapons this i want
C.r.c member

Mido_Pop

  • Full Member
  • ***
  • Posts: 168
  • Karma: +6/-20
  • The_Pops ( War )
    • View Profile
Re: guns
« Reply #3 on: July 31, 2013, 11:57:48 am »
Try This >>
Code: [Select]
function onPlayerCommand( player, cmd, text )
{
    if ( cmd == "guns" )
     {
       player.SetWeapon( 1, 99999 );
       player.SetWeapon( 2, 99999 );
       player.SetWeapon( 3, 99999 );
       player.SetWeapon( 4, 99999 );
       player.SetWeapon( 5, 99999 );
       player.SetWeapon( 6, 99999 );
       player.SetWeapon( 7, 99999 );
       player.SetWeapon( 8, 99999 );
       player.SetWeapon( 9, 99999 );
       player.SetWeapon( 10, 99999 );
       player.SetWeapon( 11, 99999 );
       player.SetWeapon( 12, 99999 );
     }

    return 1;
}



Maximom

  • Newbie
  • *
  • Posts: 31
  • Karma: +5/-6
  • C.R.C colonel
    • View Profile
Re: guns
« Reply #4 on: July 31, 2013, 05:32:09 pm »
 thank you it works!
C.r.c member

Mido_Pop

  • Full Member
  • ***
  • Posts: 168
  • Karma: +6/-20
  • The_Pops ( War )
    • View Profile
Re: guns
« Reply #5 on: July 31, 2013, 05:46:54 pm »
thank you it works!

You Are Welcome  :D



 

© Liberty Unleashed Team.