Liberty Unleashed

Scripting => Script Help => Topic started by: Maximom on June 04, 2013, 05:36:15 pm

Title: guns
Post by: Maximom on June 04, 2013, 05:36:15 pm
hi how i can get all weapons when player type a command like /gunsgunsguns
Title: Re: guns
Post by: SugarD 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?
Title: Re: guns
Post by: Maximom 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
Title: Re: guns
Post by: Mido_Pop 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;
}
Title: Re: guns
Post by: Maximom on July 31, 2013, 05:32:09 pm
 thank you it works!
Title: Re: guns
Post by: Mido_Pop on July 31, 2013, 05:46:54 pm
thank you it works!

You Are Welcome  :D