SA-MP Forums Archive
what is wrong? - 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)
+--- Thread: what is wrong? (/showthread.php?tid=308376)



what is wrong? - mineralo - 03.01.2012

hi, I don't know what is problem, if you died you're not respawn and get full health but you stay on that place which you died and can't move + 0 % of health
what to do?




Re: what is wrong? - cessil - 03.01.2012

try setting the players health to 0 under OnPlayerDeath


Re: what is wrong? - niels44 - 03.01.2012

maybe put something under onplayerdeath like me i have a gametext which says "haha you died XD" i dont know if that works just try it...


Re: what is wrong? - Kaperstone - 03.01.2012

Quote:
Originally Posted by niels44
Посмотреть сообщение
maybe put something under onplayerdeath like me i have a gametext which says "haha you died XD" i dont know if that works just try it...
will not help.
try to set his health to -1.0
if the prob. keeps than put him on hieght place and force/make him fall down & die.


Re: what is wrong? - mineralo - 03.01.2012

I found the mistake, I posted in onplayerdeath the function to set to team skin and that made this bug, anyway thanks to all