19.01.2013, 11:48
Quote:
Like Rajat said, the chance is really small to get exactly 1 hp.
You can better us a range of like 1-15 hp, with other words: You can use something like this in OnPlayerTakeDamage or in a timer, in OnPlayerTakeDamage it's better, since you will use less memory then... At the part of //code you can use SetPlayerHealth(playerid, 999999), so the player gets godmode. Apart from that you can then use the rest of your code, like: /acceptdeath etc. Good luck |
C:\Users\Humi\Desktop\REVO-RP\PR-RP\filterscripts\death.pwn(20) : error 021: symbol already defined: "GetPlayerHealth"
C:\Users\Humi\Desktop\REVO-RP\PR-RP\filterscripts\death.pwn(21) : error 010: invalid function or declaration
C:\Users\Humi\Desktop\REVO-RP\PR-RP\filterscripts\death.pwn(34) : warning 217: loose indentation
C:\Users\Humi\Desktop\REVO-RP\PR-RP\filterscripts\death.pwn(35) : warning 217: loose indentation
C:\Users\Humi\Desktop\REVO-RP\PR-RP\filterscripts\death.pwn(96) : warning 217: loose indentation
C:\Users\Humi\Desktop\REVO-RP\PR-RP\filterscripts\death.pwn(97) : warning 217: loose indentation
C:\Users\Humi\Desktop\REVO-RP\PR-RP\filterscripts\death.pwn(104) : warning 217: loose indentation
C:\Users\Humi\Desktop\REVO-RP\PR-RP\filterscripts\death.pwn(121) : warning 217: loose indentation
C:\Users\Humi\Desktop\REVO-RP\PR-RP\filterscripts\death.pwn(13 : warning 217: loose indentation
C:\Users\Humi\Desktop\REVO-RP\PR-RP\filterscripts\death.pwn(21 : warning 203: symbol is never used: "health