Las Venturas Playground
Savehandler (weapons) - Alternate fix - Printable Version

+- Las Venturas Playground (https://forum.sa-mp.nl)
+-- Forum: Main Talk (https://forum.sa-mp.nl/forum-3.html)
+--- Forum: Development (https://forum.sa-mp.nl/forum-16.html)
+--- Thread: Savehandler (weapons) - Alternate fix (/thread-24263.html)



Savehandler (weapons) - Alternate fix - iou - 07-11-2010

I made myself a fully working weapon savehandler for my clan server a while ago.
There's no weird bugs occurring like on LVP on every single reconnect (e.g. spas instead of sawnoffs, colts instead of deagle). :(

It's not even complicated to script either.
However, there's some downfalls with this though.

  1. 1. Only spawnweapons will be saved, as they save upon purchase.
  2. 2. On reconnect (crash/disc), the player will have the same ammo as bought, not as when he disconnected.

IMO, these are nothing to the current annoying bugs.
People have complained for so long about this as well, it has never been fixed to work properly.
Thus I think this could be an alternate solution.

Please post your opinions.


Re: Savehandler (weapons) - Alternate fix - Matthias - 07-11-2010

Port it over!


Re: Savehandler (weapons) - Alternate fix - Richard - 07-12-2010

Quote:    * 1. Only spawnweapons will be saved, as they save upon purchase.

That's not how it is atm then?


Re: Savehandler (weapons) - Alternate fix - iou - 07-12-2010

No, from what I heard they save upon disconnect.
GetPlayerWeaponData();

But after you said that I'm unsure, I haven't checked the source code yet.



Re: Savehandler (weapons) - Alternate fix - Richard - 07-12-2010

Oh right, I see what you mean now. You're right.