login
April 27, 2024, 11:30:04 am

Author Topic: ( Simple ) Wep Command.  (Read 668 times)

0 Members and 1 Guest are viewing this topic.

GiTo

  • Regular
  • ***
  • Posts: 78
  • Country: pk
    • View Profile
( Simple ) Wep Command.
« 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!
« Last Edit: July 18, 2021, 08:31:58 am by GiTo »
Useful Useful x 2 (list)
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor

What happens when the poison expires?

WiLsOn

  • Crazy Man
  • *****
  • *
  • *
  • *
  • Posts: 5488
  • Country: 00
  • First in battle last in retreat.
    • View Profile
Re: Simplest Wep command!
« Reply #1 on: February 11, 2020, 03:46:56 pm »
Thanks friend.
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor







mairee

  • Vice Underdog
  • Crazy Man
  • *
  • *
  • *
  • *
  • *
  • Posts: 1040
  • Country: pk
    • View Profile
Re: Simplest Wep command!
« Reply #2 on: February 12, 2020, 06:35:31 am »
This is a scam. I got 1000 ammo.
Agree Agree x 4 Brain Donor Brain Donor x 1 (list)
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor

VU Full Member | VCDC 6 Coordinator & Scripter | EG A/D Contributor | Developer of VCCNR | Developer of KTB | Ex-Scripter of EAD

Sk

  • Vice Underdog
  • Crazy Man
  • *
  • Posts: 618
  • Country: pk
  • #VU
    • View Profile
Re: Simplest Wep command!
« Reply #3 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.
Brain Donor Brain Donor x 1 (list)
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor

le pro
http://i.imgur.com/j6yise0.png

Krediit Kokcex

GiTo

  • Regular
  • ***
  • Posts: 78
  • Country: pk
    • View Profile
Re: Simplest Wep command!
« Reply #4 on: April 01, 2020, 05:00:37 am »
use else before if.
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor

What happens when the poison expires?