03.05.2012, 13:51
Hi guys,
I am working on a gamemode and have just a few problems with SA-MP so far. The first thing is that when I use SetPlayerHealth() function, it happens once in a while, that it actually kills the player instead of setting his health to a given value. I have no idea what kind of thing could cause this, it happens in every script I make, about 1/10 times the function is called. Have you experienced similar problems? I was unable to find any information regarding this bug in the overview.
The next thing I wanted to ask is why the parachute opening chance is about 60% for my gamemode. In the other cases, the player just gets the parachuting animation but nothing else happens. It is happening after setting the player position by SetPlayerPos(), I have not tried it yet with jumping off the plane etc.
I will be very thankful if we could discuss these weird occurrences and come up with some workarounds, as I myself was not able to.
I am working on a gamemode and have just a few problems with SA-MP so far. The first thing is that when I use SetPlayerHealth() function, it happens once in a while, that it actually kills the player instead of setting his health to a given value. I have no idea what kind of thing could cause this, it happens in every script I make, about 1/10 times the function is called. Have you experienced similar problems? I was unable to find any information regarding this bug in the overview.
The next thing I wanted to ask is why the parachute opening chance is about 60% for my gamemode. In the other cases, the player just gets the parachuting animation but nothing else happens. It is happening after setting the player position by SetPlayerPos(), I have not tried it yet with jumping off the plane etc.
I will be very thankful if we could discuss these weird occurrences and come up with some workarounds, as I myself was not able to.