bio extra item set hp
Hello ,i have a little problem with my plugin .when the player already have 200 hp and buy again hp he keeps losing money but his life does not increase.
I don't want to lose money more than 200 hp Code:
#include <amxmodx> |
Re: bio extra item set hp
This code is completely and intentionally about giving armour, not about giving health for money.
For health: Code:
#include <amxmodx> |
Re: bio extra item set hp
sry ,that script it's for armour .but i have same script for health .
and what you edit it's same for armour not for health 1 question what did you change to my script? . |
Re: bio extra item set hp
its bcz u've limited it to 200
|
Re: bio extra item set hp
change this line:
set_armor( id, min( (get_armor( id ) + 50), 200) ); to this one: set_armor(id, get_armor(id) + 50) |
Re: bio extra item set hp
Yes i put a limit for armour and hp/armour .But when the limit is reached and i try to buy again hp/armour i lose the money and hp/armour don't increase. I don't want to lose more money when the hp/armour limit it's reached.
|
Re: bio extra item set hp
Code:
#include <amxmodx> |
Re: bio extra item set hp
ty i solved
|
All times are GMT -4. The time now is 21:56. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.