Author Topic: Save the player's Weapons  (Read 2078 times)

IdkanYavuk X

  • Jr. Member
  • **
  • Posts: 91
  • Karma: +37/-36
  • Developer for The Newport Experience
    • View Profile
Save the player's Weapons
« on: March 13, 2013, 12:05:47 am »
Hello Community

I'm here to ask for help because I don't know what to do: I am trying to save the player's weapons on disconnection, but I don't seem to figure out how to read the ammo of the weapons the player has. The function that partially solves this problem is Player.WeaponAmmo, but I need to read all weapon's ammo, not just only the one that the player is holding...

Thank you in advance and happy killing :)
« Last Edit: March 13, 2013, 01:22:33 am by IdkanYavuk »

Thijn

  • Tester
  • Sr. Member
  • ****
  • Posts: 531
  • Karma: +27/-16
    • View Profile
Re: Save the player's Weapons
« Reply #1 on: March 13, 2013, 11:01:25 am »
Not possible (yet).

sasha19323

  • Jr. Member
  • **
  • Posts: 99
  • Karma: +25/-24
    • View Profile
Re: Save the player's Weapons
« Reply #2 on: March 13, 2013, 11:03:23 am »
Impossible? How it work on CZ Server?

IdkanYavuk X

  • Jr. Member
  • **
  • Posts: 91
  • Karma: +37/-36
  • Developer for The Newport Experience
    • View Profile
Re: Save the player's Weapons
« Reply #3 on: March 13, 2013, 06:11:18 pm »
Not possible (yet).
Don't tell me that, please

Impossible? How it work on CZ Server?
That's right, they can

Mido_Pop

  • Full Member
  • ***
  • Posts: 168
  • Karma: +6/-20
  • The_Pops ( War )
    • View Profile
Re: Save the player's Weapons
« Reply #4 on: March 13, 2013, 10:27:44 pm »
Not possible (yet).

Man, I Know It's So hard But It Need Some Smart To Make It .



Thijn

  • Tester
  • Sr. Member
  • ****
  • Posts: 531
  • Karma: +27/-16
    • View Profile
Re: Save the player's Weapons
« Reply #5 on: March 14, 2013, 03:12:55 pm »
You can't save all weapons a player is holding easily at the moment.
You can however get the current weapon and ammo. So in theory you could save the weapons every time a player get's a weapon or uses one.

Surely this isn't a great solution, and a function that returns the weapon in a specific slot would be better..

IdkanYavuk X

  • Jr. Member
  • **
  • Posts: 91
  • Karma: +37/-36
  • Developer for The Newport Experience
    • View Profile
Re: Save the player's Weapons
« Reply #6 on: March 15, 2013, 04:38:48 am »
You can't save all weapons a player is holding easily at the moment.
You can however get the current weapon and ammo. So in theory you could save the weapons every time a player get's a weapon or uses one.

Surely this isn't a great solution, and a function that returns the weapon in a specific slot would be better..


So, what do you guys reccomend me?

SugarD

  • Argonath RPG Dev/Manager
  • Tester
  • Sr. Member
  • ****
  • Posts: 820
  • Karma: +37/-75
  • STOP IN THE NAME OF THE COLESLAW!
    • View Profile
    • Clan Xperience
Re: Save the player's Weapons
« Reply #7 on: March 15, 2013, 11:16:51 am »
You can't save all weapons a player is holding easily at the moment.
You can however get the current weapon and ammo. So in theory you could save the weapons every time a player get's a weapon or uses one.

Surely this isn't a great solution, and a function that returns the weapon in a specific slot would be better..


So, what do you guys reccomend me?

In the mean time, exactly what he said. I still recommend someone suggest to the Developers that we get a proper system implemented, though.

 

© Liberty Unleashed Team.