Quantcast

Jump to content

» «
Photo

[III|VC|SA|IV] Buy Back Your Weapons

10 replies to this topic
ThirteenAG
  • ThirteenAG

    Gangsta

  • Feroci
  • Joined: 29 Dec 2008
  • None
  • Contribution Award [Mods]

#1

Posted 28 April 2011 - 06:40 PM





Yesterday i finished GTA 3 version and now i'm working on IV script.
And i have a question about EFLC support, now i'm using
CODE
AMMO_DesertEagle = Player.Character.Weapons.DesertEagle.Ammo;

to check whether there is player have this weapon when he died or arrested, but what i should check in EFLC with episodic weapons?
In documentation(WeaponCollection Members) i see only IV weapons.
  • Honker1944 likes this

lolleroz
  • lolleroz

    They might kill me, but they won't scare me.

  • Members
  • Joined: 29 Jul 2010
  • None

#2

Posted 28 April 2011 - 06:56 PM Edited by lolleroz, 28 April 2011 - 07:01 PM.

CODE
AMMO_DesertEagle = Player.Character.Weapons.Episodic_01.Ammo;

Try it.
By the way, great job. On all the scripts.
I dunno in what language you are writing it, but in C# I have example:
Player.Character.Weapons.FromType(episodic_03).Ammo = 30000
C# should work same as VB

ThirteenAG
  • ThirteenAG

    Gangsta

  • Feroci
  • Joined: 29 Dec 2008
  • None
  • Contribution Award [Mods]

#3

Posted 28 April 2011 - 07:14 PM

QUOTE (lolleroz @ Apr 28 2011, 18:56)
CODE
AMMO_DesertEagle = Player.Character.Weapons.Episodic_01.Ammo;

Player.Character.Weapons.FromType(episodic_03).Ammo = 30000

1)
CODE
AMMO_Episodic_01 = Player.Character.Weapons.Episodic_01.Ammo;

Errors in script BuyBackYourWeapons.cs in Line 62: 'GTA.value.WeaponCollection' does not contain a definition for 'Episodic_01' and no extension method 'Episodic_01' accepting a first argument of type 'GTA.value.WeaponCollection' could be found (are you missing a using directive or an assembly reference?)
2)
CODE
AMMO_Episodic_01 = Player.Character.Weapons.FromType(episodic_01).Ammo;

Errors in script BuyBackYourWeapons.cs in Line 62: The name 'episodic_01' does not exist in the current context

Any other suggestions?

lolleroz
  • lolleroz

    They might kill me, but they won't scare me.

  • Members
  • Joined: 29 Jul 2010
  • None

#4

Posted 29 April 2011 - 06:42 PM

How about:
AMMO_P90 = Player.Character.Weapons.P90.Ammo;
or
AMMO_AssaultSMG = Player.Character.Weapons.AssaultSMG.Ammo;

Silent
  • Silent

    Chief Vision™ Alterer

  • GTA Mods Staff
  • Joined: 01 Feb 2010
  • Poland
  • Most Helpful [Modding] 2016
    Contribution Award [Mods]
    Best Script/Plugin 2014 [SilentPatch]
    Most Respected 2014
    Most Helpful [Mods] 2014
    Most Helpful [GTA] 2013
    Most Helpful [Mods] 2013
    Most Talented [Modding] 2013
    Best Map 2013 [ViceCityStories PC Edition]
    Best Vehicle 2013 [III Aircraft]
    Most Helpful [Mods] 2012
    Modder of the Year 2012

#5

Posted 29 April 2011 - 07:09 PM

I'm curious, why the III version does not use a text box (or you have it heavily modded)?

Anyway, good job. It's nice that you're releasing mods for many GTAs at one time tounge.gif

ThirteenAG
  • ThirteenAG

    Gangsta

  • Feroci
  • Joined: 29 Dec 2008
  • None
  • Contribution Award [Mods]

#6

Posted 29 April 2011 - 07:31 PM Edited by ThirteenAG, 29 April 2011 - 07:36 PM.

QUOTE (SilentPL @ Apr 29 2011, 19:09)
I'm curious, why the III version does not use a text box (or you have it heavily modded)?

Anyway, good job. It's nice that you're releasing mods for many GTAs at one time tounge.gif

I tried to use opcode 03E5, but it crash the game. So i had to use another way.

lolleroz, i've got the same error.

NudasPriest
  • NudasPriest

    Midnight Toker

  • Members
  • Joined: 29 Jul 2012

#7

Posted 30 August 2012 - 06:21 PM

I skimmed through the code and I'm not programmer, but it seems that the mod for GTA IV doesn't check to see if you have enough money to buy your weapons back, it just takes all you've got if you've got less than $2000, or just $2000. And you also lose weapons when you get arrested? but can you buy them back then?

Helegad
  • Helegad

    Ass Technician

  • Members
  • Joined: 24 Jul 2015
  • Australia

#8

Posted 02 October 2016 - 08:44 AM Edited by Helegad, 02 October 2016 - 08:45 AM.

I'm having problems with the III script. Grenades are never given back, and it seems that if grenades are confiscated, then other weapons are given back with either 1.5x or 2x the ammo.


DMC34
  • DMC34

    Player Hater

  • Members
  • Joined: 28 Sep 2017
  • United-States

#9

Posted 01 October 2017 - 12:22 PM

The links for III, VC, and San Andreas appear to be dead.  Does anyone know where I might be able to find copies of these?


Kurropt Antagonist
  • Kurropt Antagonist

    Playa

  • Members
  • Joined: 03 May 2004
  • United-States

#10

Posted 02 October 2017 - 01:46 AM

https://github.com/T...BackYourWeapons

DMC34
  • DMC34

    Player Hater

  • Members
  • Joined: 28 Sep 2017
  • United-States

#11

Posted 05 October 2017 - 07:04 PM

Thanks!

  • Kurropt Antagonist likes this




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users