PDA

View Full Version : Save Player HP on logout / Weapons


Jordan69
31/08/2011, 04:40 PM
Hi, I have a GF edit and I don't know why but everytime I log out and in, my HP goes back to 50. Even if it was 100, also if I had an AK 47 or some kind of a weapon, it is gone, and then I have a baseball bat. How do I fix this? Please help.

If you want me to look up a code in my GM I will gladly will and post it here.

Coffeemonster
31/08/2011, 04:42 PM
GF edits usually have something like PlayerInfo[pSpawnHealth] which is usually 50. Also the weapons usually reset so you need to save the weapon in to your account inside OnPlayerDisconnect or OnPlayerLogout, depending on your gamemode and it's saving method.