SA-MP Forums Archive
Need help with a problem. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Need help with a problem. (/showthread.php?tid=106836)



Need help with a problem. - Despare - 06.11.2009

Well, on my server, I'm making has a problem that I don't know how to fix. Well, the problem is when I am messing around in my server, the health of the player goes down slowly 1 by 1. How could I fix that? and how could I make it so when you log off and then log back in, you have the health you last logged off with?
Your help would be really appreciated, Thanks.


Re: Need help with a problem. - Nameless303 - 06.11.2009

Quote:
Originally Posted by Despare
Well, on my server, I'm making has a problem that I don't know how to fix. Well, the problem is when I am messing around in my server, the health of the player goes down slowly 1 by 1. How could I fix that? and how could I make it so when you log off and then log back in, you have the health you last logged off with?
Your help would be really appreciated, Thanks.
Post your script(s)...
Nameless


Re: Need help with a problem. - Zeromanster - 06.11.2009

Quote:
Originally Posted by Despare
Well, on my server, I'm making has a problem that I don't know how to fix. Well, the problem is when I am messing around in my server, the health of the player goes down slowly 1 by 1. How could I fix that? and how could I make it so when you log off and then log back in, you have the health you last logged off with?
Your help would be really appreciated, Thanks.
Find something associated with SetPlayerHealth function, as for saving players health use GetPlayerHealth function under the callback OnPlayerDisconect and save it using dudb.

Hope i helped.


Re: Need help with a problem. - Despare - 06.11.2009

Quote:
Originally Posted by Zeromanster
Quote:
Originally Posted by Despare
Well, on my server, I'm making has a problem that I don't know how to fix. Well, the problem is when I am messing around in my server, the health of the player goes down slowly 1 by 1. How could I fix that? and how could I make it so when you log off and then log back in, you have the health you last logged off with?
Your help would be really appreciated, Thanks.
Find something associated with SetPlayerHealth function, as for saving players health use GetPlayerHealth function under the callback OnPlayerDisconect and save it using dudb.

Hope i helped.
It helped, but could I contact you about it still? because I really kinda don't know how. Sorry, I'm new to this


Re: Need help with a problem. - troy52192 - 06.11.2009

there must be a timer in there somewhere thats draining the health by a sertain time


Re: Need help with a problem. - Despare - 06.11.2009

Quote:
Originally Posted by troy52192
there must be a timer in there somewhere thats draining the health by a sertain time
That's what I think, but I don't know where.