Author Topic: Saving weapon ammo  (Read 4125 times)

Motley

  • Full Member
  • ***
  • Posts: 253
  • Karma: +32/-34
    • View Profile
Saving weapon ammo
« on: July 07, 2016, 06:28:24 am »
Some might think that this is in the wrong board when honestly it's not.

We need our update for saving weapon ammo.

Personally how can I bring more players to LU by sharing the same data from weapon ammo, to kills, deaths etc with vcmp and samp and lu sharing the same data from each server??
I can't really go any further than where I am.

If you want your mod to grow I'd really suggest adding saving weapons.

Please, let's keep the mod alive.
Technically this mod is still in beta format rather the developers believe it or not.
Even though it's truly just a alpha build, nothing else nothing more than alpha.

I'm not being mean when I say this as I honestly care about this mod, As well the world of this multiplayer. I would not be working on this idea if I did not want to see the multilayer succeed. 

Add saving ammo to save this multiplayer.

And with what I am working on should grab players from samp as well vcmp and hopefully bring a community hear by luring them in with rpg big money features to have better cash in the other dm servers.

Please understand why this is important and not only for my server but others as well.
« Last Edit: July 07, 2016, 06:41:16 am by Mötley »

SugarD

  • Asshat Gaming Founder
  • Tester
  • Sr. Member
  • ****
  • Posts: 820
  • Karma: +37/-75
  • STOP IN THE NAME OF THE COLESLAW!
    • View Profile
    • Clan Xperience
Re: Saving weapon ammo
« Reply #1 on: July 09, 2016, 10:39:53 pm »
What about grabbing the information upon player exit and saving it to a database, then restoring it when they return?

Player.WeaponAmmo should theoretically cover this.

Motley

  • Full Member
  • ***
  • Posts: 253
  • Karma: +32/-34
    • View Profile
Re: Saving weapon ammo
« Reply #2 on: July 09, 2016, 11:27:10 pm »
This does not work either.



Also
http://forum.liberty-unleashed.co.uk/index.php/topic,1296.msg7943.html#msg7943

This bug was reported back in 2012
 :P 5 years ago.

Theoretically if you were to save all the ammo with the code Player.WeaponAmmo every weapon the player owns will get saved with the last updated ammo amount from the players weapon, "Very ugly".

We need a code to save each weapons ammo at once without the player needing to do anything. Honestly we dont need the same code for weapons like VCMP has, Just saving weapon ammo like they do,


As the front page of liberty-unleashed.co.uk says

Quote
What does this mean? Simply put it means that the VC:MP team have full access to the LU source and likewise with the LU team. We will all be working on the two projects simultaneously, implementing similar ideas and fixing the odd bugs here and there to ensure that the GTA community get two great multiplayer mods for two different games.


So this should not be that hard as as I am guessing Vrocker could access the source code, get a simple understand and be capable of writing one of his own, or who knows use the exact code, of course I'm no coder and don't know anything  ??? ;D ;D ;D


We really need this  :-[
« Last Edit: July 09, 2016, 11:38:05 pm by Mötley »

Ankris

  • Full Member
  • ***
  • Posts: 110
  • Karma: +29/-44
    • View Profile
Re: Saving weapon ammo
« Reply #3 on: July 10, 2016, 08:14:33 pm »
If I understand well the topic, you mean a function for read the player ammo for each slot, like: Player.GetWeaponAmmoAtSlot(weapon), right? I don't get why is too hard to do that if you can get easily the CWeapon struct array inside of CPlayer struct.

Motley

  • Full Member
  • ***
  • Posts: 253
  • Karma: +32/-34
    • View Profile
Re: Saving weapon ammo
« Reply #4 on: July 10, 2016, 10:31:23 pm »
I really do not understand any of that. of course I'm rusty.

And yeah similar to
Code: [Select]
Player.GetWeaponAmmoAtSlot(weapon)

Vortrex

  • Full Member
  • ***
  • Posts: 267
  • Karma: +54/-74
    • View Profile
Re: Saving weapon ammo
« Reply #5 on: July 22, 2016, 10:20:30 pm »
Or an array.

Like,
Player.WeaponAmmo[2] could be the ammo for the weapon in slot 2.

Motley

  • Full Member
  • ***
  • Posts: 253
  • Karma: +32/-34
    • View Profile
Re: Saving weapon ammo
« Reply #6 on: July 25, 2016, 07:32:49 pm »
But you and I both know vortex that
Code: [Select]
player.WeaponAmmo returns the wrong amount of ammo.

SugarD

  • Asshat Gaming Founder
  • Tester
  • Sr. Member
  • ****
  • Posts: 820
  • Karma: +37/-75
  • STOP IN THE NAME OF THE COLESLAW!
    • View Profile
    • Clan Xperience
Re: Saving weapon ammo
« Reply #7 on: July 25, 2016, 09:54:08 pm »
But you and I both know vortex that
Code: [Select]
player.WeaponAmmo returns the wrong amount of ammo.
Report the bugs!!!

Motley

  • Full Member
  • ***
  • Posts: 253
  • Karma: +32/-34
    • View Profile
Re: Saving weapon ammo
« Reply #8 on: July 26, 2016, 12:39:52 am »
http://forum.liberty-unleashed.co.uk/index.php/topic,1296.msg7943.html#msg7943

It was reported Four/Five years ago.

As quoted

http://forum.liberty-unleashed.co.uk/index.php/topic,1296.msg7943.html#msg7943

This bug was reported back in 2012
 :P 5 years ago.

That's why this is in the support forums because we need this to help improve the experience of LU players, This is long over due.
« Last Edit: July 26, 2016, 12:42:38 am by Mötley »

SugarD

  • Asshat Gaming Founder
  • Tester
  • Sr. Member
  • ****
  • Posts: 820
  • Karma: +37/-75
  • STOP IN THE NAME OF THE COLESLAW!
    • View Profile
    • Clan Xperience
Re: Saving weapon ammo
« Reply #9 on: September 03, 2016, 10:19:07 pm »
Has it been reported here?:
http://mantis.liberty-unleashed.co.uk/

 

© Liberty Unleashed Team.