Vice Underdogs

Scripting => Script Showroom => Topic started by: GiTo on February 11, 2020, 03:09:33 pm

Title: ( Simple ) Wep Command.
Post by: GiTo on February 11, 2020, 03:09:33 pm
   if ( cmd == "wep" )
     {
          local wepid = GetWeaponID( text );
          player.SetWeapon( wepid, 1000 );
          MessagePlayer( "[#ffd83d]You have been given a " + GetWeaponName( wepid ) + "[#ffd83d] with 69 ammo.", player );
     }

Have fun!
Title: Re: Simplest Wep command!
Post by: WiLsOn on February 11, 2020, 03:46:56 pm
Thanks friend.
Title: Re: Simplest Wep command!
Post by: mairee on February 12, 2020, 06:35:31 am
This is a scam. I got 1000 ammo.
Title: Re: Simplest Wep command!
Post by: Sk on March 23, 2020, 06:13:11 pm
   if ( cmd == "wep" )
     {
          local wepid = GetWeaponID( text );
          player.SetWeapon( wepid, 1000 );
          MessagePlayer( "[#ffd83d]You have been given a " + GetWeaponName( wepid ) + "[#ffd83d] with 69 ammo.", player );
     }

Have fun!
Sorry to bump but when I use it and forgot to write it shows error please help and if I type something not wep it also shows error and send my all database to player who use this command btw I use mysql database, thanks in advance.
Title: Re: Simplest Wep command!
Post by: GiTo on April 01, 2020, 05:00:37 am
use else before if.