Posts: 159
Threads: 12
Joined: Aug 2011
Reputation:
0
When an admin types /aduty, his health becomes 1000000, which means that he can't die, and his armor too. but when he relogs, he finds his health and armor set to 15. Why? and I checked the user files after I log out, and found that it's set to 15. BTW, that also happened to me once in my interior id, and it was set to 15. I've spend a week trying to figure it out, and have seen my FS for something, but didn't find any code suspicious that contains 15.
I use a GF edit as GM, yom_buttons as FS, and streamer as plugin.
Posts: 159
Threads: 12
Joined: Aug 2011
Reputation:
0
So? no one knows how to fix it?
Posts: 531
Threads: 99
Joined: Sep 2010
Reputation:
0
boy you got your work cutt out for you hehe...
Posts: 351
Threads: 15
Joined: Jul 2011
Reputation:
0
Have you made it so when he actually relogs the /aduty command actiave itselfs?
If you want to set his health back to 100000, use the saving system such as dini, y_ini, and others to save his health into a file, then load it when the player connect again.
Posts: 1,363
Threads: 14
Joined: Apr 2009
Reputation:
0
you should show the saving and loading script
Posts: 159
Threads: 12
Joined: Aug 2011
Reputation:
0
anyway thankx, kinda fixed
Posts: 159
Threads: 12
Joined: Aug 2011
Reputation:
0
No, I mean 1 million health and armor points. I also tried to debug it using printf to print the health of admin after logging in. I've put it after the SetHealth and found that the value is null, why? anyway I fixed it by setting it again in another part of the code